/* ============================================================
   THOMAS BUDDE – Theme CSS
   ============================================================ */

/* ── Self-hosted Fonts ──────────────────────────────────────── */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --navy:       #1b2a40;
  --blue:       #1a6db5;
  --blue-light: #2d8fd4;
  --blue-pale:  #e9f2fa;
  --blue-wash:  #f4f8fc;
  --g100:       #f7f8fa;
  --g200:       #e8ecf0;
  --g400:       #94a3b4;
  --g600:       #5a6a7a;
  --g800:       #2e3e50;
  --white:      #ffffff;
  --border:     #d8dee6;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--g800);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
svg { display: block; flex-shrink: 0; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5.5vw, 4rem) 2rem;
}
.container--flush-top { padding-top: 1rem; }

/* ── Section typography ──────────────────────────────────────── */
.section-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--g600);
  max-width: 620px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  box-shadow: 0 4px 16px rgba(26,109,181,.25);
}
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── Reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   TOPBAR / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g200);
  padding: 0 2rem;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  line-height: 1;
}
.logo-symbol {
  height: 56px !important;
  width: auto !important;
  flex-shrink: 0;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-sans);
}
.logo-name {
  display: flex;
  align-items: baseline;
  gap: .3em;
  white-space: nowrap;
}
.logo-thomas {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--g800);
}
.logo-budde {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue);
}
.logo-taglines {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-tag {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--g400);
  white-space: nowrap;
  line-height: 1.3;
}
.logo-tag--blue {
  color: var(--blue);
  opacity: .65;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--g600);
  transition: color .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-cta {
  padding: .5rem 1.25rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  transition: background .2s;
}
.main-nav .nav-cta:hover { background: var(--blue-light); color: var(--white); }

.nav-toggle { display: none; color: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 8rem 2rem 5rem;
  max-width: 1060px;
  margin: 0 auto;
}
.hero-content { text-align: left; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 2rem;
  animation: fadeUp .6s ease-out both;
}
.hero-badge svg { width: 14px; height: 14px; }

.section-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.25rem;
  animation: fadeUp .6s ease-out .1s both;
}
.section-hero h1 span { color: var(--blue); }

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--g600);
  margin: 0 0 2.5rem;
  animation: fadeUp .6s ease-out .2s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .6s ease-out .3s both;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 64px rgba(27,42,64,.18);
  animation: fadeUp .7s ease-out .15s both;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-img-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: .6rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.hero-img-badge svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* ── Trust Bar ──────────────────────────────────────────────── */
.section-trust {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  border-top: 1px solid var(--g200);
  border-bottom: 1px solid var(--g200);
  background: var(--g100);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--g600);
  font-size: .9rem;
  font-weight: 600;
}
.trust-item svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }

/* ============================================================
   PROMISES
   ============================================================ */
.promises-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.promises-portrait-wrap {
  position: relative;
  flex-shrink: 0;
}
.promises-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0;
  display: block;
  box-shadow: 0 12px 40px rgba(27,42,64,.14);
}
.promises-portrait-label {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem 1.25rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(26,109,181,.3);
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.promise-card {
  padding: 2rem;
  border: 1px solid var(--g200);
  border-radius: 12px;
  background: var(--white);
  transition: border-color .3s, box-shadow .3s;
}
.promise-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(26,109,181,.08);
}
.promise-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.promise-icon svg { width: 22px; height: 22px; }
.promise-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.promise-card p  { font-size: .9rem; line-height: 1.65; color: var(--g600); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--g200);
  border: 1px solid var(--g200);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.service-tile {
  padding: 2rem 1.5rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  transition: background .25s;
  min-width: 0;
}
.service-tile:hover { background: var(--blue-wash); }
.service-tile svg { width: 28px; height: 28px; color: var(--blue); stroke-width: 1.5; }
.service-label { font-size: .88rem; font-weight: 600; color: var(--navy); overflow-wrap: break-word; }

