/* GUM-EX Critical CSS – ersetzt Tailwind CDN */
/* Generiert aus allen verwendeten Klassen */

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { cursor: pointer; }

/* ── Display ──────────────────────────────────── */
.block    { display: block !important; }
.flex     { display: flex !important; }
.grid     { display: grid !important; }
.hidden   { display: none !important; }
.inline-flex { display: inline-flex !important; }
.inline-block { display: inline-block !important; }

/* ── Flex ─────────────────────────────────────── */
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }
.flex-1     { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-x-2  { column-gap: .5rem; }
.gap-x-3  { column-gap: .75rem; }
.gap-x-7  { column-gap: 1.75rem; }
.gap-4    { gap: 1rem; }
.gap-5    { gap: 1.25rem; }
.gap-6    { gap: 1.5rem; }
.gap-8    { gap: 2rem; }
.gap-14   { gap: 3.5rem; }

/* ── Grid ─────────────────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-1  { grid-column: span 1; }
.md\:col-span-1 { grid-column: span 1; }

/* ── Position ─────────────────────────────────── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { top:0;right:0;bottom:0;left:0; }
.top-0    { top: 0; }
.bottom-4 { bottom: 1rem; }
.left-0   { left: 0; }
.right-0  { right: 0; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* ── Z-index ──────────────────────────────────── */
.z-50   { z-index: 50; }
.z-\[9998\] { z-index: 9998; }
.z-\[9999\] { z-index: 9999; }

/* ── Sizing ───────────────────────────────────── */
.w-full   { width: 100%; }
.w-5      { width: 1.25rem; }
.h-5      { height: 1.25rem; }
.min-w-0  { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.min-h-\[70vh\] { min-height: 70vh; }
.max-w-lg   { max-width: 32rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-screen-xl  { max-width: 1280px; }
.max-w-screen-2xl { max-width: 1536px; }
.max-h-\[90vh\] { max-height: 90vh; }

/* ── Spacing ──────────────────────────────────── */
.mx-auto  { margin-left: auto; margin-right: auto; }
.mx-4     { margin-left: 1rem; margin-right: 1rem; }
.ml-auto  { margin-left: auto; }
.mr-1     { margin-right: .25rem; }
.mr-2     { margin-right: .5rem; }
.mb-1     { margin-bottom: .25rem; }
.mb-2     { margin-bottom: .5rem; }
.mb-3     { margin-bottom: .75rem; }
.mb-4     { margin-bottom: 1rem; }
.mb-5     { margin-bottom: 1.25rem; }
.mb-6     { margin-bottom: 1.5rem; }
.mb-10    { margin-bottom: 2.5rem; }
.mb-12    { margin-bottom: 3rem; }
.mt-1     { margin-top: .25rem; }
.mt-3     { margin-top: .75rem; }
.mt-4     { margin-top: 1rem; }
.mt-6     { margin-top: 1.5rem; }
.mt-10    { margin-top: 2.5rem; }
.px-4     { padding-left: 1rem; padding-right: 1rem; }
.px-6     { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8     { padding-left: 2rem; padding-right: 2rem; }
.py-4     { padding-top: 1rem; padding-bottom: 1rem; }
.py-6     { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8     { padding-top: 2rem; padding-bottom: 2rem; }
.py-12    { padding-top: 3rem; padding-bottom: 3rem; }
.py-14    { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20    { padding-top: 5rem; padding-bottom: 5rem; }
.py-24    { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4     { padding-top: 1rem; }
.pt-6     { padding-top: 1.5rem; }
.pt-16    { padding-top: 4rem; }
.pb-4     { padding-bottom: 1rem; }
.pb-6     { padding-bottom: 1.5rem; }
.pb-8     { padding-bottom: 2rem; }
.p-6      { padding: 1.5rem; }
.p-7      { padding: 1.75rem; }

/* ── Typography ───────────────────────────────── */
.text-xs   { font-size: .75rem; line-height: 1rem; }
.text-sm   { font-size: .875rem; line-height: 1.25rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem; line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }
.font-light    { font-weight: 300; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.leading-snug  { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide   { letter-spacing: .025em; }
.text-center  { text-align: center; }
.underline    { text-decoration: underline; }
.uppercase    { text-transform: uppercase; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Colors ───────────────────────────────────── */
.text-white   { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }
.bg-white     { background-color: #fff; }
.bg-white\/90 { background-color: rgba(255,255,255,.9); }
.bg-black\/70 { background-color: rgba(0,0,0,.7); }
.bg-\[\#0B2D5C\]  { background-color: #0B2D5C; }
.bg-\[\#071E3D\]  { background-color: #071E3D; }
.bg-\[\#F4F2EE\]  { background-color: #F4F2EE; }

/* ── Borders ──────────────────────────────────── */
.border       { border-width: 1px; border-style: solid; }
.border-t     { border-top-width: 1px; border-top-style: solid; }
.border-b     { border-bottom-width: 1px; border-bottom-style: solid; }
.rounded-3xl  { border-radius: 1.5rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-xl   { border-radius: .75rem; }
.rounded-full { border-radius: 9999px; }

/* ── Effects ──────────────────────────────────── */
.shadow-2xl    { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.transition     { transition-property: all; transition-duration: .15s; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.divide-x > * + * { border-left-width: 1px; border-left-style: solid; }

/* ── Responsive ───────────────────────────────── */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex        { display: flex; }
}
@media (min-width: 768px) {
  .md\:flex        { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:pr-8        { padding-right: 2rem; }
  .md\:px-8        { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .lg\:flex        { display: flex; }
  .lg\:hidden      { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-12       { padding-left: 3rem; padding-right: 3rem; }
  .lg\:col-span-2  { grid-column: span 2; }
}
@media (max-width: 1023px) {
  .lg\:hidden-not { display: none; }
}


/* ── KRITISCHE FIXES ─────────────────────────────────────────────── */

/* Fix: lg:flex muss hidden überschreiben */
@media (min-width: 1024px) {
    .lg\:flex  { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:px-12 { padding-left: 3rem !important; padding-right: 3rem !important; }
}
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Fix: Logo bei kleinen Screens */
.logo-link svg { max-width: 140px; height: auto; }
@media (max-width: 640px) {
    .logo-link svg { max-width: 110px; }
}

/* Fix: Weiße Kacheln hervorheben */
.glass-card {
    background: #F8F7F5 !important;
    border: 1px solid #E6E3DC !important;
    box-shadow: 0 2px 16px -4px rgba(11,45,92,0.08) !important;
}
.glass-card:hover {
    background: #F0EDE7 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -6px rgba(11,45,92,0.14) !important;
}

/* Fix: Symbole in dark-cards – Abstand vom Rand */
.dark-card { padding: 1.75rem !important; }
.dark-card i.text-3xl, .dark-card i.text-4xl {
    margin-top: 0.25rem !important;
    margin-left: 0.25rem !important;
    display: block !important;
    margin-bottom: 1rem !important;
}

/* Fix: loc-card Text-Padding */
.loc-card { padding: 1.5rem !important; }

/* Fix: Step-Karten */
.step-card {
    background: #F8F7F5;
    border: 1px solid #E6E3DC;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 2px 10px -4px rgba(11,45,92,0.07);
}

/* Fix: CTA Button Abstand unter Kacheln */
.grid + div[onclick], .grid + button, .grid ~ [onclick] {
    margin-top: 3rem !important;
}

/* Fix: Objection-Kacheln (FAQ-ähnliche) leicht färben */
.faq-details, details.faq-details {
    background: #FAFAF8;
}

/* Font consistency */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
.section-header { font-family: 'Playfair Display', Georgia, serif !important; }
p, span, a, li, label, button, input, textarea {
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* ── MENU-NAV-FIX ──────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .lg\:flex   { display: flex   !important; }
    .lg\:hidden { display: none   !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
    .lg\:px-12 { padding-left:3rem!important; padding-right:3rem!important; }
}
@media (min-width: 768px) {
    .md\:flex        { display: flex   !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
}

/* Fix: glass-card color – nicht zu neutral */
.glass-card {
    background: #F4F2EE !important;
    border: 1px solid #DDD9D1 !important;
    box-shadow: 0 2px 14px -4px rgba(11,45,92,0.09) !important;
    transition: transform .2s, box-shadow .2s !important;
}
.glass-card:hover {
    background: #EDE9E2 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px -6px rgba(11,45,92,0.15) !important;
}

/* Fix: dark-card Icon-Abstand */
.dark-card { padding: 1.75rem !important; }
.dark-card > i:first-child,
.dark-card > div > i:first-child { margin-bottom: 1.25rem !important; }

/* Fix: loc-card padding */
.loc-card { padding: 1.5rem 1.5rem 1.5rem 1.5rem !important; }
.loc-card h3 { margin-top: 0 !important; }

/* Fix: Section headings immer Playfair */
h2.section-header, h2[class*="section-header"] {
    font-family: 'Playfair Display', Georgia, serif !important;
}
h2:not([class*="font-"]) {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Fix: Logo Mobile */
.logo-link svg { max-width: 150px; height: auto; }
@media (max-width: 480px) { .logo-link svg { max-width: 120px; } }

/* Fix: CTA-Button unter dark-cards mehr Abstand */
#zielgruppen .text-center { margin-top: 3.5rem !important; }

/* ── WEITERE FIXES ───────────────────────────────────────────────── */

/* Fix: Compare-Kacheln (GUM-EX vs Hochdruck) – mehr Padding oben */
.compare-table > div { padding-top: 2rem !important; }
.compare-col, [class*="compare"] { padding: 2rem !important; }

/* Fix: WhatsApp Button – blauen Kasten dahinter entfernen */
.sticky-mobile-cta { display: none !important; }
#sticky-cta         { display: none !important; }
.whatsapp-float { z-index: 9999 !important; }

/* Fix: FAQ Accordion – durchgehende Umrandung ohne Unterbrechung */
.faq-item, details {
    border: 1.5px solid #E6E3DC !important;
    border-left: 1.5px solid #E6E3DC !important;
    border-radius: 0.875rem !important;
    overflow: hidden;
    margin-bottom: 0.75rem !important;
}
.faq-item summary, details > summary {
    padding: 1.25rem 1.5rem !important;
    list-style: none !important;
}
.faq-item::-webkit-details-marker,
details::-webkit-details-marker { display: none; }

/* Fix: CTA Button Abstand nach oben */
.prozess-cta, #prozess + * .btn-primary,
[onclick*="openContactModal"] {
    margin-top: 3rem !important;
}

/* Fix: Bild-Ladezeit – Preload hint für hero */
.hero-bg {
    background-color: #0B2D5C !important;
}


/* Fix: Compare-Kacheln Heading-Abstand */
.compare-col h3, .compare-table h3 {
    padding-top: 1.5rem !important;
    margin-top: 0 !important;
}

/* Fix: Back-to-top Knopf verschoben damit kein Overlap mit WhatsApp */
#back-to-top {
    bottom: 9.5rem !important;
}

/* Fix: Alle CTA-Buttons ohne Pfeil */
.btn-primary .fa-arrow-right,
.btn-secondary .fa-arrow-right,
button .fa-arrow-right:not(.loc-arrow) {
    display: none !important;
}

/* ── FINALE FIXES ────────────────────────────────────────────────── */

/* Fix: Gold-Divider verstecken */
.gold-divider { display: none !important; }

/* Fix: FAQ doppelte Umrandung – nur summary/answer haben Border */
details.faq-details { border: none !important; box-shadow: none !important; }
details { border: none !important; }
details summary {
    border: 1px solid var(--border, #E6E3DC) !important;
    border-radius: 1rem !important;
    padding: 1.2rem 1.5rem !important;
    background: var(--bg-warm, #FAFAF8) !important;
}
details[open] summary {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
details[open] > *:not(summary) {
    border: 1px solid var(--border, #E6E3DC) !important;
    border-top: none !important;
    border-radius: 0 0 1rem 1rem !important;
    padding: 1rem 1.5rem !important;
}

/* Fix: CTA-Button im Header – kein doppelter Rand */
header button.rounded-3xl {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Fix: Objection-Kacheln (Das hören wir häufig) – gleicher Padding wie dark-card */
.glass-card.faq-card, .objection-card, .einwand-card {
    padding: 1.75rem !important;
}

/* Fix: Compare-Tabelle Überschriften – Abstand */
.compare-col, .compare-table > div {
    padding: 2rem !important;
}
.compare-col h3 { margin-top: 0 !important; padding-top: 0 !important; }

/* Fehlende Tailwind Padding-Klassen */
.p-8  { padding: 2rem; }
.p-9  { padding: 2.25rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pt-12 { padding-top: 3rem; }
.pt-20 { padding-top: 5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.mt-2 { margin-top: .5rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }

/* ── Button-Stil: Screenshot 1 (weiß, gerundet) ─────────────────── */
.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #0B2D5C !important;
    font-weight: 600 !important;
    padding: 1.1rem 2.5rem !important;
    border-radius: 3rem !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all .25s !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}
.btn-primary:hover {
    background: #f0ede7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(11,45,92,0.15) !important;
}
/* Kein Pfeil in CTA-Buttons */
.btn-primary i { display: none !important; }

/* ── MOBILE FIXES ───────────────────────────────────────────────── */

/* Fix: Einsatzgebiete-Kacheln auf Mobile – 1 Spalte */
@media (max-width: 639px) {
    .grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Fix: Hamburger-Button Farbe */
#hamburger-btn, button[aria-controls="mobile-menu"] {
    color: #0B2D5C !important;
    background: transparent !important;
}

/* Fix: Kachel-Text nicht umbrechen auf Mobile */
.glass-card .font-semibold { white-space: normal; word-break: break-word; }
.glass-card p.text-xs { white-space: normal; }

/* Fix: Unterstriche in Kacheln entfernen */
a.glass-card, a.glass-card * { text-decoration: none !important; }
a.glass-card:hover { text-decoration: none !important; }

/* ── HEADER MOBILE FIX ───────────────────────────────────────────── */

/* Header-CTA: navy auf Desktop, komplett versteckt auf Mobile */
.btn-header-cta {
    display: none !important;
    background: #0B2D5C !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: .65rem 1.4rem !important;
    border-radius: 3rem !important;
    font-size: .85rem !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
@media (min-width: 768px) {
    .btn-header-cta { display: flex !important; align-items: center !important; }
    .btn-header-cta:hover { background: #071E3D !important; }
}

/* Hamburger: nur auf Mobile sichtbar */
#hamburger-btn { display: flex !important; }
@media (min-width: 1024px) {
    #hamburger-btn { display: none !important; }
}

/* Sicherheit: alle hidden-Elemente auf Mobile wirklich hidden */
@media (max-width: 767px) {
    .hidden { display: none !important; }
}
