/* Keluno Studio, Entwurf B „Leinen“: hell und ruhig auf Creme. Einstieg zweispaltig, darunter das Bild der Demo-Website, das in den nächsten Abschnitt ragt; Angebot als ruhige Liste, Ablauf als senkrechte Linie; dunkelgrüner Fuss. Bewusst nur ein helles Erscheinungsbild. */
:root {
  --linen: #F4F1EC;
  --paper: #FBF9F5;
  --ink: #1E3A34;
  --ink-muted: #52665F;
  --line: #DCD6CB;
  --terra: #C8643B;
  --terra-light: #E9A27F;
  --terra-wash: #F0D5C6;
  --on-ink: #F4F1EC;
  --on-ink-muted: #B9C2BB;
  --shadow: rgba(30, 58, 52, 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 4.25rem);

  --section: clamp(4.5rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: 0.5rem; }

.label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); }

/* Kopf */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; }
.brand { display: inline-flex; flex: none; }
.brand .logo { width: clamp(132px, 12vw, 158px); height: auto; display: block; }
.head-right { display: flex; align-items: center; gap: 2rem; }
.nav { display: none; gap: 1.6rem; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.lang { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.85rem; }
.lang__opt {
  font: 600 0.85rem/1 var(--font-body);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.5rem 0.45rem;
  border-bottom: 2px solid transparent;
}
.lang__opt[aria-current] { color: var(--ink); border-bottom-color: var(--terra); }
.lang__opt:not([aria-current]):hover { color: var(--ink); }
.lang__sep { color: var(--line); }

/* Einstieg */
.hero .wrap { padding-block: clamp(2.5rem, 6vw, 5.5rem) 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4rem; align-items: center; } }
.hero__head { display: grid; gap: 1.3rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.015em; max-width: 15ch; }
.hero h1 span { display: block; color: var(--terra); font-size: 0.6em; margin-top: 0.45em; letter-spacing: -0.005em; }
.hero__side { display: grid; gap: 1.6rem; min-width: 0; }
.hero__lead { font-size: var(--step-1); color: var(--ink-muted); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 10px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--terra); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink); }

.hero__shot { margin: 0 0 calc(-1 * clamp(3rem, 8vw, 6rem)); position: relative; z-index: 1; }
.frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 40px 70px -45px var(--shadow);
}
.frame img { border-radius: 10px; width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }

/* Abschnitte */
.section .wrap { padding-block: var(--section); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.hero + .section .wrap { padding-top: calc(var(--section) + clamp(3rem, 8vw, 6rem)); }
.section__head { display: grid; gap: 0.8rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); max-width: 44rem; }
.section__head h2 { font-size: var(--step-3); }

