:root {
  --bg: #0b1118;
  --surface: #111b25;
  --surface-2: #182433;
  --line: #2b3f55;
  --text: #edf3f8;
  --muted: #b7c2cd;
  --accent: #ffb625;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #000;
  font-family: "Lato", sans-serif;
  line-height: 1.55;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(#fff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 24, 0.85);
  backdrop-filter: blur(8px);
}

.brand img {
  height: 38px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.9rem;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

section { margin: clamp(1.6rem, 3vw, 2.8rem) 0; }

h1, h2, h3 {
  font-family: "Raleway", sans-serif;
  letter-spacing: 0.01em;
  margin: 0.2rem 0 0.7rem;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.05;
}

h2 { font-size: clamp(1.35rem, 3vw, 2rem); }

.hero {
  position: relative;
  min-height: clamp(560px, 68vw, 780px);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: #101923;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.86);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 62ch;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.eyebrow {
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-points {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
  padding-left: 1.1rem;
}

.hero-points li {
  color: #f7fafc;
  font-weight: 700;
}

.hero-portrait {
  position: absolute;
  right: clamp(0.3rem, 1.8vw, 1.1rem);
  bottom: 0;
  width: min(450px, 40vw);
  border-radius: 24px 24px 0 0;
  z-index: 2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 700;
}

.btn-primary {
  color: #111;
  background: linear-gradient(130deg, #ffcb54 0%, #f4ac1f 100%);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid #476483;
  background: rgba(12, 23, 35, 0.55);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.cards article,
.split > div,
.timeline,
.faq,
.contact {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 36, 51, 0.86) 0%, rgba(16, 25, 35, 0.9) 100%);
  padding: 1rem 1.1rem;
}

.cards p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.results h2,
.compare h2,
.knowledge h2 {
  margin-bottom: 0.9rem;
}

.cta-strip {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: linear-gradient(135deg, rgba(26, 40, 56, 0.95) 0%, rgba(14, 22, 31, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.results-grid article,
.mini-grid article,
.knowledge-grid article,
.compare-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 36, 51, 0.82) 0%, rgba(14, 22, 31, 0.9) 100%);
  padding: 0.95rem 1rem;
}

.why {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.9rem;
  align-items: stretch;
}

.why-copy {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(24, 36, 51, 0.88) 0%, rgba(16, 25, 35, 0.92) 100%);
}

.mini-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.why img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #35506a;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.knowledge-grid img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  border: 1px solid #36506b;
}

.split img,
.contact img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid #324961;
}

ul, ol {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.process-list li { margin-bottom: 0.85rem; }

details {
  border-top: 1px dashed #3b5772;
  padding: 0.75rem 0;
}

details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 700; }
summary::marker { color: #72d6e2; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.contact-grid {
  display: grid;
  gap: 0.5rem;
}

.contact-grid a {
  color: var(--text);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.contact-grid a:hover { border-color: var(--accent); }

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 430ms ease, transform 430ms ease;
}

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

.legal-main {
  width: min(900px, calc(100% - 2rem));
  margin: 2rem auto;
}

.legal-main a { color: var(--accent); }

@media (max-width: 980px) {
  .cards,
  .results-grid,
  .knowledge-grid { grid-template-columns: 1fr 1fr; }

  .split,
  .why,
  .compare-grid,
  .contact { grid-template-columns: 1fr; }

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

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-portrait {
    position: static;
    display: block;
    width: min(420px, 92%);
    margin: 0 auto 1rem;
    border-radius: 14px;
  }
}

@media (max-width: 760px) {
  .cards,
  .results-grid,
  .knowledge-grid { grid-template-columns: 1fr; }

  main { width: min(1180px, calc(100% - 1rem)); }

  .site-header { padding-inline: 0.7rem; }

  .hero {
    min-height: 0;
    border-radius: 18px;
  }

  .hero-content { padding: 1rem; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  .btn { width: 100%; text-align: center; }

  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 62px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    background: #132335;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem;
  }
  .nav.is-open { display: flex; }
}

/* =================================================================
   ONEPAGE REBUILD – RESPONSIVE FIXES
   ================================================================= */

/* FIX 1 – Hero: Nur jeweils eine Hero-Section anzeigen
   data-p=3 = Desktop (Hintergrundbbild, 2 Spalten)
   data-p=4 = Tablet  (Porträtbild links)
   data-p=5 = Mobile  (Porträtbild zentriert)
   ================================================================= */
