/* ==========================================================================
   Codawari GmbH – Stylesheet (Redesign v2 „Technologie mit Haltung“)
   Petrol · Orange · Gold auf Creme. Reines CSS, keine Build-Pipeline nötig.
   ========================================================================== */

:root {
  --bg: #F7F0E4;
  --bg-soft: #FBF7EF;
  --sand: #E9DDCA;
  --line: #DDD0BC;
  --line-strong: #CDBEA6;

  --petrol: #08373C;
  --petrol-hover: #0F4A50;
  --orange: #DC6335;
  --orange-text: #C4532A;   /* Orange für Schrift auf Creme */
  --orange-light: #F08B5E;  /* Orange für Schrift auf Petrol */
  --gold: #BA8E4D;
  --gold-text: #8A6631;     /* Gold für kleine Schrift auf Creme */
  --gold-light: #D6B47A;    /* Gold für Schrift auf Petrol */

  --ink: #1D2B2C;
  --ink-soft: #46524F;
  --ink-muted: #6B7471;
  --cream: #F4ECDF;
  --cream-soft: rgba(244, 236, 223, 0.8);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  /* linke Inhaltskante des Containers – für randabfallende Bänder */
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  --header-h: 88px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--petrol); }
p, figure, address { margin: 0; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--petrol); color: var(--cream); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Typografische Bausteine
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--petrol);
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--accent { color: var(--orange-text); }

.section-title {
  font-size: clamp(36px, 3.9vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--orange-text); }
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--orange-light); }

.lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); }

.tagline {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-light);
}
.tagline--dark { color: var(--gold-text); letter-spacing: 0.26em; }

/* Goldstern */
.star { display: block; fill: var(--gold); }

/* Pfeil */
.arrow {
  display: inline-block; width: 20px; height: 10px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; line-height: 1;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }
.btn--primary { background: var(--petrol); color: var(--cream); }
.btn--primary:hover { background: var(--petrol-hover); color: var(--cream); }
.btn--small { padding: 14px 22px; font-size: 12px; }
.btn--outline-light { border-color: rgba(244, 236, 223, 0.65); color: var(--cream); background: transparent; }
.btn--outline-light:hover { background: var(--cream); color: var(--petrol); border-color: var(--cream); }

.text-link {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--petrol); text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: 7px; text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--orange-text); }

.circle-link {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 28px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--petrol); text-decoration: none;
}
.circle-link__icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--petrol); border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}
.circle-link:hover .circle-link__icon { background: var(--petrol); color: var(--cream); }
.circle-link:hover .arrow { transform: translateX(3px); }

.link-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--petrol); text-decoration: none;
}
.link-button:hover { color: var(--orange-text); }

/* Abschnittskopf mit Linie */
.rule-head { display: flex; align-items: center; gap: 28px; margin-bottom: 56px; }
.rule-head__label { margin: 0; white-space: nowrap; }
.rule-head__line { flex: 1 1 auto; height: 1px; background: var(--line); }
.rule-head__note { max-width: 36ch; font-size: 14px; line-height: 1.5; color: var(--ink-muted); text-align: right; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 240, 228, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--petrol); }
.brand__name { font-family: var(--serif); font-size: 34px; font-weight: 420; letter-spacing: -0.025em; line-height: 1; }
.brand__suffix { font-family: var(--serif); font-size: 13px; color: var(--gold-text); letter-spacing: 0.02em; }

