/* ArcVital Menüwerk - Industrial Modern CSS (Flex-only) */
/* ===================================================================
   RESET & BASELINE
=================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Arial, sans-serif; color: #E6E8EA; background: #0f1113; line-height: 1.6; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.1em; }
:focus { outline: 2px solid #87BFA3; outline-offset: 2px; }

/* ===================================================================
   THEME TOKENS (with fallbacks when used)
=================================================================== */
:root {
  --brand: #1F6D45;
  --brand-2: #87BFA3;
  --accent: #FFF6E9;
  --bg: #0f1113;
  --surface: #151a1e;
  --surface-2: #1c2227;
  --text: #E6E8EA;
  --muted: #A3ABB3;
  --line: #2B3238;
  --metal: #8f98a1;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
}

/* ===================================================================
   TYPOGRAPHY
=================================================================== */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif; letter-spacing: 0.5px; color: #F2F4F5; margin: 0 0 12px 0; }
p { margin: 0 0 14px 0; color: var(--text); }
small, .microcopy, .sla-note, .timeline-note { color: var(--muted); font-size: 14px; }

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
}

/* Links */
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===================================================================
   LAYOUT WRAPPERS (Flex-only)
=================================================================== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 18px; }

/* Generic section spacing (element) */
section { padding: 40px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* Mandatory spacing classes (as required) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 18px var(--shadow); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===================================================================
   HEADER & NAVIGATION
=================================================================== */
header { position: sticky; top: 0; z-index: 1000; background: #12161a; border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 34px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--text); padding: 8px 10px; border-radius: 6px; transition: color .2s ease, background .2s ease; }
.main-nav a:hover { background: var(--surface-2); color: #ffffff; }

.cta-group { display: none; align-items: center; gap: 10px; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2); color: #fff; border: 1px solid var(--line); cursor: pointer; box-shadow: 0 6px 16px var(--shadow); transition: background .2s ease, transform .15s ease; }
.mobile-menu-toggle:hover { background: #20272d; }
.mobile-menu-toggle:active { transform: scale(0.98); }

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .cta-group { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(10,12,14,0.95); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease; z-index: 1200; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 16px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 10px 20px 30px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; background: #141a1f; border: 1px solid var(--line); border-radius: 10px; color: #E6E8EA; font-size: 16px; box-shadow: 0 6px 16px var(--shadow); }
.mobile-nav a:hover { background: #1b2228; }

/* ===================================================================
   HERO SECTIONS
=================================================================== */
.hero { background: #0f1316; position: relative; }
.hero .container { gap: 0; }
.hero .content-wrapper { padding: 28px 0; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { text-transform: none; letter-spacing: 0.4px; }
.hero p { color: #cdd3d9; max-width: 60ch; }

/* Accent edge (industrial beam) */
.hero .content-wrapper { border-left: 6px solid var(--brand); padding-left: 16px; }

/* CTA rows */
.cta-row, .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Trust badges */
.trust-badges, .trust-badges ul { display: flex; flex-direction: column; gap: 10px; }
.trust-badges ul { list-style: none; padding: 0; margin: 0; }
.trust-badges li { display: flex; align-items: center; gap: 10px; color: #d7dde3; background: #14191d; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.trust-badges img { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .trust-badges, .trust-badges ul { flex-direction: row; flex-wrap: wrap; }
}

/* ===================================================================
   BUTTONS
=================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 16px var(--shadow); cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #ffffff; border-color: #1a5d3a; }
.btn-primary:hover { background: #1a5d3a; }
.btn-secondary { background: #1a232b; color: var(--brand-2); border-color: var(--line); }
.btn-secondary:hover { background: #212b34; color: #a6d2bf; }

/* Pills / notes */
.success-hint, .microcopy, .sla-note, .timeline-note { display: inline-flex; align-items: center; gap: 8px; background: #10161a; border: 1px dashed var(--metal); border-radius: 8px; padding: 8px 10px; }

/* ===================================================================
   FLEX GRIDS & CARDS
=================================================================== */
.feature-grid, .service-cards, .category-lists, .recipe-rows, .module-explain, .principles-grid, .values-grid, .plans, .footer-info, .footer-top, .footer-bottom, .testimonial-list, .contact-details, .help-topics, .faq, .guides, .actions { display: flex; flex-wrap: wrap; gap: 20px; }

/* Item defaults for all content grids */
.feature-grid > div, .service-cards > div, .category-lists > div, .recipe-rows > div, .principles-grid > div, .values-grid > div, .plans > div, .module-explain > div { flex: 1 1 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 22px var(--shadow); }

/* Module explain container itself should look like a robust panel */
.module-explain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.module-explain h3 { margin-top: 8px; }

/* Stats & chips */
.stats ul, .pagination, .guides ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li, .pagination p { background: #141a1f; border: 1px solid var(--line); color: #dfe3e6; border-radius: 999px; padding: 8px 12px; }

/* Testimonials - light background for readability */
.testimonial-list { align-items: stretch; }
.testimonial-card { background: #f5f6f7; color: #1f2326; border: 1px solid #d7dbe0; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.testimonial-card p { color: #1f2326; }

/* FAQ items */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.faq h3 { color: #ffffff; }

/* Plans */
.plans > div { display: flex; flex-direction: column; gap: 12px; }

/* Contact blocks */
.contact-details, .help-topics { align-items: flex-start; }

/* Footer groups */
.footer-top { align-items: center; justify-content: space-between; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #cdd3d9; padding: 8px 10px; border-radius: 6px; }
.footer-nav a:hover { background: #1b2228; }

/* Responsive column behavior */
@media (min-width: 768px) {
  .feature-grid > div, .service-cards > div, .category-lists > div, .recipe-rows > div, .principles-grid > div, .values-grid > div, .plans > div { flex: 1 1 calc(50% - 20px); }
}
@media (min-width: 1100px) {
  .feature-grid > div, .principles-grid > div, .values-grid > div { flex: 1 1 calc(25% - 20px); }
  .service-cards > div, .plans > div, .category-lists > div { flex: 1 1 calc(33.333% - 20px); }
}

/* Service cards links */
.service-cards a { color: var(--brand-2); font-weight: 600; }
.service-cards a:hover { color: #c2e8d7; }

/* Lists */
ul li { margin-bottom: 6px; }
ol { padding-left: 1.2em; }
ol li { margin-bottom: 8px; }

/* Quick CTA */
.quick-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Actions */
.actions { justify-content: flex-start; }

/* Index confirmation block */
.confirmation { display: flex; align-items: center; gap: 10px; background: #0f161a; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.confirmation img { width: 18px; height: 18px; }

/* ===================================================================
   FOOTER
=================================================================== */
footer { background: #0c0f12; border-top: 1px solid var(--line); }
footer section { border-top: none; }
.footer-info { align-items: flex-start; }
.footer-info > div { flex: 1 1 100%; background: #0f1316; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.footer-bottom { align-items: center; justify-content: space-between; margin-top: 12px; }
.footer-bottom p { color: #AAB2B9; }
.social-links { display: flex; gap: 12px; }
.social-links a { color: #cdd3d9; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; }
.social-links a:hover { background: #141a1f; }

@media (min-width: 900px) {
  .footer-info > div { flex: 1 1 calc(33.333% - 20px); }
}

/* ===================================================================
   SPECIAL SECTIONS & UTILITIES
=================================================================== */
.stats { display: flex; flex-direction: column; gap: 12px; }

.money-back, .limit-note, .savings { color: var(--muted); }
.escalation { color: #ffe0a6; }

.contact-info { display: flex; flex-direction: column; gap: 6px; }

.category-lists ul, .recipe-rows ul, .guides ul { margin-top: 6px; }

.pagination { align-items: center; }

/* Border accents for headings */
.content-wrapper > h2 { padding-bottom: 6px; border-bottom: 1px solid var(--line); }

/* ===================================================================
   RESPONSIVE TEXT-IMAGE LAYOUTS
=================================================================== */
.text-image-section { align-items: center; gap: 30px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ===================================================================
   TABLES (if any appear later) - Flex fallbacks as rows
=================================================================== */
.table-like { display: flex; flex-direction: column; gap: 10px; }
.table-like .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0; }

/* ===================================================================
   COLOR ACCENTS & DIVIDERS
=================================================================== */
.divider { height: 1px; background: var(--line); width: 100%; }
.accent { color: var(--brand-2); }

/* ===================================================================
   ACCESSIBILITY HELPERS
=================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===================================================================
   COOKIE CONSENT BANNER & MODAL (Flex-only)
=================================================================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #14191d; color: #E6E8EA; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,0.45); padding: 14px 16px; transform: translateY(110%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .text { display: flex; flex: 1 1 260px; align-items: center; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-width: 140px; }
.cookie-actions .btn-accept { background: var(--brand); color: #fff; border-color: #1a5d3a; }
.cookie-actions .btn-reject { background: #1b2126; color: #e6eaee; border-color: var(--line); }
.cookie-actions .btn-settings { background: #0f1316; color: var(--brand-2); border-color: var(--line); }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); z-index: 1600; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal .panel { display: flex; flex-direction: column; gap: 14px; background: #12161a; color: #E6E8EA; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.55); padding: 18px; width: min(92vw, 680px); }
.cookie-modal .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .panel-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .category { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #161b1f; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle-switch { width: 44px; height: 24px; border-radius: 24px; background: #2a3238; position: relative; border: 1px solid #3a434a; transition: background .2s ease; display: inline-flex; align-items: center; }
.toggle-switch::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #cfd6dc; margin-left: 3px; transition: transform .2s ease; }
.toggle-switch.on { background: var(--brand); border-color: #1a5d3a; }
.toggle-switch.on::after { transform: translateX(18px); background: #fff; }
.cookie-modal .panel-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ===================================================================
   MOBILE-FIRST RESPONSIVE TWEAKS
=================================================================== */
@media (min-width: 768px) {
  .container { gap: 24px; }
  .content-wrapper { gap: 20px; }
  .hero .content-wrapper { padding: 34px 0; }
}

/* ===================================================================
   PAGE-SPECIFIC NUDGES
=================================================================== */
/* Newsletter/Erstberatung info chips */
.success-hint { color: #dfe3e6; }

/* Menue-Abo lists */
.plans > div h3 { color: #f6f7f8; }

/* About page values/timeline */
.timeline ul { display: flex; flex-direction: column; gap: 8px; padding-left: 1.1em; }
.values ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.values ul li { background: #141a1f; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

/* Thank you page links */
.links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer mini signup CTA */
.mini-signup .btn { align-self: flex-start; }

/* ===================================================================
   LIST & TEXT REFINEMENTS
=================================================================== */
main a { color: var(--brand-2); }
main a:hover { color: #bfe3d2; }
strong { color: #111417; }
.testimonial-card strong { color: #0f1316; }

/* ===================================================================
   PREVENT OVERLAP & CONSISTENT GAPS
=================================================================== */
section + section { margin-top: 8px; }
.feature-grid, .service-cards, .testimonial-list, .plans { margin-top: 6px; }

/* ===================================================================
   PRINT SIMPLE
=================================================================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