@media (min-width: 1200px) {
  section[data-id="63546c71-1f6a-45cd-ab61-6e7521bb3a45"],
  section[data-id="683c0986-bae8-4770-848e-36248f2b328a"] {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  section[data-id="788567f3-e24c-416e-bd77-f6c6cd74a3af"],
  section[data-id="683c0986-bae8-4770-848e-36248f2b328a"] {
    display: none !important;
  }
}
@media (max-width: 767px) {
  section[data-id="788567f3-e24c-416e-bd77-f6c6cd74a3af"],
  section[data-id="63546c71-1f6a-45cd-ab61-6e7521bb3a45"] {
    display: none !important;
  }
}

/* FIX 2 – Grid-Listen: mehrspaltig → 1 Spalte auf Mobile
   ================================================================= */
@media (max-width: 767px) {
  .con-kit-component-grid-list--columns-2 .con-kit-component-grid-list-item,
  .con-kit-component-grid-list--columns-3 .con-kit-component-grid-list-item,
  .con-kit-component-grid-list--columns-4 .con-kit-component-grid-list-item,
  .con-kit-component-grid-list--columns-5 .con-kit-component-grid-list-item {
    width: 100% !important;
  }
}

/* FIX 4 – Atom-Mindestbreiten zurücksetzen (verhindert horizontalen Overflow)
   Bestimmte Atoms enthalten inline --a-min-width (z.B. 443px), die auf
   schmalen Displays das Layout sprengen.
   ================================================================= */
@media (max-width: 767px) {
  [data-atom] {
    --a-min-width: 0px !important;
  }
}

/* FIX 3 – Navigation: Burger-Menü auf Mobile/Tablet
   ================================================================= */

/* Burger-Button – standardmäßig versteckt */
.ck-burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.ck-burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}
.ck-burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ck-burger-btn.is-open span:nth-child(2) { opacity: 0; }
.ck-burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  /* Header: immer fixed (overflow-x:hidden auf body würde sticky brechen) */
  .con-kit-section.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
  }

  /* Schwarzer Header-Hintergrund auf Mobile (auch transparent/clear style) */
  .con-kit-section.header .con-kit-organism-background1,
  .con-kit-layer-header-v2--header-clear .con-kit-organism-background1 {
    background-color: rgba(0, 0, 0, 0.95) !important;
  }

  /* Seite beginnt unterhalb des Headers (padding-top = gemessene Höhe via JS,
     fallback 70px). Hintergrundfarbe schwarz = identisch mit allen Sections. */
  .con-kit-site {
    padding-top: var(--kutyik-mobile-header-h, 70px) !important;
    background-color: #000 !important;
  }

  /* Burger-Button einblenden + nach rechts schieben */
  .ck-burger-btn {
    display: flex;
    margin-left: auto;
  }

  /* Header-Atoms: Logo links, Burger rechts */
  .con-kit-molecule-header-v2__atoms {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Header-Nav verstecken (NUR im Header, nicht im Footer!) */
  section[data-id="6301c2b4-0765-4340-83f8-eec132cc22ef"] [data-atom="menu-v2"] {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 9900;
    background: rgba(0, 0, 0, 0.97);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 24px 32px;
    box-sizing: border-box;
    overflow-y: auto;
  }
  /* ck-nav-open hat höhere Spezifizität → gewinnt über display:none !important */
  section[data-id="6301c2b4-0765-4340-83f8-eec132cc22ef"] [data-atom="menu-v2"].ck-nav-open {
    display: flex !important;
  }
  /* Inline-CSS verbirgt "nav" mit display:none !important → hier überstimmen */
  section[data-id="6301c2b4-0765-4340-83f8-eec132cc22ef"] [data-atom="menu-v2"].ck-nav-open > nav {
    display: flex !important;
  }
  [data-atom="menu-v2"].ck-nav-open .con-kit-atom-menu-v2 {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0;
  }
  [data-atom="menu-v2"].ck-nav-open ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  [data-atom="menu-v2"].ck-nav-open .con-kit-atom-menu-v2-item {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  [data-atom="menu-v2"].ck-nav-open .con-kit-atom-menu-v2-item-inside {
    width: 100%;
    justify-content: center;
    font-size: 1.2rem;
    padding: 12px 0;
  }
  /* "…"-Überlauf-Eintrag ausblenden */
  [data-atom="menu-v2"].ck-nav-open .con-kit-component-menu-v2-more {
    display: none;
  }
  /* Spacer im Menü-Atom ausblenden (macht keinen Sinn im Overlay) */
  [data-atom="menu-v2"].ck-nav-open .con-kit-component-spacer {
    display: none;
  }
}

/* FIX 5 – Desktop-only Sections auf Mobile ausblenden
   (angebot-header, über-mich, seo-texte jeweils Desktop-Version)
   ================================================================= */
@media (max-width: 767px) {
  section[data-id="710377d8-157c-45dd-965d-46acf8c102c9"],
  section[data-id="ef180c57-38c4-4b1f-9355-318f85423755"],
  section[data-id="ce051cf3-1ced-4b3b-bfef-5f40118e5b93"] {
    display: none !important;
  }
}
