/* =========================================================
   28 DAYS TO AI – Landing (CLARITY Intelligence)
   File: style.css  (place next to index.html)
   Assets: assets/img/clarity-logo.svg  (+ optional hero image)
   ========================================================= */

/* ------------------------------
   CSS Reset / Base
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root{
  /* Palette (Estorilblau vibe + orange accent) */
  --navy-900:#071a33;
  --navy-850:#07264d;
  --navy-800:#0b2d55;
  --blue-700:#1a5797;
  --blue-500:#5a8ec1;
  --sand-200:#e9e3db;

  --white: #ffffff;
  --muted: rgba(255,255,255,.80);
  --muted2: rgba(255,255,255,.68);

  --glass: rgba(255,255,255,.12);
  --glass2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.35);

  --accent: #ff9f1a;
  --accent2:#ff7a00;
  --accentSoft: rgba(255,159,26,.22);

  --radius-xl: 26px;
  --radius-lg: 18px;

  --container: 1100px;
  --pad: 22px;

  --header-h: 78px;
}

body{
  margin: 0;
  font-family: "Open Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  background: linear-gradient(180deg,
    var(--navy-900) 0%,
    var(--navy-800) 28%,
    var(--blue-700) 52%,
    var(--blue-500) 78%,
    var(--sand-200) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; display:block; }

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

.section{
  padding: 34px 0; /* bewusst kompakt */
}

.section.tight{ padding: 24px 0; }

h1,h2,h3{
  margin: 0 0 12px 0;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 0 22px rgba(0,0,0,.35);
}

h1{ font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; }
h2{ font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
h3{ font-size: 20px; line-height: 1.2; }

p{ margin: 0 0 12px 0; line-height: 1.65; color: var(--muted); }
small{ color: var(--muted2); }

/* ------------------------------
   Glass / Bubble
------------------------------ */
.glass{
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bubble{
  padding: clamp(18px, 2.6vw, 30px);
}

/* prevent odd “left-sticking” text on wide bubbles */
.bubble .copy{
  max-width: 78ch;
}

.center{ text-align:center; }
.center .copy{ margin-left:auto; margin-right:auto; }

/* ------------------------------
   Header (transparent, sticky)
------------------------------ */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7,26,51,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 240px;
}

.brand img{
  height: 70px; /* Vorgabe */
  width: auto;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  position: relative;
}

.nav a{
  position: relative;
  padding: 12px 4px 16px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.88);
  outline: none;
}

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

.nav a::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 3px;
  border-radius: 99px;
  background: transparent;
  transform: scaleX(.3);
  transform-origin: center;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
  opacity: .0;
}

/* slider line under active/hovered menu item */
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(1);
  opacity: 1;
}

.nav-cta{
  margin-left: 10px;
}

/* Mobile nav */
.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor:pointer;
}

.burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px auto;
  border-radius: 2px;
  opacity: .9;
}

@media (max-width: 940px){
  .nav{ display:none; }
  .burger{ display:block; }
  .brand{ min-width: auto; }
}

/* mobile dropdown */
.mobile-nav{
  display:none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  padding: 14px 0 22px;
  background: rgba(7,26,51,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  z-index: 49;
}

.mobile-nav.open{ display:block; }

.mobile-nav a{
  display:block;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 6px;
  font-weight: 700;
  color: rgba(255,255,255,.90);
}

.mobile-nav a + a{
  border-top: 1px solid rgba(255,255,255,.10);
}

/* ------------------------------
   Hero with image + fade to body
------------------------------ */
.hero{
  position: relative;
  padding: calc(var(--header-h) + 26px) 0 22px;
}

.hero-bg{
  position:absolute;
  inset: 0;
  background:
    /* optional image – replace file if you want */
    url("assets/img/hero-28daystoai.jpg") center/cover no-repeat;
  opacity: .32;
  filter: saturate(1.05) contrast(1.05);
  pointer-events:none;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(58,178,255,.08), transparent 60%),
    linear-gradient(180deg,
      rgba(7,26,51,.65) 0%,
      rgba(11,45,85,.50) 40%,
      rgba(90,142,193,.25) 78%,
      rgba(233,227,219,0) 100%
    );
  pointer-events:none;
}

/* Seamless fade into body background */
.hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(233,227,219,0) 0%, rgba(233,227,219,0) 35%, rgba(233,227,219,0) 100%);
  /* (body already continues – no hard edge by design) */
  pointer-events:none;
}

.hero-inner{
  position: relative;
  z-index: 2;
  display:flex;
  justify-content:center;
}

.hero-bubble{
  width: min(980px, 100%);
  text-align:center;
}

.hero-bubble .copy{
  margin-left:auto;
  margin-right:auto;
}

.hero-kicker{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.hero-text{
  font-size: 16px;
  color: rgba(255,255,255,.88);
  margin: 10px 0 18px;
}

.hero-buttons{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
}

/* ------------------------------
   Buttons
------------------------------ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  position: relative;
  min-width: 170px;
}

.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.28); }

.btn.primary{
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-color: rgba(255,255,255,.0);
  color: #0b1220;
}

/* orange “slider/underline” under buttons */
.btn.primary::after,
.btn.ghost::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 99px;
  background: rgba(0,0,0,.22);
  opacity: .22;
}
.btn.ghost{
  background: rgba(255,255,255,.08);
}
.btn.ghost::after{
  background: linear-gradient(90deg, rgba(255,159,26,.95), rgba(255,122,0,.95));
  opacity: .9;
}

