/* ==========================================================================
   fmgi.de – CRI Strategie-Radar – Stylesheet
   Gleiche Designsprache wie crystalroominnovation.de, angepasst um
   CTA-Buttons, Formular, Buchungstool, Cookie-Banner und Partnerlogos.
   ========================================================================== */

:root{
  --navy:        #0A1628;
  --navy-2:      #132A45;
  --cyan:        #3FD4FF;
  --cyan-dark:   #1C8FC2;
  --steel:       #5B8FB0;
  --white:       #FFFFFF;
  --ink:         #1A2634;
  --paper:       #F4F7FA;
  --line:        #C7D3DE;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-h: 76px;
  --header-h-mobile: 62px;

  --container: 1160px;
}

*, *::before, *::after{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html{
  scroll-behavior:smooth;
  overflow-x:clip;
  width:100%;
}

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
  width:100%;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }

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

section[id]{
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  background:linear-gradient(135deg, #6FE3FF 0%, var(--cyan) 45%, var(--cyan-dark) 100%);
  color:var(--navy);
  padding:0.95rem 2.1rem;
  border-radius:6px;
  font-weight:700;
  font-size:1.02rem;
  text-decoration:none;
  border:none;
  cursor:pointer;
  font-family:var(--font);
  box-shadow:0 10px 26px rgba(63,212,255,0.35);
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(63,212,255,0.5);
}
.btn--ghost{
  background:transparent;
  color:var(--white);
  border:1.5px solid rgba(255,255,255,0.6);
  box-shadow:none;
}
.btn--ghost:hover{
  background:rgba(255,255,255,0.1);
  box-shadow:none;
}
.btn-center{ text-align:center; margin:2.5rem 0 0.5rem; }

/* ---------- Header ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:200;
  height:var(--header-h);
  background:rgba(10,22,40,0.94);
  backdrop-filter:saturate(140%) blur(8px);
  -webkit-backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.header-inner{
  position:relative;
  max-width:var(--container);
  margin:0 auto;
  height:100%;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  color:var(--white);
  font-weight:800;
  font-size:1rem;
  letter-spacing:0.01em;
  white-space:nowrap;
}
.brand span{ color:var(--cyan); }

.main-nav{
  display:flex;
  align-items:center;
  gap:2px;
}

.main-nav > ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:1px;
  margin:0;
  padding:0;
  flex-wrap:nowrap;
}

.main-nav > ul > li{ position:static; }
.main-nav > ul > li.has-dropdown{ position:relative; }

.nav-link{
  display:flex;
  align-items:center;
  gap:4px;
  padding:9px 11px;
  font-size:0.86rem;
  font-weight:600;
  color:rgba(255,255,255,0.85);
  border-radius:4px;
  white-space:nowrap;
  transition:color .2s ease, background-color .2s ease;
  background:none;
  border:none;
  cursor:pointer;
  font-family:inherit;
}

.nav-link:hover,
.nav-link:focus-visible{
  color:var(--cyan);
  background:rgba(255,255,255,0.06);
}

.nav-link .caret{
  width:7px;height:7px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
  margin-top:-3px;
  transition:transform .2s ease;
}
.has-dropdown.open .nav-link .caret{
  transform:rotate(225deg);
  margin-top:3px;
}

.dropdown{
  list-style:none;
  margin:0;
  padding:10px;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  left:auto;
  width:250px;
  display:grid;
  grid-template-columns:1fr;
  gap:2px;
  background:rgba(19,42,69,0.94);
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  box-shadow:0 18px 40px rgba(0,0,0,0.35);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}

.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.dropdown li a{
  display:block;
  padding:10px 12px;
  font-size:0.86rem;
  color:rgba(255,255,255,0.85);
  border-radius:6px;
  transition:background-color .15s ease, color .15s ease;
}
.dropdown li a:hover,
.dropdown li a:focus-visible{
  background:rgba(63,212,255,0.12);
  color:var(--cyan);
}

.lang-switch{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:0.8rem;
  font-weight:700;
  letter-spacing:0.03em;
  color:rgba(255,255,255,0.55);
  margin-right:2px;
  flex:none;
}
.lang-switch a,
.lang-switch span{
  padding:3px 6px;
  border-radius:4px;
}
.lang-switch .is-current{
  color:var(--white);
  background:rgba(255,255,255,0.1);
}
.lang-switch a:hover{ color:var(--cyan); }
.lang-divider{ opacity:0.4; }

.burger{
  display:none;
  width:38px;
  height:38px;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
  position:relative;
  flex:none;
}
.burger span,
.burger span::before,
.burger span::after{
  content:'';
  position:absolute;
  left:7px;
  right:7px;
  height:2px;
  background:var(--white);
  transition:transform .2s ease, opacity .2s ease, top .2s ease;
}
.burger span{ top:18px; }
.burger span::before{ top:-7px; }
.burger span::after{ top:7px; }
.burger.open span{ background:transparent; }
.burger.open span::before{ transform:rotate(45deg); top:0; }
.burger.open span::after{ transform:rotate(-45deg); top:0; }

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

.hero{
  position:relative;
  width:100%;
  background:var(--navy);
  line-height:0;
}
.hero-media{ display:block; }
.hero-img{ width:100%; height:auto; display:block; }

.hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  background:linear-gradient(100deg, rgba(10,22,40,0.86) 0%, rgba(10,22,40,0.55) 42%, rgba(10,22,40,0.08) 68%);
}

.hero-inner{
  max-width:var(--container);
  width:100%;
  margin:0 auto;
  padding:0 28px;
  line-height:1.6;
}

.hero h1{
  color:var(--white);
  font-weight:800;
  font-size:clamp(1.8rem, 4.6vw, 3.6rem);
  line-height:1.06;
  letter-spacing:-0.01em;
  max-width:14ch;
  margin:0 0 1.1rem;
  text-shadow:0 4px 30px rgba(0,0,0,0.45);
}

.hero-sub{
  color:rgba(255,255,255,0.92);
  font-size:clamp(1rem, 1.4vw + 0.7rem, 1.3rem);
  font-weight:500;
  max-width:34ch;
  margin:0 0 0.4rem;
  text-shadow:0 2px 12px rgba(0,0,0,0.4);
}

.hero .btn{ margin-top:1.6rem; }

@media (max-width:768px) and (orientation:portrait){
  .hero{
    min-height:82vh;
    background-image:url('https://www.fmgi.de/images/hero_sr_mobile.png');
    background-size:cover;
    background-position:right center;
    background-color:var(--navy);
  }
  .hero-media{ display:none; }
  .hero-overlay{
    align-items:flex-end;
    background:linear-gradient(to top, rgba(10,22,40,0.92) 12%, rgba(10,22,40,0.55) 55%, rgba(10,22,40,0.1) 85%);
  }
  .hero-inner{
    padding-bottom:8%;
    padding-top:12%;
  }
  .hero h1{ max-width:100%; }
}

/* ---------- Content sections ---------- */

main{ background:var(--white); }

.section{ padding:64px 0; }
.section--alt{ background:var(--paper); }
.section--navy{ background:var(--navy); color:var(--white); }

@media (max-width:640px){
  .section{ padding:44px 0; }
}

.eyebrow{
  display:inline-block;
  font-size:0.76rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--cyan-dark);
  margin:0 0 10px;
}
.section--navy .eyebrow{ color:var(--cyan); }

