/* ============================================================
   meliisthetics — Editorial OnePager (Variante B)
   Instrument Serif + Hanken Grotesk · Bogen-Motiv
   Design-Tokens siehe design-system/MASTER.md
   ============================================================ */

:root {
  --cream: #f4efe9;       /* Seitenhintergrund */
  --sand: #ebe2d7;        /* „Über mich"-Hintergrund */
  --ink: #1c1712;         /* Text, Primär-Button */
  --gold: #b8916a;        /* Akzent (Logo, Button-Hover) */
  --gold-text: #96714d;   /* Akzent-Text (Kicker, Kursiv, Zahlen) */
  --gold-soft: #c9a57f;   /* Akzent auf dunklem Grund */
  --body: #4f443b;        /* Fließtext */
  --muted: #6b5f55;       /* Sekundärtext, Footer */
  --line: #e8dfd3;        /* Trenner Nav/Footer */
  --line-strong: #d9cdbd; /* Listen-Linien, Chip-Rahmen */
  --lang-off: #b5a898;    /* inaktive Sprache */

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1440px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

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

#top, #ueber, #leistungen, #kontakt { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }

h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  font-size: 16px;
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--gold-text); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: .01em;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.lang-toggle {
  display: flex;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
}
.lang-toggle button {
  background: none;
  border: none;
  padding: 6px 2px;
  font: inherit;
  letter-spacing: inherit;
  color: var(--lang-off);
  cursor: pointer;
  transition: color .2s ease;
}
.lang-toggle button[aria-pressed="true"] { color: var(--ink); }
.lang-toggle .sep { color: var(--line-strong); align-self: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border-radius: 40px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 14px 24px;
  font-size: 15px;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-solid {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  padding: 18px 30px;
}
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.btn-textlink {
  color: var(--ink);
  padding: 18px 2px;
  font-size: 16px;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-textlink:hover { color: var(--gold-text); border-color: var(--gold-text); }

/* Burger (nur mobil sichtbar) */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .25s ease;
}
.nav-burger span:nth-child(1) { width: 24px; }
.nav-burger span:nth-child(2) { width: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.kicker {
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 128px);
  line-height: .95;
  letter-spacing: -.02em;
}
.hero-title .accent { font-style: italic; color: var(--gold-text); }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 480px;
  margin: 36px 0;
  text-wrap: pretty;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.service-strip .item {
  padding: 20px 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-strip .no { font-size: 13px; color: var(--gold-text); font-weight: 600; }
.service-strip .name { font-size: 18px; font-weight: 600; }

/* Bogen-Bild + Detail */
.hero-media {
  position: relative;
  height: clamp(460px, 56vw, 820px);
}
.arch {
  position: absolute;
  inset: 0;
  border-radius: 400px 400px 28px 28px;
  overflow: hidden;
  background: var(--sand);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-detail {
  position: absolute;
  left: -56px;
  bottom: 56px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--cream);
  padding: 10px;
}
.hero-detail .round {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
}
.hero-detail img { width: 100%; height: 100%; object-fit: cover; }

.hero-vertical {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

/* ============================================================
   ÜBER MICH
   ============================================================ */
.about {
  background: var(--sand);
}
.about .container {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(56px, 9vw, 110px);
}

.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-portrait {
  height: clamp(340px, 38vw, 540px);
  border-radius: 220px 220px 20px 20px;
  overflow: hidden;
  background: var(--cream);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.about-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: clamp(40px, 7vw, 90px);
}
.about-stack .tile { border-radius: 20px; overflow: hidden; background: var(--cream); }
.about-stack .tile.logo { height: clamp(150px, 18vw, 260px); }
.about-stack .tile.shoot { height: clamp(120px, 12vw, 174px); }
.about-stack .tile img { width: 100%; height: 100%; object-fit: cover; }

.about-copy .kicker { margin-bottom: 24px; }
.about-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -.01em;
}
.about-title .accent { font-style: italic; color: var(--gold-text); }
.about-text {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--body);
  max-width: 560px;
  margin: 32px 0 48px;
  text-wrap: pretty;
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.service-row {
  display: grid;
  grid-template-columns: 56px 220px 1fr;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
}
.service-row .no { font-size: 14px; color: var(--gold-text); font-weight: 600; }
.service-row .name { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 30px); }
.service-row .desc { font-size: 16px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact .container {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 7vw, 96px);
  line-height: .98;
}
.contact-title .accent { font-style: italic; color: var(--gold-text); }
.contact-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 460px;
  margin: 28px 0 56px;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  font-size: 17px;
  line-height: 1.6;
}
.contact-details .label {
  display: block;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.contact-details a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.contact-details a:hover { border-color: var(--ink); }

/* Formular */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 40px;
}
.field { display: flex; flex-direction: column; }
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink);
  outline: none;
  width: 100%;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus,
