/* =========================================================================
   site.css — gemeinsames Stylesheet fuer joerg-hemmerling.de
   Neutral, ruhig, zeitlos. Mobile first, reines CSS, keine Build-Tools.
   ========================================================================= */

:root {
  /* Farben — warmes Off-White, ruhiger Slate-Akzent */
  --bg:        #fbfaf7;
  --surface:   #ffffff;
  --ink:       #23282d;
  --muted:     #6b7178;
  --line:      #e7e3db;
  --accent:    #3d5a73;
  --accent-dk: #2c4458;

  /* Typografie */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
                "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 56rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(35,40,45,.04), 0 8px 24px rgba(35,40,45,.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 .25em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.75rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

/* ---- Layout-Container ------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--accent-dk); }

.nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- Hero / Startseite ------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 3rem 0 1rem;
}
.hero__claim { color: var(--muted); font-size: 1.15rem; margin-top: .25rem; }

/* Portrait — quadratisch mit weichem Fade-Rand */
.portrait {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  /* weicher Auslauf der Kanten ("fading") */
  -webkit-mask-image: radial-gradient(120% 120% at 50% 45%,
                       #000 58%, rgba(0,0,0,.35) 82%, transparent 100%);
          mask-image: radial-gradient(120% 120% at 50% 45%,
                       #000 58%, rgba(0,0,0,.35) 82%, transparent 100%);
}

@media (min-width: 600px) {
  .hero {
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    padding: 4rem 0 2rem;
  }
  .portrait { width: 200px; height: 200px; }
}

/* ---- Karten-Kacheln --------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #d8d2c7;
  box-shadow: 0 2px 4px rgba(35,40,45,.06), 0 14px 34px rgba(35,40,45,.10);
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 .3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.card__desc { color: var(--muted); font-size: .97rem; margin: 0; }
.card__lock { font-size: .75rem; color: var(--muted); }
.card__meta { color: var(--muted); font-size: .85rem; margin: .15rem 0 .5rem; }

/* Zweisprachiger Beitrag: Karte ist Container (kein Gesamt-Link),
   stattdessen ein Sprach-Button je Sprache. */
li.card { cursor: default; }
/* Titel selbst klickbar (fuehrt zur Standardsprache) */
.card__title a { color: inherit; }
.card__title a:hover { color: var(--accent); text-decoration: none; }
li.card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.card__langs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; }
.card__langs a {
  font-size: .9rem;
  padding: .38rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: var(--surface);
  line-height: 1;
}
.card__langs a:hover {
  border-color: var(--accent);
  color: var(--accent-dk);
  text-decoration: none;
}

/* ---- Kontakt ---------------------------------------------------------- */
.contact { margin: 1rem 0 2rem; }
.contact dt { font-weight: 600; color: var(--muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em; }
.contact dd { margin: 0 0 .9rem; }

/* LinkedIn als klickbarer Schriftzug im Kontakt-dt (korrekte Schreibweise, nicht Uppercase) */
.linkedin-link {
  color: var(--accent);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 600;
}
.linkedin-link:hover {
  color: var(--accent-dk);
  text-decoration: underline;
}

/* ---- Inhaltsseiten (Fotos, Privat, KnowHow-Beitrag) ------------------- */
.content { padding: 2.5rem 0 1rem; }
.content .lead { font-size: 1.15rem; color: var(--muted); }

.notice {
  background: #f3f1ea;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted);
}

.back { display: inline-block; margin: 1.5rem 0; font-size: .95rem; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