/* Services Details */
.services-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.service-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--g200);
  border-radius: 10px;
  background: var(--blue-wash);
}
.service-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.service-detail-icon svg { width: 20px; height: 20px; }
.service-detail-body { min-width: 0; }
.service-detail-label { display: block; font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.service-detail-text { font-size: .825rem; line-height: 1.65; color: var(--g600); margin: 0; }

@media (max-width: 768px) {
  .services-details { grid-template-columns: 1fr; }
}

/* ============================================================
   AREA
   ============================================================ */
.area-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.area-visual {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--g200);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-wash);
}
.area-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--g200);
}
.area-ring.r1 { width: 50%; height: 50%; }
.area-ring.r2 { width: 75%; height: 75%; }
.area-ring.r3 { width: 95%; height: 95%; }
.area-dot {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(26,109,181,.15);
  animation: ping 2.5s ease-in-out infinite;
  z-index: 2;
}
.area-city {
  position: absolute;
  font-size: .7rem;
  font-weight: 600;
  color: var(--g400);
  letter-spacing: .03em;
  white-space: nowrap;
}
.area-city.center {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, 14px);
}
/* Fixed positions for surrounding cities */
.area-city.p0 { top: 10%; left: 50%; transform: translateX(-50%); }
.area-city.p1 { top: 28%; right: 7%; }
.area-city.p2 { bottom: 28%; right: 5%; }
.area-city.p3 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.area-city.p4 { top: 28%; left: 7%; }
.area-city.p5 { bottom: 28%; left: 7%; }

.area-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.city-tag {
  padding: .4rem .9rem;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  background: var(--g100);
  border-top: 1px solid var(--g200);
}
.contact-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}
.contact-inner .section-text { margin: 0 auto 2.5rem; }
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--g200);
  background: var(--white);
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
.contact-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(26,109,181,.1);
}
.contact-card svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--g200);
  font-size: .82rem;
  color: var(--g400);
}
.site-footer a { color: var(--g400); transition: color .15s; }
.site-footer a:hover { color: var(--blue); }
.footer-links { margin-top: .4rem; }

/* ============================================================
   DEFAULT PAGES (Impressum / Datenschutz)
   ============================================================ */
.page-content { padding-top: 64px; min-height: 60vh; }
.page-content .container { padding-top: 4rem; padding-bottom: 4rem; }
.prose h1 { font-family: var(--font-serif); font-weight: 700; font-size: 2rem; color: var(--navy); margin-bottom: 2rem; }
.prose h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-top: 2.5rem; margin-bottom: .75rem; }
.prose h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-top: 1.5rem; margin-bottom: .5rem; }
.prose p  { font-size: .95rem; line-height: 1.8; color: var(--g600); margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { font-size: .95rem; color: var(--g600); margin-bottom: .4rem; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--blue-light); }
.prose hr { border: none; border-top: 1px solid var(--g200); margin: 2rem 0; }
.prose em { color: var(--g400); }
.prose strong { font-weight: 700; color: var(--navy); }

/* ============================================================
   KI CHAT
   ============================================================ */
.section-ki-chat {
  background: var(--white);
  border-top: 1px solid var(--g200);
}
.ki-chat-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 0;
}

/* Intro / suggestions */
.ki-suggestions { margin-top: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.ki-suggestions-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--g400);
  margin-bottom: .25rem;
}
.ki-suggestion {
  text-align: left;
  padding: .65rem 1rem;
  border: 1.5px solid var(--g200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--g600);
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  line-height: 1.4;
}
.ki-suggestion:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

/* Widget */
.ki-chat-widget {
  border: 1px solid var(--g200);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 32px rgba(26,109,181,.07);
}
.ki-chat-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: var(--white);
}
.ki-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.ki-avatar svg { width: 20px; height: 20px; }
.ki-chat-name { display: block; font-size: .9rem; font-weight: 600; }
.ki-chat-status {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
}
.ki-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