.site-nav ul { display: flex; align-items: center; gap: clamp(24px, 3.2vw, 48px); }
.site-nav a {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--petrol);
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  min-height: clamp(620px, 47vw, 820px);
}
.hero__text { max-width: min(540px, calc(44vw - var(--edge) - 48px)); padding-block: 64px 80px; }
.hero__text .eyebrow { letter-spacing: 0.16em; }
.hero__headline {
  font-size: clamp(44px, 4.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
.hero__headline em { font-style: normal; color: var(--orange-text); }
.hero__copy { max-width: 46ch; font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }

/* Foto rechts, randabfallend, volle Höhe */
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: 56vw; }
.hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* Orange Halbsonne und Goldstern an der Bildkante */
.hero__sun {
  position: absolute; left: 0; bottom: 0; transform: translateX(-50%);
  width: clamp(120px, 11vw, 180px); aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0; background: var(--orange);
}
.hero__line { display: none; }
.hero__star { position: absolute; left: 0; top: 24%; width: clamp(64px, 6vw, 92px); transform: translate(-50%, -50%); }
@media (min-width: 1600px) {
  .hero__media { width: calc(100vw - var(--edge) - 640px); }
  .hero__text { max-width: 560px; }
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */
.services { padding: 88px 0 104px; }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service { border-left: 1px solid var(--line); }
.service:first-child { border-left: 0; }
.service__link {
  display: flex; flex-direction: column; gap: 18px; height: 100%;
  padding: 4px clamp(20px, 2.6vw, 40px) 8px;
  color: inherit; text-decoration: none;
}
.service:first-child .service__link { padding-left: 0; }
.service:last-child .service__link { padding-right: 0; }
.icon {
  width: 54px; height: 54px; margin-bottom: 10px;
  fill: none; stroke: var(--orange); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round;
}
.icon .i-gold { stroke: var(--gold); }
.icon .i-tint { fill: rgba(220, 99, 53, 0.16); stroke: none; }
.icon .i-fill { fill: var(--orange); stroke: none; }
.service__title {
  min-height: 2.9em;
  font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.45;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--petrol);
}
.service__copy { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.service .arrow { margin-top: auto; color: var(--petrol); width: 24px; height: 12px; }
.service__link:hover .service__title { color: var(--orange-text); }
.service__link:hover .arrow { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   Band „Haltung“ (Petrol + Bild, randabfallend)
   -------------------------------------------------------------------------- */
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) 40%;
  background: var(--petrol); color: var(--cream);
}
.band__body {
  position: relative;
  padding: clamp(80px, 8vw, 128px) clamp(40px, 6vw, 104px) clamp(80px, 8vw, 128px) calc(var(--edge) + 128px);
}
.band__deco { position: absolute; top: 0; bottom: 0; left: calc(var(--edge) + 44px); width: 1px; }
.band__line { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(186, 142, 77, 0.2), var(--gold) 30%, rgba(186, 142, 77, 0.2)); }
.band__star { position: absolute; left: 0; top: clamp(120px, 14vw, 190px); width: 88px; transform: translate(-50%, -50%); }
.band__text { max-width: 640px; }
.band__text .section-title { margin-bottom: 32px; }
.band__copy { color: var(--cream-soft); font-size: 17px; }
.band__copy + .band__copy { margin-top: 14px; }
.band__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 44px; }
.band__media { position: relative; min-height: 420px; }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 55%; }

/* --------------------------------------------------------------------------
   Unsere Arbeit – Einleitung
   -------------------------------------------------------------------------- */
.section { padding: clamp(88px, 9vw, 136px) 0; }
.intro { padding-bottom: 24px; }
.intro__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 96px; align-items: end; }
.intro .lead { max-width: 54ch; }

/* --------------------------------------------------------------------------
   Bereiche: GovTech / Pflege
   -------------------------------------------------------------------------- */
.area { padding: 64px 0 112px; }
.area__intro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 96px;
  padding-top: 64px; border-top: 1px solid var(--line);
}
.area__head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.area__text p { color: var(--ink-soft); }
.area__text p + p { margin-top: 16px; }

.area__detail {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px;
  align-items: center; margin-top: 72px;
}
.area--pflege .area__media { order: 2; }
.area__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.area--govtech .area__media img { object-position: 62% 55%; }
.area--pflege .area__media img { aspect-ratio: 4 / 3; object-position: 50% 80%; }
.area__line { position: absolute; top: 6%; bottom: 6%; right: calc(var(--gutter) / -2); width: 1px; background: var(--gold); opacity: .8; }
.area--pflege .area__line { right: auto; left: calc(var(--gutter) / -2); }

