/* =========================================================
   Corinna Kok – Illustration
   Farbwelt aus der Visitenkarte
   ========================================================= */

:root {
  --forest:      #2e3d37;   /* dunkles Tannengrün (Schrift, Kontrast) */
  --forest-soft: #3d4f47;
  --sage:        #a7ba85;   /* Salbeigrün (Akzent) */
  --sage-soft:   #c4d1a8;
  --sage-tint:   #e9eede;   /* sehr helles Salbei (Flächen) */
  --cream:       #f7f8f2;   /* Hintergrund */
  --white:       #ffffff;
  --muted:       #6c7b70;

  --font-head: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --maxw: 1100px;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;

  /* Vom Design-Bedienfeld im Panel steuerbar (Standardwerte hier) */
  --base-font: clamp(1rem, 0.6vw + 0.9rem, 1.125rem);
  --head-scale: 1;
  --section-pad: clamp(3rem, 8vw, 6rem);
  --btn-radius: 999px;
  --btn-bg: var(--forest);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--base-font);
  line-height: 1.7;
  color: var(--forest);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 0.5em;
}
h1 { font-size: calc(clamp(2.1rem, 5vw, 3.4rem) * var(--head-scale)); letter-spacing: 0.01em; }
h2 { font-size: calc(clamp(1.6rem, 3vw, 2.3rem) * var(--head-scale)); }
h3 { font-size: 1.25rem; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

section { padding-block: var(--section-pad); }
section[id] { scroll-margin-top: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  background: var(--btn-bg);
  color: var(--cream);
  padding: 0.7em 1.6em;
  border-radius: var(--btn-radius);
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--forest-soft); text-decoration: none; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--sage); }
.btn--ghost:hover { background: var(--sage-tint); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage-tint);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.brand span { font-family: var(--font-script); text-transform: none; letter-spacing: 0; color: var(--sage); font-size: 1.4rem; margin-left: 0.15em; }
.brand:hover { text-decoration: none; }
.brand__img { height: 48px; width: auto; display: block; }
@media (max-width: 600px) { .brand__img { height: 38px; } }

nav.menu ul { display: flex; gap: clamp(1rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
nav.menu a {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
nav.menu a:hover { text-decoration: none; border-color: var(--sage); }
nav.menu a[aria-current] { border-color: var(--forest); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--forest); }

/* ---------- Hero ---------- */
.hero { background: var(--sage-tint); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--gap); align-items: center; }
.hero__sub { font-family: var(--font-script); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--sage); margin: 0 0 0.3em; line-height: 1; }
.hero__sub-img { display: block; max-width: min(100%, 400px); height: auto; margin: 0 0 0.2em; }
.hero__intro { max-width: 46ch; color: var(--forest-soft); }
.hero__media img { border-radius: var(--radius); }
.hero__media--empty {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: var(--white); display: grid; place-items: center;
  color: var(--muted); font-family: var(--font-head); border: 2px dashed var(--sage-soft);
}

/* ---------- Lead / intro text ---------- */
.lead { max-width: 60ch; color: var(--forest-soft); }

/* ---------- Portfolio grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(46,61,55,.85), transparent);
  color: var(--cream); padding: 1.4rem 1rem 0.8rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  opacity: 0; transition: opacity .25s ease;
}
.gallery a:hover figcaption { opacity: 1; }

.gallery__empty {
  margin-top: 2.5rem; padding: 3rem; text-align: center;
  border: 2px dashed var(--sage-soft); border-radius: var(--radius); color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(46, 61, 55, 0.93);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }
.lightbox__stage {
  margin: 0; max-width: min(92vw, 1100px); max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.lightbox__img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 12px 45px rgba(0,0,0,.45);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__caption { color: var(--cream); font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: var(--cream);
  border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px;
  font-size: 1.9rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
@media (max-width: 600px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
}

/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--gap); align-items: start; }
.about__portrait img { border-radius: var(--radius); }
.about__text { max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { background: var(--sage-tint); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 2rem; }
.contact__details a { font-weight: 600; }
.contact__details p { margin: 0.4em 0; }

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 0.3rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.7em 0.9em; font: inherit;
  border: 1px solid var(--sage-soft); border-radius: 10px; background: var(--white); color: var(--forest);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--sage); border-color: transparent; }
.form-note { padding: 1em; border-radius: 10px; margin-bottom: 1.2rem; }
.form-note--ok { background: #e3efd9; color: #2f5320; }
.form-note--err { background: #f6e2dd; color: #7a2f1c; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 68ch; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal p { color: var(--forest-soft); }

.form-consent { font-size: 0.85rem; color: var(--muted); max-width: 52ch; margin: 0 0 1.2rem; }
.form-consent a { color: var(--forest-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding-block: 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--sage-soft); }
.site-footer .brand { color: var(--cream); }
.site-footer .brand__img { height: auto; width: auto; max-width: 320px; max-height: 72px; }
.site-footer small { color: color-mix(in srgb, var(--cream) 65%, transparent); }
.footer-legal { text-align: right; }
.footer-legal p { margin: 0 0 0.3rem; font-size: 0.9rem; }
.site-footer__text { max-width: 38ch; }
.site-footer__text p { margin: 0.2em 0; font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero .wrap, .about .wrap, .contact__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .nav-toggle { display: block; }
  nav.menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--sage-tint); }
  nav.menu.open { display: block; }
  nav.menu ul { flex-direction: column; padding: 1rem 1.25rem; gap: 1rem; }
}
