/* Siebenmorgen – Content & Websites
   Markenregeln: docs/brand-guidelines.md
   Keine externen Schriften/CDNs: Schrift und Bilder liegen auf dem eigenen Server (DSGVO). */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --ink: #1c1a17;
  --ink-soft: #5a544c;
  --line: #ddd3c5;
  --sun: #e0592a;
  --sun-soft: #f4b25a;
  --glut: #b5431a; /* Akzent für kleinen Text und Buttons mit hellem Text (4,9:1) */
  --night: #1f2430;
  --night-text: #cfc6b8;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: var(--ink-soft) var(--paper-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--glut);
  accent-color: var(--glut);
}

::selection { background: var(--sun-soft); color: var(--ink); }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; font-weight: 480; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--glut); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 580;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 100%, var(--sun) 0 48%, transparent 49%),
              linear-gradient(var(--paper-2), var(--paper-2));
  border: 1.5px solid var(--ink);
  position: relative; overflow: hidden; flex: none;
}
.logo-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 30%; height: 1.5px; background: var(--ink);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--paper); padding: 11px 20px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 12px; margin-right: -12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s var(--ease-out), opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; color: var(--ink); }
  .nav .btn { margin-top: 10px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px;
  background: var(--ink); color: var(--paper);
  padding: 12px 24px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.97rem;
  border: 1.5px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--glut); border-color: var(--glut); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(calc(100svh - 68px), 880px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(48px, 9vh, 104px) 0 0;
  color: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: #e9a46b url("../img/feld-morgen.jpg") center 62% / cover; }
.hero-media::after {
  /* Papier-Verlauf oben: sichert den Kontrast der Überschrift auf dem Himmel */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 30%, transparent 52%);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-video.ready { opacity: 1; }

.hero-copy { width: 100%; }
.hero h1 { max-width: 12em; }
.hero h1 em { color: var(--glut); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 31em; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.hero .btn-ghost:hover { background: var(--ink); }

.hero-facts {
  list-style: none; margin: clamp(56px, 10vh, 120px) auto 0; width: 100%;
  display: flex; flex-wrap: wrap; gap: 8px 36px;
  padding-top: 20px; padding-bottom: 26px;
  color: var(--paper); font-size: 0.95rem;
  position: relative;
}
.hero-facts::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px;
  background: color-mix(in srgb, var(--paper) 30%, transparent);
}
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-soft); }
.hero::after {
  /* dunkles Feld unten für die Faktenleiste */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1;
  background: linear-gradient(0deg, rgba(20,22,30,.75), transparent);
}

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-media { background-position: 58% 70%; }
  .hero-media::after {
    background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 80%, transparent) 45%, transparent 70%);
  }
  .hero-video { object-position: 58% 70%; }
  .hero-facts { margin-top: 140px; flex-direction: column; gap: 6px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 11vw, 136px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.alt { background: var(--paper-2); }

/* Häkchen-Liste (gezeichnetes SVG statt Zeichen) */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 9px 0 9px 30px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.95em; width: 16px; height: 16px;
  background: var(--glut);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5 6.5 12 13.5 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5 6.5 12 13.5 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Leistungen: redaktionelle Reihen statt Kartenraster */
.service {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { padding-bottom: 0; }
.service img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(31,36,48,.55);
}
.service-flip img { order: 2; }
.service-verb {
  font-family: var(--serif); font-style: italic; font-weight: 420;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--sun);
  margin: 0 0 14px;
}
.service h3 { font-size: 1.6rem; }
.service-body > p:not(.service-verb) { color: var(--ink-soft); font-size: 1.08rem; max-width: 34em; }
.service .ticks { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; gap: 28px; }
  .service img { max-width: 420px; aspect-ratio: 4 / 3; }
  .service-flip img { order: 0; }
}

/* Ablauf – die Nummern tragen die Reihenfolge */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; color: var(--paper); background: var(--ink);
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 56px; right: -20px; height: 1px; background: var(--line);
}
.steps li:last-child::before { background: var(--glut); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Referenzen */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-item {
  position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden;
  background: var(--night); color: var(--paper);
  padding: 32px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
}
.work-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg, linear-gradient(135deg, #2a2f3d, #1a1d26));
  transition: transform .6s var(--ease-out);
}
a.work-item:hover::before { transform: scale(1.04); }
.work-item .tag { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--night-text); margin-bottom: 8px; }
.work-item h3 { margin-bottom: 6px; }
.work-item p { margin: 0; color: var(--night-text); font-size: 0.98rem; max-width: 36em; }
.work-item .arrow {
  position: absolute; top: 26px; right: 26px; width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease-out);
}
a.work-item:hover .arrow { transform: translate(3px, -3px); }
.work-item.wide { grid-column: span 2; min-height: 240px; }
.work-self { background: var(--night) url("../img/feld-baum.jpg") center 60% / cover; }
.work-self::before { background: linear-gradient(0deg, rgba(20,22,30,.88) 10%, rgba(20,22,30,.15) 80%); }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } .work-item.wide { grid-column: auto; } .work-item { min-height: 240px; } }