/* Messages */
.ki-messages {
  flex: 1;
  min-height: 280px;
  max-height: 340px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  background: var(--gray-100, #f7f8fa);
  scroll-behavior: smooth;
}
.ki-message {
  max-width: 88%;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.6;
}
.ki-message p { margin: 0; }
.ki-message p + p { margin-top: .4rem; }

.ki-message--ai {
  background: var(--white);
  border: 1px solid var(--g200);
  color: var(--g800);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ki-message--user {
  background: var(--blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ki-message--typing span {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  height: 1.2em;
}
.ki-message--typing span i {
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--g400);
  animation: ki-bounce .9s ease-in-out infinite;
  font-style: normal;
}
.ki-message--typing span i:nth-child(2) { animation-delay: .15s; }
.ki-message--typing span i:nth-child(3) { animation-delay: .3s; }
@keyframes ki-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-5px); }
}

/* Input */
.ki-input-area {
  display: flex;
  gap: .5rem;
  padding: .85rem 1rem;
  border-top: 1px solid var(--g200);
  background: var(--white);
}
.ki-input {
  flex: 1;
  padding: .6rem .9rem;
  border: 1.5px solid var(--g200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--navy);
  outline: none;
  transition: border-color .2s;
}
.ki-input:focus { border-color: var(--blue); }
.ki-send {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.ki-send:hover { background: var(--blue-light); }
.ki-send svg { width: 16px; height: 16px; }
.ki-send:disabled { opacity: .5; pointer-events: none; }

.ki-disclaimer {
  font-size: .72rem;
  color: var(--g400);
  text-align: center;
  padding: .5rem 1rem .75rem;
  background: var(--white);
}
.ki-disclaimer a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 768px) {
  .ki-chat-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ki-messages { min-height: 220px; max-height: 260px; }
}

/* ============================================================
   ANFRAGE WIDGET
   ============================================================ */
.section-anfrage { background: var(--blue-wash); border-top: 1px solid var(--g200); }

.form-widget {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(26,109,181,.06);
}

/* Step indicator */
.form-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.form-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--g200);
  background: var(--white);
  color: var(--g400);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.form-step-item .step-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--g400);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .3s;
}
.form-step-item.active .step-bubble {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.form-step-item.active .step-label { color: var(--blue); }
.form-step-item.done .step-bubble {
  background: var(--blue-pale);
  border-color: var(--blue);
  color: var(--blue);
}
.form-step-item.done .step-label { color: var(--blue); }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--g200);
  margin: 0 .5rem;
  margin-bottom: 1.25rem;
  transition: background .3s;
}
.step-connector.done { background: var(--blue); }

/* Panels */
.form-panel { display: none; }
.form-panel.active { display: block; }

.form-panel-hint {
  font-size: .95rem;
  color: var(--g600);
  margin-bottom: 1.25rem;
}
.hint-sub { color: var(--g400); font-size: .85em; }

/* Topic grid */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.topic-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .9rem .5rem;
  border: 1.5px solid var(--g200);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  font-size: .75rem;
  font-weight: 600;
  color: var(--g600);
  text-align: center;
  user-select: none;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: break-word;
}
.topic-tile input { position: absolute; opacity: 0; pointer-events: none; }
.topic-tile svg { width: 22px; height: 22px; color: var(--g400); transition: color .2s; stroke-width: 1.6; }
.topic-tile:hover { border-color: var(--blue-light); color: var(--navy); }
.topic-tile:hover svg { color: var(--blue-light); }
.topic-tile.selected {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}
.topic-tile.selected svg { color: var(--blue); }

/* Form fields */
.form-fields { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-group { display: flex; flex-direction: column; gap: .4rem; }
.field-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.field-label .required { color: var(--blue); }
.field-input {
  padding: .7rem 1rem;
  border: 1.5px solid var(--g200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,109,181,.1);
}
.field-textarea { resize: vertical; min-height: 120px; }

/* Radio tiles */
.radio-group {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.radio-tile {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1.5px solid var(--g200);
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--g600);
  transition: border-color .2s, background .2s, color .2s;
}
.radio-tile input { position: absolute; opacity: 0; pointer-events: none; }
.radio-tile svg { width: 16px; height: 16px; color: var(--g400); transition: color .2s; flex-shrink: 0; }
.radio-tile:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}
.radio-tile:has(input:checked) svg { color: var(--blue); }