.fields { counter-reset: none; }
.field {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  padding: 26px 0; border-top: 1px solid var(--line);
}
.field:last-child { border-bottom: 1px solid var(--line); }
.field__index { font-family: var(--serif); font-size: 16px; color: var(--gold-text); padding-top: 4px; }
.field__title { font-size: 25px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.field__copy { font-size: 15.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Projekte
   -------------------------------------------------------------------------- */
.work { background: var(--bg); border-top: 1px solid var(--line); }
.work__head .rule-head { margin-bottom: 40px; }
.work__intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 96px; align-items: end; }
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }

.project { background: var(--bg-soft); }
.project__visual {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end; justify-content: center;
}
.project--dark .project__visual { background: var(--petrol); }
.project--sand .project__visual { background: var(--sand); }

.project__dome {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 58%; height: 64%; border-radius: 999px 999px 0 0;
  background: var(--orange);
}
.project--sand .project__dome { background: var(--petrol); }
.project__arc {
  position: absolute; left: 7%; top: 9%; width: 15%; aspect-ratio: 1;
  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); border-top-right-radius: 100%;
}
.project__star { position: absolute; right: 8%; top: 12%; width: 54px; }

.phone {
  position: relative; z-index: 2;
  width: 44%; max-width: 250px; aspect-ratio: 9 / 16;
  margin-bottom: -22%;
  padding: 9px; border-radius: 38px;
  background: #FDFAF4;
  box-shadow: 0 30px 60px -24px rgba(4, 30, 33, 0.55);
}
.phone__screen {
  height: 100%; border-radius: 30px;
  padding: 40px 16px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
}
.phone__island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 64px; height: 16px; border-radius: 10px; background: #12282A; }
.phone__app { font-family: var(--serif); font-size: 13px; color: var(--gold-text); text-align: center; margin-bottom: 18px; letter-spacing: 0.02em; }
.phone__question { font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--petrol); margin-bottom: 16px; }
.phone__card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin-bottom: 9px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 12.5px; line-height: 1.3; color: var(--ink);
}
.phone__dot { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.phone__dot--petrol { background: var(--petrol); }
.phone__dot--orange { background: var(--orange); }
.phone__label { flex: 1; }
.phone__arrow { color: var(--gold-text); }

.project__body { padding: clamp(32px, 3.4vw, 48px); }
.project__label {
  margin-bottom: 14px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-text);
}
.project__title { font-size: clamp(32px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 14px; }
.project__subtitle { font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--petrol); margin-bottom: 20px; }
.project__copy { font-size: 15.5px; color: var(--ink-soft); }
.project__copy + .project__copy { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team { border-top: 1px solid var(--line); }
.team__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px 104px; align-items: center; }
.team__headline { font-size: clamp(34px, 3.5vw, 52px); line-height: 1.1; letter-spacing: -0.016em; text-wrap: balance; }
.team__headline em { font-style: normal; color: var(--orange-text); }
.team__rule { display: block; width: 72px; height: 1px; background: var(--gold); margin: 36px 0 32px; }
.team__text p:not(.eyebrow) { color: var(--ink-soft); }
.team__text p:not(.eyebrow) + p { margin-top: 16px; }

.team__photo { position: relative; margin: 0; }
.team__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; }
.team__arc {
  position: absolute; right: -28px; top: -28px; width: 36%; aspect-ratio: 1;
  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); border-top-right-radius: 100%;
}
.team__star { position: absolute; left: 0; bottom: 18%; width: 76px; transform: translateX(-50%); }

