/* =====================================================================
   Dieter Braun — Freiberufliche Softwareentwicklung
   Bewusst schlicht und nüchtern: Systemschrift, Weiß/Schwarz/Grau,
   kaum Gestaltung. Eher ein aufgeräumtes Dokument als eine „Design"-Seite.
   ===================================================================== */

:root {
  --bg:      #ffffff;
  --bg-soft: #f6f6f4;
  --text:    #1b1b1a;
  --soft:    #363634;
  --muted:   #6a6a66;
  --line:    #e2e2df;
  --line-2:  #cfcfca;

  --maxw: 940px;
  --measure: 68ch;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; }

h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.95rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.2rem, var(--maxw)); margin-inline: auto; }
.section { padding: 3.2rem 0; }
.divider { height: 1px; background: var(--line); border: 0; }

.lead { color: var(--soft); font-size: 1.1rem; max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose p { color: var(--soft); margin-top: 1rem; }
.prose p:first-child { margin-top: 0; }
.prose strong { font-weight: 600; }

a.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a.link:hover { text-decoration-color: var(--text); }

/* ---------- Buttons (nüchtern) ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: .98rem;
  padding: .62rem 1.1rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover { background: #000; border-color: #000; }

/* ---------- Navigation ---------- */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; }
.brand { font-weight: 700; font-size: 1.05rem; }
.brand span { color: var(--muted); font-weight: 400; font-size: .84rem; margin-left: .5rem; }
@media (max-width: 560px) { .brand span { display: none; } }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: var(--soft); font-size: .95rem; text-decoration: none; }
.nav__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: 2px; color: var(--text); cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Hero ---------- */
.hero { padding-top: 3rem; padding-bottom: 3rem; }
.hero__grid { display: grid; grid-template-columns: 1fr 300px; gap: 2.6rem; align-items: start; }
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.3rem); }
.hero__lead { margin-top: 1.1rem; font-size: 1.1rem; color: var(--soft); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.7rem; }
.hero__place { margin-top: 1.8rem; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.hero__place span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__place svg { width: 15px; height: 15px; opacity: .6; }

/* Porträt-Foto – schlicht gerahmt */
.hero__photo { border: 1px solid var(--line-2); }
.hero__photo img { width: 100%; height: auto; display: block; filter: grayscale(100%); }
.hero__caption { margin-top: .7rem; }
.hero__caption b { font-weight: 700; font-size: 1rem; display: block; }
.hero__caption span { color: var(--muted); font-size: .88rem; }

/* ---------- Über mich ---------- */
.about__grid { display: grid; grid-template-columns: 220px 1fr; gap: 2.4rem; }
.signature { margin-top: 1.6rem; color: var(--text); }

/* ---------- Leistungen ---------- */
.svc { margin-top: 1.8rem; border-top: 1px solid var(--line); }
.svc__item { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.svc__item h3 { font-size: 1.1rem; }
.svc__item p { color: var(--soft); font-size: .98rem; margin-top: .35rem; max-width: var(--measure); }

/* ---------- Werdegang (CV) ---------- */
.cv { margin-top: 1.8rem; border-top: 1px solid var(--line); }
.cv__item { display: grid; grid-template-columns: 150px 1fr; gap: 1.6rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.cv__when { color: var(--muted); font-size: .9rem; padding-top: .15rem; }
.cv__body h3 { font-size: 1.12rem; }
.cv__role { color: var(--soft); font-size: .96rem; margin-top: .1rem; }
.cv__body p { color: var(--soft); font-size: .96rem; margin-top: .6rem; max-width: var(--measure); }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.contact__list { display: grid; gap: .8rem; margin-top: .2rem; }
.contact__row { display: flex; align-items: baseline; gap: 1rem; }
.contact__row dt { color: var(--muted); font-size: .86rem; min-width: 78px; }
.contact__row dd { font-size: 1.02rem; }
.contact__row a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.contact__row a:hover { text-decoration-color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding: 1.8rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between; align-items: center; }
.footer__name { font-weight: 700; font-size: .98rem; }
.footer__links { display: flex; gap: 1.3rem; }
.footer__links a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 2.4rem 0 3.5rem; }
.legal .back { color: var(--muted); font-size: .9rem; text-decoration: none; display: inline-block; margin-bottom: 1.6rem; }
.legal .back:hover { color: var(--text); text-decoration: underline; }
.legal h1 { font-size: 1.8rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.legal p, .legal li { color: var(--soft); margin-top: .7rem; max-width: var(--measure); }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.legal__source { color: var(--muted); font-size: .86rem; margin-top: 2.2rem; }

/* keine Animation – bewusst ruhig */
.reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__visual { max-width: 260px; }
  .about__grid { grid-template-columns: 1fr; gap: 1rem; }
  .cv__item { grid-template-columns: 1fr; gap: .35rem; }
  .cv__when { padding-top: 0; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .3rem 1.1rem 1rem; z-index: 20;
  }
  .nav.is-open { position: relative; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: .7rem 0; width: 100%; }
  .nav__toggle { display: grid; }
}
