/* ==========================================================================
   gemeinsam zuhause gGmbH – Site Styles
   Typografie: Source Serif 4 (Überschriften) + Inter (Fließtext), self-hosted
   Farbwelt: abgeleitet aus den Logo-Farben
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-v14-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-v14-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-v20-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-v20-latin-600.woff2") format("woff2");
}

:root {
  /* Markenfarben (aus dem Logo) */
  --brand-sky: #03b6f0;
  --brand-blue: #0582d2;
  --brand-navy: #184473;
  --brand-navy-deep: #12314f;

  --color-white: #ffffff;
  --color-ink: #16283c;
  --color-copy: #3b4c60;
  --color-copy-soft: rgba(59, 76, 96, 0.82);
  --color-surface: #f3f7fb;
  --color-surface-warm: #f8fafc;
  --color-line: rgba(24, 68, 115, 0.14);
  --color-line-soft: rgba(24, 68, 115, 0.09);

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --shadow-card: 0 1px 2px rgba(18, 49, 79, 0.05), 0 10px 30px rgba(18, 49, 79, 0.06);
  --shadow-media: 0 2px 6px rgba(18, 49, 79, 0.08), 0 18px 44px rgba(18, 49, 79, 0.12);
  --radius-large: 16px;
  --radius-medium: 12px;
  --radius-small: 8px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0rem;
  color: var(--color-copy);
  background: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2.15rem, 1.2rem + 2.6vw, 3.3rem);
}

h2 {
  font-size: clamp(1.55rem, 1.05rem + 1.4vw, 2.15rem);
}

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.35;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 3rem), 820px);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--color-line-soft);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand img,
.footer-logo {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: rgba(22, 40, 60, 0.76);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.002em;
  transition: color 0.16s ease;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: right 0.2s ease;
}

.site-nav a:hover,
.site-nav .is-active {
  color: var(--brand-navy);
}

.site-nav a:not(.button).is-active::after,
.site-nav a:not(.button):hover::after {
  right: 0;
}

.site-nav .button {
  margin-left: 0.4rem;
}

.site-nav a.button,
.site-nav a.button:hover,
.site-nav a.button.is-active {
  color: #ffffff;
}

.site-nav a.button:hover {
  background: var(--brand-navy-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-white);
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.72rem 1.45rem;
  border: 1px solid var(--brand-navy);
  border-radius: var(--radius-small);
  background: var(--brand-navy);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: var(--brand-navy-deep);
  border-color: var(--brand-navy-deep);
}

.button:active {
  transform: translateY(1px);
}

.button-secondary {
  border-color: rgba(24, 68, 115, 0.3);
  background: var(--color-white);
  color: var(--brand-navy);
}

.button-secondary:hover {
  background: var(--color-surface);
  border-color: var(--brand-navy);
}

.button-small {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
}

.text-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(5, 130, 210, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.16s ease, color 0.16s ease;
}

.text-link:hover {
  color: var(--brand-navy);
  text-decoration-color: currentColor;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-blue);
  font-weight: 600;
  transition: color 0.16s ease;
}

.linkedin-link:hover {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.linkedin-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: var(--brand-blue);
  flex: 0 0 auto;
  transition: fill 0.16s ease;
}

.linkedin-link:hover .linkedin-icon {
  fill: var(--brand-navy);
}

/* Fließtext-Links in Absätzen */
p a:not(.button):not(.text-link),
li a:not(.button):not(.text-link) {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-color: rgba(5, 130, 210, 0.3);
  text-underline-offset: 3px;
}

p a:not(.button):not(.text-link):hover,
li a:not(.button):not(.text-link):hover {
  color: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero,
.page-hero {
  padding: 5.4rem 0 4.6rem;
  background: linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%);
}

.hero-grid,
.feature-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.4rem;
  align-items: center;
}

.hero-copy,
.feature-copy {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
}

.page-hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.page-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-hero-visual img {
  width: 100%;
  max-width: 560px;
  height: 400px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-media);
}

.hero-intro-with-icon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 2rem;
  align-items: stretch;
}