.field textarea:focus { border-color: var(--gold-text); }
.field.has-error input,
.field.has-error textarea { border-color: #a23b2e; }
.error-msg {
  display: none;
  font-size: 13px;
  color: #a23b2e;
  margin-top: 8px;
}
.field.has-error .error-msg { display: block; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  padding: 11px 18px;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.form-status {
  font-size: 15px;
  margin: 0;
}
.form-status.ok { color: #3f6b4a; }
.form-status.err { color: #a23b2e; }
.form-privacy { font-size: 13px; color: var(--muted); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: clamp(56px, 9vw, 110px);
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-wordmark { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }

/* ============================================================
   MOBILE-MENÜ (Overlay)
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--pad);
  transform: translateY(-100%);
  transition: transform .35s ease;
  visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--ink);
  padding: 10px 0;
}
.mobile-menu a:hover { color: var(--gold-text); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: var(--pad);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

/* ============================================================
   RESPONSIVE — Umschaltung Desktop → Mobile bei ~900px
   ============================================================ */
@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto 1fr;
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .nav-links { display: none; }
  .brand { justify-self: start; }
  .brand svg { width: 24px; height: 24px; }
  .brand-name { font-size: 23px; }
  .nav-right { gap: 14px; }
  .nav .btn-outline { display: none; }
  .nav-burger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 48px;
  }
  .hero-left { order: 1; }
  .hero-media { order: 2; }

  /* Mobile Hero-Reihenfolge: Kicker → H1 → Bild → Sub → Button */
  .hero-left { display: contents; }
  .hero-left .kicker { order: 1; margin-bottom: 16px; }
  .hero-title { order: 2; }
  .hero-media { order: 3; margin-top: 28px; height: 470px; }
  .hero-sub { order: 4; margin: 40px 0 24px; }
  .hero-actions { order: 5; }
  .hero-actions .btn-solid { width: 100%; padding: 17px; }
  .hero-actions .btn-textlink { display: none; }
  .service-strip { display: none; }

  .arch { border-radius: 200px 200px 22px 22px; }
  .hero-detail {
    left: auto;
    right: -6px;
    bottom: -24px;
    width: 130px;
    height: 130px;
    padding: 6px;
  }
  .hero-vertical { display: none; }

  .about .container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-copy { display: contents; }
  .about-copy .kicker { order: 1; margin-bottom: 14px; }
  .about-title { order: 2; }
  .about-collage { order: 3; margin: 24px 0; grid-template-columns: 1.3fr 1fr; }
  .about-text { order: 4; margin: 0 0 28px; }
  .service-list { order: 5; }

  .about-portrait { height: 260px; border-radius: 120px 120px 16px 16px; }
  .about-stack { padding-top: 0; flex-direction: column; }
  .about-stack .tile.logo { height: 260px; }
  .about-stack .tile.shoot { display: none; }

  .service-row {
    display: block;
    padding: 16px 0;
  }
  .service-row .no { font-size: 12px; }
  .service-row .name { font-size: 26px; margin-left: 10px; }
  .service-row .desc { display: block; padding-left: 30px; margin-top: 4px; font-size: 14px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding-top: 8px; gap: 22px; }
  .contact-details { gap: 22px; }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }
  .footer-wordmark { display: none; }
}

@media (max-width: 420px) {
  .contact-details { grid-template-columns: 1fr; }
}

/* ============================================================
   RECHTS-SEITEN (Impressum / Datenschutz)
   ============================================================ */
.legal-nav { grid-template-columns: 1fr auto; }
.nav-link {
  font-size: 15px;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--ink); }

.legal-main {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(56px, 8vw, 96px);
  max-width: 760px;
}
.legal-main .kicker { margin-bottom: 18px; }
.legal-main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 36px;
}
.legal-main h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  margin: 40px 0 12px;
}
.legal-main p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 14px;
}
.legal-main a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.legal-main a:hover { border-color: var(--ink); }
.legal-note {
  background: var(--sand);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14px !important;
  color: var(--muted) !important;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(48px, 8vw, 90px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .footer-meta { flex-direction: column; align-items: flex-start; }
}