/* --------------------------------------------------------------------------
   Kontakt-Band
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--petrol); color: var(--cream); padding: clamp(88px, 9vw, 136px) 0; }
.cta__inner { position: relative; }
.cta__text { max-width: 760px; }
.cta__text .section-title { font-size: clamp(38px, 4.4vw, 66px); }
.cta__copy { max-width: 56ch; margin: 28px 0 44px; color: var(--cream-soft); }
.cta__deco { position: absolute; top: calc(clamp(88px, 9vw, 136px) * -1); bottom: calc(clamp(88px, 9vw, 136px) * -1); right: calc(var(--gutter) + 9%); width: 1px; }
.cta__line { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--gold), rgba(186, 142, 77, 0.25)); }
.cta__star { position: absolute; left: 0; top: 44%; width: 104px; transform: translate(-50%, -50%); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 80px 0 64px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.site-footer__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px;
}
.brand--footer { margin-bottom: 18px; }
.brand--footer .brand__name { font-size: 30px; }
.site-footer__address strong { color: var(--petrol); font-weight: 600; }
.site-footer a { color: var(--petrol); text-decoration: none; }
.site-footer a:hover { color: var(--orange-text); }
.site-footer__nav li + li, .site-footer__legal li + li { margin-top: 4px; }
.site-footer__legal small { font-size: 13px; color: var(--ink-muted); }
.site-footer__star { position: absolute; right: var(--gutter); top: -6px; width: 60px; }
.site-footer__credits { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-muted); }
.site-footer__credits small { font-size: 12.5px; }
.site-footer__credits a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Dialoge (nativ <dialog>)
   -------------------------------------------------------------------------- */
.dialog {
  width: min(92vw, 720px);
  max-height: 88vh;
  padding: 0; border: 1px solid var(--gold);
  background: var(--bg); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(4, 30, 33, 0.55);
  overflow: hidden;
  flex-direction: column;
}
.dialog[open] { display: flex; }
.dialog::backdrop { background: rgba(8, 55, 60, 0.6); backdrop-filter: blur(2px); }
.dialog--legal { width: min(92vw, 880px); }

.dialog__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 28px; border-bottom: 1px solid var(--line);
}
.dialog__title { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
.dialog__close {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--petrol);
}
.dialog__close:hover { color: var(--orange-text); }
.dialog__body { padding: 24px 28px 32px; overflow-y: auto; }
.dialog__copy { color: var(--ink-soft); margin-bottom: 22px; }