.hero-intro-copy {
  display: grid;
  gap: 1.3rem;
}

.hero-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-symbol img {
  width: auto;
  height: 100%;
  max-height: 340px;
  max-width: 100%;
  object-fit: contain;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--brand-blue);
  flex: 0 0 auto;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.75);
}

.eyebrow-light::before {
  background: rgba(255, 255, 255, 0.55);
}

.lead,
.section-intro {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-copy-soft);
  max-width: 44rem;
}

.hero-safety-line {
  display: inline-block;
  width: fit-content;
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: rgba(5, 130, 210, 0.06);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.hero-points {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.02rem;
  color: var(--color-copy);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(5, 130, 210, 0.12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="%230582d2" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" d="M3.5 8.5l3 3 6-6.5"/></svg>') center / 0.62rem no-repeat;
}

.hero-highlight {
  color: var(--brand-blue);
}

.section-subnav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(59, 76, 96, 0.7);
}

.section-subnav a {
  color: inherit;
}

.section-subnav a.is-active {
  color: var(--brand-navy);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-media img,
.stacked-media img,
.gallery img {
  border-radius: var(--radius-medium);
  border: 1px solid var(--color-line-soft);
  object-fit: cover;
}

.hero-media img {
  min-height: 520px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */

.section {
  padding: 5.5rem 0;
}

.surface-light {
  background: var(--color-surface);
}

.surface-dark {
  background: linear-gradient(160deg, #163a63 0%, var(--brand-navy-deep) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.surface-dark h2,
.surface-dark h3,
.surface-dark p {
  color: inherit;
}

.surface-dark h2 {
  color: #ffffff;
}

.surface-dark a:not(.button) {
  color: #9fd6f5;
  text-decoration: underline;
  text-decoration-color: rgba(159, 214, 245, 0.4);
  text-underline-offset: 3px;
}

.surface-dark a:not(.button):hover {
  color: #ffffff;
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.6rem;
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   Karten & Listen
   -------------------------------------------------------------------------- */

.card-grid,
.project-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project-facts,
.contact-panel,
.transparency-item {
  padding: 1.9rem;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-medium);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.card,
.benefit-item,
.faq-list article,
.transparency-item {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.card h3 {
  color: var(--brand-navy);
}

.trust-facts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.4rem;
}

.split-section > div:first-child {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.benefit-list,
.faq-list,
.transparency-list,
.timeline {
  display: grid;
  gap: 0;
}

.transparency-list,
.timeline {
  gap: 1rem;
}

.benefit-item,
.faq-list article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-line);
}

.benefit-item:first-child,
.faq-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.benefit-item h3,
.faq-list h3 {
  color: var(--brand-navy);
}

.benefit-list > .text-link {
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   Diagramme & Modelle
   -------------------------------------------------------------------------- */

.relationship-diagram {
  display: grid;
  gap: 1.5rem;
}

.relationship-heading {
  margin-bottom: 0;
  margin-top: 1.6rem;
}

.relationship-heading h3 {
  font-size: 1.2rem;
  color: var(--color-ink);
}

.relationship-image {
  display: flex;
  justify-content: center;
  padding: 2.4rem 1.5rem;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-medium);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.relationship-image svg {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
}

.relationship-image img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
}

.model-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.model-option {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.9rem;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-medium);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.model-option__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.model-option__icon {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.model-option h3 {
  color: var(--brand-navy);
  font-size: 1.02rem;
  margin: 0;
}

.model-option p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Prozess-Schritte
   -------------------------------------------------------------------------- */

.process-graphic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem;
  align-items: stretch;
}

.process-step {
  position: relative;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--color-line);
}

.process-step h3 {
  color: var(--brand-navy);
  min-height: 0;
}

.process-step p {
  margin: 0;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.process-graphic-five {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 2.6rem;
}

.process-note {
  margin-top: 2.6rem;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: rgba(5, 130, 210, 0.05);
}

.toggle-button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.process-detail[hidden] {
  display: none !important;
}

.process-detail {
  display: grid;
  gap: 1rem;
  margin-top: 2.6rem;
  padding: 2.4rem;
  border-radius: var(--radius-medium);
  background: var(--color-surface);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline {
  max-width: 780px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-line);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 600;
}

.timeline-item h3 {
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   Vertrauen, Badges, CTA
   -------------------------------------------------------------------------- */

.trust-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: start;
}

.trust-panel > div:first-child {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: 100%;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-medium);
  background: #ffffff;
  font-size: 0.94rem;
  min-height: 5.6rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-media);
}

.badge > a:first-child:not(.badge-brand) {
  font-weight: 600;
}

.badge-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.surface-dark .badge-brand,
.surface-dark .badge > a {
  text-decoration: none;
  color: var(--brand-navy);
  font-weight: 600;
}

.badge-logo {
  width: auto;
  height: 3rem;
  max-width: 7rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3rem;
  border-radius: var(--radius-large);
  background: var(--color-surface);
}

.cta-panel > div {
  display: grid;
  gap: 0.8rem;
  max-width: 40rem;
}

.cta-actions {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

/* --------------------------------------------------------------------------
   Medien & Galerie
   -------------------------------------------------------------------------- */

.stacked-media {
  display: grid;
  gap: 1rem;
}

.stacked-media img:first-child {
  min-height: 280px;
}

.stacked-media img,
.gallery img {
  width: 100%;
}

.feature-media img {
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-media);
  width: 100%;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery img {
  aspect-ratio: 1.15 / 1;
  box-shadow: var(--shadow-card);
  border: 0;
}

.project-facts ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.project-facts h3 {
  color: var(--brand-navy);
  margin-bottom: 0.6rem;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.project-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: rgba(5, 130, 210, 0.05);
  max-width: 980px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.4rem;
  align-items: start;
}

.faq-grid > div:first-child {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 110px;
}

.faq-grid > div:first-child h2 {
  font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem);
}

.faq-intro-visual {
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-start;
}

.faq-intro-visual img {
  width: 100%;
  max-width: 84px;
  height: auto;
  opacity: 0.85;
}

.faq-grid > .text-link {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Kontakt & Formulare
   -------------------------------------------------------------------------- */

.contact-layout {
  align-items: start;
  grid-template-columns: 1.15fr 0.85fr;
}

.page-contact .page-hero {
  padding-bottom: 2.6rem;
}

.page-contact .page-hero + .section {
  padding-top: 2.4rem;
}

.contact-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.contact-side {
  background: var(--color-surface);
  border-color: transparent;
  box-shadow: none;
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.contact-side h2 {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(24, 68, 115, 0.25);
  border-radius: var(--radius-small);
  font: inherit;
  color: var(--color-copy);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(5, 130, 210, 0.14);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  font-size: 0.9rem;
  color: rgba(59, 76, 96, 0.75);
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.94rem;
  color: rgba(59, 76, 96, 0.75);
}

.form-status.is-pending {
  color: var(--brand-navy);
}

.form-status.is-success {
  color: #1f6a42;
}

.form-status.is-error {
  color: #9d2f2f;
}

.form-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  max-width: min(420px, calc(100vw - 2.5rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(31, 106, 66, 0.22);
  border-radius: var(--radius-small);
  background: #e8f6ee;
  color: #17492f;
  box-shadow: 0 18px 45px rgba(24, 68, 115, 0.18);
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.form-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-toast.is-error {
  border-color: rgba(157, 47, 47, 0.24);
  background: #faecec;
  color: #7c2525;
}

.text-suggestion {
  display: inline-flex;
  justify-content: flex-start;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.text-suggestion:hover,
.text-suggestion:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Rechtliches & Transparenz
   -------------------------------------------------------------------------- */

.legal-copy,
.transparency-list {
  max-width: 900px;
}

.legal-copy {
  display: grid;
  gap: 0.4rem;
}

.transparency-item h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--brand-navy);
}

.transparency-updated {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(59, 76, 96, 0.7);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 4rem;
  padding: 3.6rem 0 0;
  background: var(--brand-navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.footer-grid {
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  align-items: start;
  gap: 2.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.footer-about p {
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-heading {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Startseite B (Variante)
   -------------------------------------------------------------------------- */

.page-index-b .index-b-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.page-index-b .index-b-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-index-b .index-b-trust .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.page-index-b .index-b-trust .card h3,
.page-index-b .index-b-trust .card p {
  color: #ffffff;
}

.page-index-b .index-b-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.2rem;
}

.page-index-b .cta-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.index-path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.index-path-grid .card {
  padding: 2.2rem;
  gap: 0.9rem;
}

.index-path-grid .button {
  justify-self: start;
  margin-top: 0.4rem;
}

.index-path-grid .path-primary {
  border-color: rgba(24, 68, 115, 0.22);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-media);
  }

  .site-nav a:not(.button)::after {
    display: none;
  }

  .site-nav a {
    padding: 0.65rem 0.5rem;
  }

  .site-nav .button {
    margin-left: 0;
    margin-top: 0.4rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .feature-grid,
  .contact-layout,
  .split-section,
  .faq-grid,
  .footer-grid,
  .project-grid,
  .card-grid,
  .process-graphic,
  .model-options {
    grid-template-columns: 1fr;
  }

  .trust-facts-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid > div:first-child {
    position: static;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-index-b .index-b-hero,
  .page-index-b .index-b-fields,
  .page-index-b .index-b-trust-grid {
    grid-template-columns: 1fr;
  }

  .index-path-grid {
    grid-template-columns: 1fr;
  }

  .hero-intro-with-icon {
    grid-template-columns: 1fr;
  }

  .page-hero-visual {
    justify-content: flex-start;
  }

  .page-hero-visual img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
  }

  .hero-symbol {
    justify-content: flex-start;
  }

  .trust-panel,
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-panel {
    padding: 2.2rem 1.8rem;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 320px;
  }

  .process-graphic {
    gap: 1.6rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.98rem;
  }

  .hero,
  .page-hero,
  .section {
    padding: 3.4rem 0;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    height: 38px;
  }

  .nav-toggle {
    padding: 0.55rem 0.9rem;
  }

  .lead,
  .section-intro {
    font-size: 1.03rem;
  }

  .hero-copy,
  .feature-copy,
  .section-heading,
  .contact-form {
    gap: 1rem;
  }

  .card,
  .project-facts,
  .contact-panel,
  .transparency-item,
  .model-option {
    padding: 1.4rem;
  }

  .cta-panel {
    padding: 1.8rem 1.4rem;
  }

  .process-detail {
    padding: 1.5rem 1.4rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .relationship-image {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 1.4rem 1rem;
  }

  .relationship-image svg {
    min-width: 640px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .footer-grid {
    gap: 1.8rem;
  }
}

/* ITZ: Transparenzseite */
.page-hero-transparency {
  padding-bottom: 2.4rem;
}

.page-hero-transparency + .section {
  padding-top: 1.6rem;
}

.container.transparency-hero {
  width: min(calc(100% - 3rem), 900px);
  display: grid;
  gap: 1.1rem;
}

.transparency-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
}

.itz-logo-link {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-medium);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.itz-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-media);
}

.itz-logo {
  display: block;
  width: auto;
  height: 3.6rem;
  max-width: 100%;
}

.transparency-hero .section-subnav {
  margin-top: 0.4rem;
}

/* ITZ: Footer */
.footer-itz {
  display: inline-block;
  margin-top: 1.3rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-small);
  background: #ffffff;
  transition: opacity 0.18s ease;
}

.footer-itz:hover {
  opacity: 0.9;
}

.footer-itz img {
  display: block;
  width: auto;
  height: 2.6rem;
}

@media (max-width: 640px) {
  .transparency-hero-body {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .itz-logo-link {
    justify-self: start;
  }

  .itz-logo {
    height: 3rem;
  }
}

/* Praxisbeispiel: interaktiver Grundriss */
.floorplan {
  margin-top: 2.4rem;
  padding: 2rem;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-large);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.floorplan-head {
  display: grid;
  gap: 0.6rem;
  max-width: 46rem;
  margin-bottom: 1.6rem;
}

.floorplan-head h3 {
  font-size: 1.3rem;
}

.floorplan-head p {
  margin: 0;
  color: var(--color-copy-soft);
}

.floorplan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas: "plan photo";
  gap: 1rem 2rem;
  align-items: start;
}

.floorplan-plan {
  grid-area: plan;
}

.floorplan-photo {
  grid-area: photo;
}

.floorplan-plan,
.floorplan-photo {
  margin: 0;
}

.floorplan-plan svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.fp-walls {
  fill: var(--brand-navy);
}

.fp-room {
  stroke: none;
  transition: fill 0.18s ease;
}

.fp-privat {
  fill: #dcf0fb;
}

.fp-gemein,
.fp-open {
  fill: #fbe9c8;
}

.fp-neben {
  fill: #e4e8ee;
}

.fp-room.is-hl.fp-privat {
  fill: #a9dcf5;
}

.fp-room.is-hl.fp-gemein {
  fill: #f6d38f;
}

.fp-wall-thick,
.fp-wall-thin,
.fp-door-arc,
.fp-door-leaf {
  fill: none;
  stroke: var(--brand-navy);
  pointer-events: none;
}

.fp-wall-thick {
  stroke-width: 7;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}

.fp-wall-thin {
  stroke-width: 2.2;
  stroke-opacity: 0.55;
  stroke-linecap: butt;
}

.fp-door-arc {
  stroke-width: 1.2;
  stroke-opacity: 0.45;
  stroke-dasharray: 3 3;
}

.fp-door-leaf {
  stroke-width: 2;
  stroke-opacity: 0.7;
}

.fp-outside {
  fill: #f1f4f8;
  stroke: rgba(24, 68, 115, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.fp-stair {
  fill: #eef1f5;
  stroke: rgba(24, 68, 115, 0.25);
  stroke-width: 1.5;
}

.fp-entry {
  fill: var(--brand-navy);
}

.fp-label,
.fp-sub {
  text-anchor: middle;
  pointer-events: none;
}

.fp-label {
  font-size: 20px;
  font-weight: 600;
  fill: var(--brand-navy);
}

.fp-sub {
  font-size: 14px;
  fill: #4a5d72;
}

.fp-muted {
  fill: #7b8a9b;
  font-style: italic;
}

.fp-spot {
  cursor: pointer;
  outline: none;
}

.fp-spot-ring {
  fill: rgba(5, 130, 210, 0.18);
  transition: transform 0.18s ease, fill 0.18s ease;
}

.fp-spot-dot {
  fill: var(--brand-blue);
  stroke: #ffffff;
  stroke-width: 3;
  transition: fill 0.18s ease;
}

.fp-spot-num {
  fill: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

.fp-spot:hover .fp-spot-ring,
.fp-spot:focus-visible .fp-spot-ring,
.fp-spot.is-active .fp-spot-ring {
  fill: rgba(5, 130, 210, 0.32);
  transform: scale(1.25);
}

.fp-spot.is-active .fp-spot-dot {
  fill: var(--brand-navy);
}

.fp-spot:focus-visible .fp-spot-dot {
  stroke: var(--brand-sky);
}

.floorplan-photo-frame {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  overflow: hidden;
}

.floorplan-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.floorplan-photo-frame img.is-loading {
  opacity: 0.35;
}

.floorplan-photo figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--color-copy);
}

.floorplan-photo-num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.floorplan-note {
  margin: 1.4rem 0 0;
  font-size: 0.82rem;
  color: rgba(59, 76, 96, 0.65);
}

@media (max-width: 960px) {
  .floorplan-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "plan"
      "photo";
  }

  .floorplan-photo-frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .floorplan {
    padding: 1.2rem;
  }

  .fp-sub {
    display: none;
  }

  .fp-label {
    font-size: 26px;
  }

  .fp-spot-ring {
    r: 40px;
  }

  .fp-spot-dot {
    r: 29px;
  }

  .fp-spot-num {
    font-size: 30px;
    transform: translateY(5px);
  }
}