.section-title{
  font-size:clamp(1.35rem, 0.7vw + 1.15rem, 1.7rem);
  font-weight:700;
  color:var(--navy);
  margin:0 0 22px;
  line-height:1.3;
}
.section--navy .section-title{ color:var(--white); }

.section-title--center{ text-align:center; max-width:38ch; margin-left:auto; margin-right:auto; }

.sub-title{
  font-size:1.15rem;
  font-weight:700;
  color:var(--navy);
  margin:34px 0 12px;
}
.sub-title:first-of-type{ margin-top:4px; }
.section--navy .sub-title{ color:var(--cyan); }

.prose{ max-width:74ch; }
.prose--center{ margin:0 auto; text-align:center; }
.prose p{ margin:0 0 20px; }
.prose p:last-child{ margin-bottom:0; }
.prose ul{ margin:0 0 20px; padding-left:22px; }
.prose li{ margin-bottom:8px; }
.prose li:last-child{ margin-bottom:0; }

.lead{
  font-size:1.18rem;
  font-weight:600;
  color:var(--navy);
}
.section--navy .lead{ color:var(--white); }

.note-flag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:0.78rem;
  font-weight:600;
  color:var(--steel);
  background:rgba(91,143,176,0.12);
  border:1px solid rgba(91,143,176,0.3);
  border-radius:20px;
  padding:6px 14px;
  margin-bottom:18px;
}
.note-flag::before{
  content:'';
  width:6px;height:6px;
  border-radius:50%;
  background:var(--steel);
  flex:none;
}