.legal { font-size: 15px; line-height: 1.65; }
.legal h2 { font-size: 26px; margin: 8px 0 14px; }
.legal h3 { font-size: 20px; margin: 26px 0 10px; }
.legal p { margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal a { word-break: break-word; }

/* Formular */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__row--2 > div { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.form__input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font: inherit; font-size: 16px;
}
.form__input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form__input:user-invalid { border-color: var(--orange-text); }
.form__input[aria-invalid="true"] { border-color: var(--orange-text); background: #FFF8F4; }
.form__error { margin: 0; font-size: 13.5px; line-height: 1.4; color: #9C3F1E; }
.form__error[hidden] { display: none; }
/* Honeypot – für Menschen unsichtbar, aber nicht display:none (das erkennen manche Bots) */
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__actions small { color: var(--ink-muted); }
.form__result:empty { display: none; }
.form__result .alert { padding: 14px 16px; border: 1px solid var(--gold); background: #fff; }
.form__result .alert-danger { border-color: var(--orange-text); color: #9C3F1E; }
.form__result .alert-success { border-color: var(--petrol); color: var(--petrol); }
.form__result .alert ul { margin: 8px 0 0; padding-left: 20px; }

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .service:nth-child(odd) { border-left: 0; }
  .service:nth-child(odd) .service__link { padding-left: 0; }
  .service:nth-child(even) .service__link { padding-right: 0; }
  .rule-head__note { display: none; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .hero__text { padding-block: 52px 64px; }
  .hero__headline { margin-bottom: 26px; }
  .hero__copy { font-size: 17px; margin-bottom: 32px; }
}

@media (max-width: 1279px) {
  .hero__inner { min-height: 0; }
  .hero__text { max-width: 760px; padding-block: 64px 40px; }
  .hero__headline { font-size: clamp(44px, 6.4vw, 72px); }
  .hero__media { position: relative; width: 100%; }
  .hero__photo { height: auto; aspect-ratio: 16 / 10; }
  .hero__sun { left: 0; width: clamp(96px, 16vw, 150px); }
  .hero__star { left: calc(var(--gutter) + 60px); top: 0; }
}

@media (max-width: 1023px) {
  :root { --header-h: 76px; }

  .hero__text { padding-block: 56px 40px; }

  .band { grid-template-columns: 1fr; }
  .band__body { padding: 80px var(--gutter) 72px calc(var(--gutter) + 64px); }
  .band__deco { left: calc(var(--gutter) + 18px); }
  .band__star { width: 64px; top: 120px; }
  .band__media { min-height: 0; aspect-ratio: 16 / 10; }

  .intro__inner, .area__intro, .work__intro, .team__inner { grid-template-columns: 1fr; }
  .area__head { position: static; }
  .area__detail { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .area--pflege .area__media { order: 0; }
  .area__line { display: none; }

  .team__photo { max-width: 640px; }
  .team__photo img { aspect-ratio: 4 / 3; }
  .team__arc { right: -12px; top: -12px; }
  .team__star { left: 24px; bottom: -36px; transform: none; }
  .cta__deco { right: var(--gutter); }
  .cta__star { width: 72px; }
  .cta__text { padding-right: 72px; }

  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; padding: 12px;
    border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--petrol); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(4, 30, 33, 0.35);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--gutter) 28px; }
  .site-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 20px; }
  .site-nav a { display: block; padding: 16px 0; border-bottom: 0; }

  .work__grid { grid-template-columns: 1fr; }
  .project__visual { aspect-ratio: 16 / 11; }
  .phone { width: 38%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn { padding: 17px 22px; gap: 12px; letter-spacing: 0.12em; font-size: 12px; }
  .service__title { min-height: 0; }
  .area { padding: 32px 0 72px; }
  .area__intro { padding-top: 48px; }
  .area__detail { margin-top: 40px; }
  .phone { width: 56%; margin-bottom: -26%; padding: 7px; border-radius: 30px; }
  .phone__screen { padding: 34px 12px 12px; border-radius: 24px; }
  .phone__island { top: 10px; width: 52px; height: 13px; }
  .phone__app { font-size: 11.5px; margin-bottom: 12px; }
  .phone__question { font-size: 17px; margin-bottom: 12px; }
  .phone__card { padding: 8px 9px; gap: 8px; font-size: 11px; border-radius: 11px; margin-bottom: 7px; }
  .phone__dot { width: 16px; height: 16px; }
  .cta__deco { right: calc(var(--gutter) + 14px); }
  .brand__name { font-size: 29px; }
  .services { padding: 64px 0 72px; }
  .services__grid { grid-template-columns: 1fr; row-gap: 0; }
  .service { border-left: 0; border-top: 1px solid var(--line); }
  .service .service__link { padding: 28px 0 !important; }
  .service .icon { margin-bottom: 0; }
  .rule-head { margin-bottom: 32px; }

  .hero__headline { margin-bottom: 24px; }
  .hero__copy { font-size: 17px; margin-bottom: 32px; }

  .band__body { padding-left: calc(var(--gutter) + 44px); }
  .band__deco { left: calc(var(--gutter) + 8px); }
  .band__star { width: 48px; }

  .field { grid-template-columns: 40px minmax(0, 1fr); }
  .field__title { font-size: 22px; }

  .project__visual { aspect-ratio: 1 / 1; }
  .project__dome { width: 76%; height: 58%; }
  .project__star { width: 36px; }

  .cta__text { padding-right: 40px; }
  .cta__star { width: 52px; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__star { width: 44px; }

  .form__row--2 { grid-template-columns: 1fr; }
  .dialog__head, .dialog__body { padding-inline: 20px; }
}
