/* Kontaro Consulting, Design-System
   Farben: Logo #4A7C6F, Tinte #182D2C, Knöpfe/Links #315D51,
   Sand #F5F1E9, Sand dunkel #E7DFD0, Mint #DDE8DF, Ton #B58D70 */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --logo: #4A7C6F;
  --ink: #182D2C;
  --action: #315D51;
  --action-hover: #264a41;
  --sand: #F5F1E9;
  --sand-deep: #E7DFD0;
  --mint: #DDE8DF;
  --clay: #B58D70;
  --white: #FFFFFF;
  --muted: #4B5F5C;
  --line: #D9DDD3;
  --radius: 14px;
  --wrap: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--logo); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; scroll-margin-top: var(--header-h); }
.section--sand { background: var(--sand); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

/* Knopf */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--action);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--action-hover); color: var(--white); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }

/* Kopfzeile */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 60px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.97rem; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--logo); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn {
  display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}

/* Kopfbereich */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-note { display: block; margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* Platzhalter-Bildflächen */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--radius); background: var(--mint); color: var(--logo);
}
.ph::before {
  content: ""; position: absolute; inset: auto -18% -30% auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%; background: rgba(255, 255, 255, 0.45);
}
.ph::after {
  content: ""; position: absolute; left: 7%; top: 8%; width: 36%; aspect-ratio: 1;
  border: 1.5px solid rgba(74, 124, 111, 0.35); border-radius: 50%;
}
.ph svg { position: relative; z-index: 1; width: 22%; min-width: 56px; max-width: 96px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ph--sand { background: var(--sand-deep); color: var(--action); }
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--3x2 { aspect-ratio: 3 / 2; }

/* Entlastung */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr 0.9fr; }

/* Leistungen */
.section-head { max-width: 40rem; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px 30px 30px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: ""; position: absolute; left: 30px; top: 0; width: 44px; height: 3px;
  background: var(--clay); border-radius: 0 0 3px 3px; transition: width 0.3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(24, 45, 44, 0.08); border-color: var(--logo); }
.card:hover::before { width: 72px; }
.card-no { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 14px; }
.card h3 { margin-bottom: 14px; }
.card p { margin-bottom: 0.7em; color: var(--muted); font-size: 1rem; }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; margin-right: 6px; font-weight: 600; color: var(--ink); }

/* Für wen */
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.who-item { padding: 36px 32px; background: var(--white); border-radius: var(--radius); }
.who-icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 50%; background: var(--mint); color: var(--action);
}
.who-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.who-item p { color: var(--muted); margin: 0; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 64px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%; background: var(--action); color: var(--white); font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--line);
}
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); }

/* Über Kontaro */
.about-meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--clay); font-size: 0.95rem; color: var(--muted); }

/* Kontakt */
.contact { background: var(--ink); color: var(--white); }
.contact .eyebrow { color: #B7D3CA; }
.contact h2 { color: var(--white); }
.contact p { color: #D5E1DC; }
.contact a { color: var(--white); }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; color: #D5E1DC; }
.contact-list li { margin-bottom: 6px; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 34px 32px; }
.form-card label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.form-card .opt { font-weight: 400; color: var(--muted); }
.field { margin-bottom: 18px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C4BE; border-radius: 10px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.25); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted) !important; margin: 14px 0 0; }
.form-note a { color: var(--action); }
.form-status { margin-top: 16px; padding: 0; font-weight: 600; }
.form-status.ok { color: var(--action); }
.form-status.err { color: #8a2f1e; }

/* Fusszeile */
.site-footer { background: var(--sand); padding: 48px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action); margin-bottom: 12px; }
.footer-grid p, .footer-grid ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--sand-deep); color: var(--muted); font-size: 0.88rem; }

/* Textseiten (Impressum, Datenschutz) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.notice { padding: 16px 20px; margin: 0 0 32px; background: var(--sand); border-left: 4px solid var(--clay); border-radius: 0 10px 10px 0; font-size: 0.95rem; }

/* Sanftes Einblenden (nur wenn JavaScript läuft) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav a::after { transition: none; }
}

/* Drucken und Screenshots: alles sofort sichtbar */
@media print {
  /* Hintergrundfarben und Bilder mitdrucken */
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  @page { margin: 10mm; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .site-header { position: static !important; backdrop-filter: none !important; }
  /* Desktop-Layout auch auf Papier, etwas enger */
  .hero-grid { gap: 32px; }
  .split { gap: 36px; }
  .card, .who-item, .figure, .ph, .form-card, .steps li, .site-footer { break-inside: avoid; }
  h1, h2, h3, .section-head { break-after: avoid; }
  .section { padding: 44px 0; }
  .nav { gap: 18px; }
  .nav a { white-space: nowrap; }
}
.no-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Tablet */
@media screen and (max-width: 900px) {
  .hero-grid, .split, .split--wide-left { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Handy: eigener Durchgang. Bild im Kopfbereich und bei "Entlastung" entfallen,
   Abschnitte werden kompakter, das Porträt wird rund und klein. */
@media screen and (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand img { height: 52px; }
  body { font-size: 1rem; }
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 48px; }
  .hero .ph, .split .ph--3x2 { display: none; }
  .hero .btn { width: 100%; }
  .lead { font-size: 1.08rem; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--white); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .cards, .who { grid-template-columns: 1fr; }
  .card { padding: 26px 22px 24px; }
  .who-item { padding: 26px 22px; }
  .split--steps .figure { max-width: 360px; }
  .about-photo { max-width: 200px; }
  .about-photo.ph { aspect-ratio: 1; border-radius: 50%; }
  .form-card { padding: 26px 20px; }
  .form-card .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