/* ---------- Pricing cards ---------- */
.price-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
  max-width:640px;
  margin:32px 0;
}
@media (max-width:640px){
  .price-grid{ grid-template-columns:1fr; }
}
.price-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  padding:26px 24px;
  box-shadow:0 8px 24px rgba(10,22,40,0.06);
}
.price-card__label{
  font-size:0.82rem;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--steel);
  margin-bottom:10px;
}
.price-card__value{
  font-size:2rem;
  font-weight:800;
  color:var(--navy);
}

.format-list{
  list-style:none;
  padding:0;
  margin:24px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px 28px;
}
.format-list li{
  font-weight:600;
  color:var(--navy);
  display:flex;
  align-items:center;
  gap:8px;
}
.format-list li::before{
  content:'';
  width:7px;height:7px;
  border-radius:50%;
  background:var(--cyan-dark);
  flex:none;
}

/* ---------- Full-bleed sections (hero-style CTA band) ---------- */
.full-bleed{ width:100%; }
.full-bleed img{ width:100%; height:auto; display:block; }

.cri-link{
  position:relative;
  width:100%;
  line-height:0;
}
.cri-link-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:rgba(10,22,40,0.55);
}
.cri-link-inner{
  max-width:640px;
  padding:0 28px;
  line-height:1.6;
}
.cri-link-inner h2{
  color:var(--white);
  font-size:clamp(1.3rem, 2vw + 1rem, 2rem);
  font-weight:700;
  margin:0 0 20px;
  text-shadow:0 4px 24px rgba(0,0,0,0.5);
}

/* ---------- Contact form ---------- */
.contact-form{
  max-width:600px;
  margin:32px auto 0;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.contact-form input,
.contact-form textarea{
  padding:1rem;
  border:1px solid var(--line);
  border-radius:6px;
  font-size:1rem;
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:2px solid var(--cyan);
  outline-offset:1px;
  border-color:var(--cyan);
}
.contact-form textarea{ resize:vertical; min-height:120px; }
.contact-form button{
  align-self:flex-start;
}

#success-message{
  display:none;
  background:var(--navy);
  color:var(--white);
  padding:1rem 1.2rem;
  border-radius:6px;
  text-align:center;
  font-size:1rem;
  margin:1.2rem auto 0;
  max-width:600px;
}

/* ---------- Booking tool ---------- */
.booking-wrap{
  max-width:760px;
  margin:32px auto 0;
}
.meetergo-container{
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(10,22,40,0.12);
}