/* Time chips */
.time-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  display: flex;
  cursor: pointer;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  padding: .45rem .9rem;
  border: 1.5px solid var(--g200);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--g600);
  transition: all .2s;
}
.chip:has(input:checked) span {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}

/* Actions */
.form-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--g200);
}

/* Error */
.form-error {
  font-size: .85rem;
  color: #c0392b;
  margin-top: .25rem;
}

/* Success */
.form-panel--success { text-align: center; padding: 3rem 1rem; }
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-icon svg { width: 32px; height: 32px; }
.form-panel--success h3 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.form-panel--success p { color: var(--g600); font-size: .95rem; }

/* Responsive */
@media (max-width: 768px) {
  .form-widget { padding: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .form-panel-actions { flex-direction: column-reverse; }
  .form-panel-actions .btn { width: 100%; justify-content: center; }

}

/* 1-spaltig: Icon + Label nebeneinander */
@media (max-width: 400px) {
  .topic-tile {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    padding: .75rem 1rem;
    gap: .75rem;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navSlideIn {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to   { clip-path: inset(0 0 0% 0);   opacity: 1; }
}
@keyframes navSlideOut {
  from { clip-path: inset(0 0 0% 0);   opacity: 1; }
  to   { clip-path: inset(0 0 100% 0); opacity: 0; }
}
@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26,109,181,.15); }
  50%       { box-shadow: 0 0 0 10px rgba(26,109,181,.05); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .main-nav { display: none; }
  .main-nav.is-open,
  .main-nav.is-closing {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 90px; left: 0; right: 0;
    height: calc(100svh - 90px);
    background: var(--white);
    border-top: 1px solid var(--g200);
    padding: 2rem;
    z-index: 101;
    overflow-y: auto;
  }
  .main-nav.is-open { animation: navSlideIn .32s cubic-bezier(0, 0, 0.2, 1) both; }
  .main-nav.is-closing { animation: navSlideOut .2s cubic-bezier(0.4, 0, 1, 1) both; }

  .main-nav.is-open ul { flex-direction: column; gap: 0; margin-bottom: 1.5rem; }
  .main-nav.is-open ul li,
  .main-nav.is-closing ul li { border-bottom: 1px solid var(--g200); }
  .main-nav.is-open ul a,
  .main-nav.is-closing ul a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .main-nav.is-open .nav-cta,
  .main-nav.is-closing .nav-cta { display: inline-flex; width: 100%; justify-content: center; padding: .85rem; }

  .nav-toggle { display: flex; }
  .logo-taglines { display: none; }

  /* Burger → X animation */
  .nav-toggle svg line {
    transition: transform .25s ease, opacity .25s ease;
    transform-box: fill-box;
    transform-origin: center;
  }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle[aria-expanded="true"] svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Hero */
  .section-hero { padding: 8rem 1.5rem 4rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  /* Trust */
  .section-trust { gap: 1.5rem; justify-content: flex-start; padding: 2rem 1.5rem; }

  /* Promises */
  .promises-grid { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Area */
  .area-inner { grid-template-columns: 1fr; }
  .area-visual { display: none; }

  /* Hero */
  .section-hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 7rem 1.5rem 3rem; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { max-width: 420px; margin: 0 auto; aspect-ratio: 3/2; }

  /* Promises portrait */
  .promises-intro { grid-template-columns: 1fr; }
  .promises-portrait-wrap { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 1060px) and (min-width: 769px) {
  .promises-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .area-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .logo-taglines { display: none; }
  .main-nav ul { gap: 1.25rem; }
  .main-nav a { font-size: .8rem; }
}