/* Angebot */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; align-items: start; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
@media (min-width: 620px) { .service { grid-template-columns: clamp(120px, 15vw, 168px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; } }
.service__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
@media (min-width: 620px) { .service__img { border-radius: 14px; } }
.service__body { display: grid; gap: 0.6rem; min-width: 0; }
.service h3 { font-size: var(--step-2); }
.service__num { color: var(--terra); font-variant-numeric: tabular-nums; }
.service p { color: var(--ink-muted); max-width: 40rem; }

/* Demo */
.demo { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
/* Fallbeispiele: Abschnittskopf oben, darunter je Beispiel ein Block; der zweite mit Linie davor */
#demo .section__head { margin-bottom: 0; }
#demo > .wrap:first-child { padding-bottom: clamp(2.25rem, 5vw, 3.5rem); }
#demo > .wrap.demo { padding-top: 0; }
#demo > .wrap.demo--second { margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.demo__text h3 { font-size: var(--step-3); }
@media (min-width: 960px) { .demo { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
.demo__text { display: grid; gap: 1.3rem; min-width: 0; }
.demo__intro { font-size: var(--step-1); line-height: 1.55; }
.demo__find { font-weight: 600; padding-top: 0.4rem; }
.demo__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.demo__list li { position: relative; padding-left: 1.6rem; color: var(--ink-muted); }
.demo__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1.5px solid var(--terra); }
.demo__note { font-size: 0.95rem; color: var(--ink); background: var(--terra-wash); border-radius: 12px; padding: 1rem 1.2rem; }
.demo__shots { display: grid; gap: 1.75rem; min-width: 0; }
.demo__shots figure { margin: 0; display: grid; gap: 0.7rem; }
.demo__shots figcaption { font-size: 0.9rem; color: var(--ink-muted); display: flex; align-items: center; gap: 0.6rem; }
.demo__shots figcaption::before { content: ""; width: 1.5rem; border-top: 1px solid var(--terra); }
@media (min-width: 960px) { .demo__shots figure:nth-child(2) { margin-left: 12%; } }

/* Ablauf */
.how { display: grid; gap: 2rem; }
@media (min-width: 900px) { .how { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; } .how .section__head { margin-bottom: 0; align-content: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.step { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1.4rem; row-gap: 0.4rem; padding-bottom: 2.4rem; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 1.2rem; top: 2.4rem; bottom: 0; border-left: 1px solid var(--line); }
.step:last-child { padding-bottom: 0; }
.step__num {
  grid-row: span 2;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--terra-light);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}
.step h3 { font-size: var(--step-2); padding-top: 0.1rem; }
.step p { color: var(--ink-muted); max-width: 34rem; }

/* Über mich */
.about {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; } }
.about__name { display: grid; gap: 0.8rem; align-content: start; }
.about__name h2 { font-size: var(--step-3); }
.about__name svg { width: 5.5rem; height: auto; margin-top: 0.8rem; }
.about__text { display: grid; gap: 1.1rem; font-size: var(--step-1); line-height: 1.6; max-width: 38rem; min-width: 0; }
.about__text p + p { color: var(--ink-muted); }

/* Sprachen */
.tongues { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .tongues { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
.tongue { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.5rem 1.75rem; display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.tongue__name { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); }
.tongue__line { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.3; }
.tongues + p { margin-top: 1.75rem; color: var(--ink-muted); max-width: 40rem; }

/* Kontakt */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.contact__text { display: grid; gap: 1.2rem; min-width: 0; }
.contact__text h2 { font-size: var(--step-3); }
.contact__text > p { color: var(--ink-muted); max-width: 30rem; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding-top: 0.4rem; }
.email a { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); text-decoration: none; overflow-wrap: anywhere; line-height: 1.25; background: linear-gradient(var(--terra-light), var(--terra-light)) 0 92% / 100% 0.28em no-repeat; }
.copy { font: 600 0.85rem/1 var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.85rem; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.contact__text > .phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; color: var(--ink); }
.phone__label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); }
.phone a { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); text-decoration: none; white-space: nowrap; }
.phone a:hover { color: var(--terra); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.2rem; min-width: 0; }
.form__row { display: grid; gap: 1.2rem; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label, .field legend { font-size: 0.9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--font-body);
  color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; border-color: transparent; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.45rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; color: var(--ink-muted); background: var(--linen); }
.choice input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 0.9rem; color: var(--ink-muted); }
.form__note a { color: var(--ink); text-decoration-color: var(--terra); text-underline-offset: 0.2em; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { font-size: 0.95rem; color: var(--terra); min-height: 1.5em; }

/* Fuss */
.site-footer { background: var(--ink); color: var(--on-ink); }
.site-footer .wrap { display: grid; gap: 2rem; padding-block: 3.5rem 2.75rem; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.foot__brand { display: grid; gap: 1rem; }
.foot__brand .logo { width: 170px; height: auto; display: block; }
.foot__brand p { color: var(--on-ink-muted); max-width: 26rem; }
.foot__meta { display: grid; gap: 0.5rem; font-size: 0.95rem; color: var(--on-ink-muted); }
@media (min-width: 820px) { .foot__meta { justify-items: end; text-align: right; } }
.foot__meta a { color: var(--on-ink); text-decoration: none; }
.foot__meta a:hover { text-decoration: underline; text-decoration-color: var(--terra-light); text-underline-offset: 0.2em; }
.foot__address { font-size: 0.9rem; font-style: normal; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.foot__legal [aria-current] { color: var(--terra-light); }

/* Rechtstexte, Danke- und Fehlerseite */
.page { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section); }
.legal { display: grid; gap: 1rem; max-width: 46rem; }
.legal h1 { font-size: var(--step-3); margin-bottom: 0.75rem; }
.legal h2 { font-size: var(--step-1); margin-top: 1.5rem; }
.legal p { color: var(--ink-muted); overflow-wrap: anywhere; }
.legal a { color: var(--ink); text-decoration-color: var(--terra); text-underline-offset: 0.2em; }
.legal .legal__date { font-size: 0.95rem; margin-top: 1.5rem; }
.notice { display: grid; gap: 1.5rem; max-width: 40rem; min-height: 45svh; align-content: center; }
.notice h1 { font-size: var(--step-3); }
.notice p { font-size: var(--step-1); color: var(--ink-muted); line-height: 1.6; }
.notice .notice__alt { font-size: 1rem; }
.notice .notice__alt a { color: var(--ink); text-decoration-color: var(--terra); text-underline-offset: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