/* ---------- Partners ---------- */
#partners{
  background:var(--white);
  padding:56px 0 60px;
}
.partners-label{
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--cyan-dark);
  margin-bottom:32px;
  text-align:center;
}
.partners-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:2.6rem;
  flex-wrap:wrap;
}
.partner-logo{
  height:64px;
  max-width:150px;
  object-fit:contain;
  opacity:0.75;
  filter:grayscale(35%);
  transition:all .25s ease;
  border-radius:4px;
}
.partner-logo:hover{
  opacity:1;
  filter:grayscale(0%);
  transform:translateY(-3px);
}
@media (max-width:640px){
  .partners-logos{ gap:1.8rem; }
  .partner-logo{ height:50px; }
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy);
  color:rgba(255,255,255,0.7);
  padding:34px 0 84px;
  font-size:0.85rem;
}
.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 20px;
  align-items:center;
  justify-content:space-between;
}
.footer-inner a:hover{ color:var(--cyan); }
.footer-links{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.footer-dot{ opacity:0.4; }

/* ---------- Cookie banner ---------- */
#cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:rgba(10,22,40,0.97);
  backdrop-filter:blur(10px);
  color:var(--white);
  padding:16px 24px;
  z-index:300;
  font-size:0.88rem;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow:0 -4px 20px rgba(0,0,0,0.25);
}
#cookie-banner a{ color:var(--cyan); font-weight:600; }
#cookie-banner button{
  background:linear-gradient(135deg, #6FE3FF 0%, var(--cyan) 45%, var(--cyan-dark) 100%);
  color:var(--navy);
  border:none;
  padding:0.6rem 1.3rem;
  border-radius:6px;
  font-weight:700;
  font-size:0.86rem;
  cursor:pointer;
  font-family:var(--font);
  flex:none;
}

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Legal pages (Impressum / Datenschutz / AGB) ---------- */
.legal-hero{
  background:var(--navy);
  padding:64px 0 46px;
}
.legal-hero h1{
  color:var(--white);
  font-size:clamp(1.7rem, 2vw + 1rem, 2.4rem);
  font-weight:800;
  margin:0;
}
.legal-hero .back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--cyan);
  font-size:0.9rem;
  font-weight:600;
  margin-bottom:20px;
}
.legal-hero .back-link::before{
  content:'';
  width:7px;height:7px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
}

.legal-block + .legal-block{
  margin-top:34px;
  padding-top:34px;
  border-top:1px solid var(--line);
}
.legal-block h2{
  font-size:1.12rem;
  color:var(--navy);
  margin:0 0 14px;
}
.legal-block h3{
  font-size:1rem;
  color:var(--navy);
  margin:22px 0 10px;
}
.legal-block p{ margin:0 0 12px; }
.legal-block ul{ margin:0 0 12px; padding-left:20px; }
.legal-block li{ margin-bottom:6px; }

/* ---------- Responsive nav ---------- */
@media (max-width:1180px){
  .burger{ display:block; }
  .header-inner{ position:relative; }

  .main-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    z-index:5;
    background:rgba(10,22,40,0.9);
    backdrop-filter:blur(14px) saturate(150%);
    -webkit-backdrop-filter:blur(14px) saturate(150%);
    flex-direction:column;
    align-items:stretch;
    padding:8px 20px 20px;
    max-height:calc(100vh - var(--header-h-mobile) - 10px);
    overflow-y:auto;
    box-shadow:0 20px 40px rgba(0,0,0,0.35);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-8px);
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }

  .main-nav > ul{
    flex-direction:column;
    align-items:stretch;
    width:100%;
    gap:0;
  }
  .nav-link{
    width:100%;
    justify-content:space-between;
    padding:15px 6px;
    font-size:1rem;
    border-bottom:1px solid rgba(255,255,255,0.08);
    border-radius:0;
  }
  .dropdown{
    position:static;
    display:none;
    width:100%;
    grid-template-columns:1fr;
    box-shadow:none;
    border:none;
    background:rgba(255,255,255,0.04);
    opacity:1;
    visibility:visible;
    transform:none;
    padding:6px;
    margin:0 0 8px;
  }
  .has-dropdown.open .dropdown{ display:grid; }

  .lang-switch{
    order:-1;
    margin:4px 0 14px;
    font-size:0.9rem;
  }

  .site-header{ height:var(--header-h-mobile); }
  .header-inner{ padding:0 20px; }

  :root{ --header-h: var(--header-h-mobile); }
}

@media (min-width:1181px){
  .has-dropdown:hover .dropdown{
    opacity:1; visibility:visible; transform:translateY(0);
  }
}