/* ------------------------------
   Layout helpers
------------------------------ */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 860px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* ------------------------------
   “Für wen / Für wen nicht”
------------------------------ */
.split-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

@media (max-width: 860px){
  .split-cards{ grid-template-columns: 1fr; }
}

.list{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.list li{
  margin: 10px 0;
  padding-left: 26px;
  position: relative;
  color: rgba(255,255,255,.86);
}
.list li::before{
  content:"✓";
  position:absolute;
  left: 0;
  top: 0;
  color: rgba(255,255,255,.92);
}

/* ------------------------------
   Kursinhalt (weeks)
------------------------------ */
.week-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.week{
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}

.week h3{ margin-bottom: 8px; font-size: 16px; }
.week p{ margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }

@media (max-width: 980px){
  .week-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .week-grid{ grid-template-columns: 1fr; }
}

/* ------------------------------
   Pricing cards
------------------------------ */
.pricing{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 860px){
  .pricing{ grid-template-columns: 1fr; }
}

.price-card{
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  display:flex;
  flex-direction: column;
  min-height: 360px;
}

.price-top{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-weight: 800;
  font-size: 13px;
}

.price{
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}
.price small{
  display:inline-block;
  margin-left: 8px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

.price-note{
  margin: 6px 0 10px;
  color: rgba(255,255,255,.80);
}

.price-card ul{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
}
.price-card li{ margin: 10px 0; }

.price-cta{
  margin-top: auto; /* pins buttons at bottom */
  padding-top: 16px;
  display:flex;
  gap: 12px;
}

.price-cta .btn{ width: 100%; min-width: 0; } /* same height/width */
.price-cta .btn.primary::after{ opacity: .28; }

.micro{
  margin-top: 10px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
}

/* ------------------------------
   Charly bubble – linksbündig
------------------------------ */
.charly{
  text-align: left;
}

.charly h2{
  text-align: left;
  font-style: italic;
  font-weight: 900;
  margin-bottom: 8px;
}

.quote{
  text-align: left;
  font-style: italic;
  color: rgba(255,255,255,.88);
  margin: 0;
}

/* ------------------------------
   FAQ (details/summary)
------------------------------ */
.faq details{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 10px 0;
}

.faq summary{
  cursor:pointer;
  font-weight: 800;
  color: rgba(255,255,255,.92);
  list-style: none;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::before{
  content:"▸";
  display:inline-block;
  margin-right: 10px;
  transform: translateY(-1px);
  opacity:.9;
}
.faq details[open] summary::before{
  content:"▾";
}

.faq .answer{
  margin-top: 10px;
  color: rgba(255,255,255,.84);
}

/* ------------------------------
   Kontakt (like screenshot: left form, right info+map)
------------------------------ */
.contact-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.form{
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.form h3{ margin-bottom: 16px; }

.fields{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px){
  .fields{ grid-template-columns: 1fr; }
}

.input, select, textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,26,51,.30);
  color: rgba(255,255,255,.92);
  outline: none;
}

textarea{ min-height: 140px; resize: vertical; }

.input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.45); }

.form .btn{
  width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  min-width: 0;
}

.info{
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
}
.kv b{ color: rgba(255,255,255,.92); }
.kv span, .kv a{ color: rgba(255,255,255,.82); }

.nowrap{ white-space: nowrap; }

.map{
  margin-top: 6px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  aspect-ratio: 16/9;
}

/* ------------------------------
   Footer (visible, centered)
------------------------------ */
.footer{
  padding: 26px 0 40px;
}

.footer-inner{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.footer-card{
  text-align: center;
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(7,26,51,.65);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.footer-links{
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap: wrap;
  font-weight: 800;
  color: rgba(255,255,255,.90);
}

.footer-links a{
  color: rgba(255,255,255,.92);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}

.footer-links a:hover{
  border-color: rgba(255,255,255,.22);
}

.footer-meta{
  margin-top: 10px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

/* ------------------------------
   Utility
------------------------------ */
.anchor-offset{
  scroll-margin-top: calc(var(--header-h) + 18px);
}
/* =========================================
   HERO (image + smooth body transition)
========================================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hintergrundbild */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/img/hero-munich.jpg") center center / cover no-repeat;
  z-index: 1;
}

/* Overlay + weicher Übergang in den Body */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(6, 22, 40, 0.92) 0%,
      rgba(6, 22, 40, 0.85) 40%,
      rgba(6, 22, 40, 0.65) 60%,
      rgba(6, 22, 40, 0.35) 78%,
      rgba(6, 22, 40, 0.15) 90%,
      rgba(6, 22, 40, 0.00) 100%
    );
}

/* Inhalt */
.hero-inner {
  position: relative;
  z-index: 3;
}

/* =========================================
   HERO BUBBLE
========================================= */

.hero-bubble {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 64px;
  text-align: center;

  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Kicker */
.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

/* Headline */
.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 22px;
  font-weight: 600;
}

/* Text */
.hero-text {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

/* Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.hero-buttons .btn {
  min-width: 190px;
}

/* =========================================
   RESPONSIVE (defensiv, stabil)
========================================= */

@media (max-width: 900px) {
  .hero-bubble {
    padding: 44px 32px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