/* Pakete */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  background: var(--paper); display: flex; flex-direction: column;
}
.plan h3 { font-size: 1.7rem; margin-bottom: 4px; }
.plan-what { color: var(--ink-soft); margin-bottom: 18px; }
.plan .ticks { margin-bottom: 28px; border-top: 1px solid var(--line); padding-top: 8px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.featured { background: var(--night); color: var(--paper); border-color: var(--night); box-shadow: 0 28px 56px -32px rgba(31,36,48,.7); }
.plan.featured .plan-what, .plan.featured .ticks li { color: var(--night-text); }
.plan.featured .ticks { border-top-color: rgba(255,255,255,.14); }
.plan.featured .ticks li::before { background: var(--sun-soft); }
.plan.featured .btn { background: var(--glut); border-color: var(--glut); }
.plan.featured .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan-badge {
  position: absolute; top: -13px; left: 28px; margin: 0;
  background: var(--sun-soft); color: var(--ink);
  font-size: 0.8rem; font-weight: 600; padding: 3px 12px; border-radius: 999px;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; row-gap: 32px; } }

.plan-price { font-family: var(--serif); font-size: 2.2rem; font-weight: 560; line-height: 1; margin: 0 0 20px; font-variant-numeric: lining-nums; }
.plan-price span { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); margin-right: 2px; }
.plan-price small { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.plan.featured .plan-price span, .plan.featured .plan-price small { color: var(--night-text); }

/* Preisliste */
.pricelist { margin-top: clamp(56px, 8vw, 88px); }
.pricelist-title { font-size: 1.9rem; margin-bottom: 24px; }
.pricelist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px clamp(24px, 4vw, 48px); }
.price-group h4 { font-family: var(--serif); font-weight: 560; font-size: 1.2rem; margin: 0 0 6px; color: var(--glut); }
.price-group dl { margin: 0; }
.price-group dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.price-group dt { color: var(--ink-soft); }
.price-group dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricelist-note { margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 900px) { .pricelist-grid { grid-template-columns: 1fr; } }

/* Über mich */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 24px 48px -28px rgba(31,36,48,.55);
}
.about p { color: var(--ink-soft); font-size: 1.08rem; max-width: 36em; }
.about p em { font-family: var(--serif); font-size: 1.12em; color: var(--ink); }
.about .btn { margin-top: 8px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 300px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 520;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  /* Plus aus zwei Linien, dreht sich beim Öffnen zum Kreuz */
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.8px; background: var(--glut);
  transition: transform .3s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--glut); }
.faq details p { color: var(--ink-soft); padding-bottom: 14px; max-width: 40em; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* Kontakt */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--paper);
  padding: clamp(96px, 12vw, 152px) 0;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(31,36,48,.97) 0%, rgba(31,36,48,.84) 55%, rgba(31,36,48,.55) 100%),
    url("../img/feld-morgen-960.jpg") center 70% / cover;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { max-width: 12em; }
.contact-intro p { color: var(--night-text); max-width: 30em; font-size: 1.12rem; }
.contact-direct { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.contact-direct a { color: var(--paper); font-size: 1.05rem; display: inline-block; padding: 8px 0; }
.contact-direct a:hover { color: var(--sun-soft); }

.contact-form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 32px 64px -36px rgba(0,0,0,.6);
}
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fffdf9; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px; min-height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8278; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--glut); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glut) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer;
  font-weight: 500; padding: 9px 16px; min-height: 44px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fffdf9;
  transition: border-color .2s, background .2s;
}
.chips input { width: 17px; height: 17px; margin: 0; }
.chips label:has(input:checked) { border-color: var(--glut); background: color-mix(in srgb, var(--sun-soft) 22%, #fffdf9); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 18px; }
.contact-form .btn { width: 100%; justify-content: center; font-size: 1.02rem; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #2f6b3a; }
.form-status.error { color: #b3261e; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { background: var(--night); color: #a9a196; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { text-decoration: none; padding: 12px 0; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }

/* Rechtstexte */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--ink-soft); }
.todo { background: #fde7c8; color: #7a3b10; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
