/* ================================
   Brisk Nomad Ernährung – style.css
   Industrial Modern aesthetic with brand integration
   Author: Senior CSS Developer & UI Designer
   ================================ */

/* ================================
   0) CSS RESET & NORMALIZE
   ================================ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { background: none; border: 0; color: inherit; font: inherit; }
:focus-visible { outline: 2px solid #2F855A; outline-offset: 2px; }

/* ================================
   1) THEME VARIABLES (with fallbacks)
   ================================ */
:root {
  --color-bg: #0F1214;           /* deep charcoal */
  --color-surface: #14181C;      /* panel dark */
  --color-surface-2: #1A1F24;    /* elevated */
  --color-text: #E7EAED;         /* light text */
  --color-text-muted: #BAC1C7;   /* muted */
  --color-metal: #6C757D;        /* metallic accent */
  --color-metal-light: #9AA3AB;  /* metallic light */
  --color-stroke: #252B31;       /* hairline borders */
  --brand-primary: #2F855A;      /* brand green */
  --brand-secondary: #264653;    /* deep teal */
  --accent: #FFFFFF;             /* white */
  --warning: #E0A800;
  --success: #2F855A;
  --danger: #C0392B;
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.35);
  --shadow-focus: 0 0 0 3px rgba(47,133,90,0.35);
}

/* ================================
   2) BASE TYPOGRAPHY & BODY
   ================================ */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Verdana, "Segoe UI", Tahoma, sans-serif; /* brand body */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif; /* brand display */ }
h1 { font-size: 40px; line-height: 1.2; letter-spacing: 0.5px; font-weight: 700; }
h2 { font-size: 28px; line-height: 1.25; letter-spacing: 0.4px; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: 0.3px; font-weight: 700; }
p, li { font-size: 16px; color: var(--color-text); }
small, .muted { font-size: 14px; color: var(--color-text-muted); }
strong { font-weight: 700; color: #F1F3F4; }
.subheadline { color: var(--color-text-muted); max-width: 70ch; }

/* ================================
   3) LAYOUT WRAPPERS (FLEX-ONLY)
   ================================ */
.container {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 20px; align-items: stretch;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-stroke);
  border-radius: 10px; padding: 24px; box-shadow: var(--shadow-soft);
}

/* Global section spacing */
section { margin-bottom: 60px; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Mandatory spacing patterns (flex-only) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-surface-2); border: 1px solid var(--color-stroke); border-radius: 10px; padding: 20px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 12px; }
.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; background: #F2F4F5; color: #0F1214; border: 1px solid #D9DEE2; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ================================
   4) HEADER & NAVIGATION
   ================================ */
header { position: sticky; top: 0; z-index: 999; background: rgba(15,18,20,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-stroke); }
header .container { padding-top: 14px; padding-bottom: 14px; flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; filter: grayscale(15%) contrast(105%); }

.main-nav { display: none; gap: 12px; align-items: center; flex-wrap: wrap; }
.main-nav a { padding: 10px 12px; color: var(--color-text); border: 1px solid transparent; border-radius: 8px; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease; }
.main-nav a:hover { background: var(--color-surface-2); border-color: var(--color-stroke); transform: translateY(-1px); }
.main-nav a[aria-current="page"] { color: var(--brand-primary); border-color: var(--brand-primary); }

/* Buttons in nav inherit button styles below */

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--color-stroke); color: var(--color-text); background: var(--color-surface-2); cursor: pointer; transition: background 0.25s ease, transform 0.2s ease; }
.mobile-menu-toggle:hover { background: #1E242A; transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(10,12,14,0.96); border-left: 1px solid var(--color-stroke); transform: translateX(100%); transition: transform 0.35s ease; display: flex; flex-direction: column; gap: 20px; padding: 20px; pointer-events: none; }
.mobile-menu .mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--color-stroke); color: var(--color-text); background: var(--color-surface-2); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a { padding: 14px 12px; border: 1px solid var(--color-stroke); border-radius: 10px; background: var(--color-surface); color: var(--color-text); }
.mobile-nav a[aria-current="page"] { border-color: var(--brand-primary); color: var(--brand-primary); }

/* Open states for mobile menu – support multiple toggles */
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open, body.menu-open .mobile-menu { transform: translateX(0); pointer-events: auto; }

/* Desktop nav visibility */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ================================
   5) HERO & SECTIONS
   ================================ */
.hero .content-wrapper { background: var(--color-surface-2); border: 1px solid var(--color-stroke); padding: 32px; }
.hero h1 { text-transform: none; }
.hero .subheadline { font-size: 18px; }

/* CTA Group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Lists & badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-badges li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--color-surface); border: 1px solid var(--color-stroke); border-radius: 999px; color: var(--color-text-muted); }
.trust-badges img { width: 16px; height: 16px; }

.usps-list, .metric-list { display: flex; flex-wrap: wrap; gap: 12px; }
.usps-list li, .metric-list li { flex: 1 1 260px; padding: 14px 16px; background: var(--color-surface-2); border: 1px solid var(--color-stroke); border-radius: 10px; color: var(--color-text); }

.step-list { display: flex; flex-wrap: wrap; gap: 12px; counter-reset: step; }
.step-list li { flex: 1 1 260px; background: var(--color-surface-2); border: 1px solid var(--color-stroke); border-radius: 10px; padding: 14px 16px; }

.method-notes, .supporting-notes, .methodology-notes, .glossary-teaser, .rating-summary { color: var(--color-text-muted); }
.rating-summary { font-style: italic; }

/* Text sections as industrial cards */
.text-section { display: flex; flex-direction: column; gap: 12px; background: var(--color-surface-2); border: 1px solid var(--color-stroke); border-radius: 10px; padding: 16px; box-shadow: var(--shadow-soft); }

/* ================================
   6) BUTTONS
   ================================ */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid #384047; background: #1A1F24; color: var(--color-text); cursor: pointer; transition: transform 0.15s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(0,0,0,0.3); }
.button:hover { transform: translateY(-1px); background: #21272D; border-color: #444C55; }
.button:active { transform: translateY(0); }
.button:focus-visible { box-shadow: var(--shadow-focus); }

.button.primary { background: var(--brand-primary); border-color: #236B46; color: #FFFFFF; }
.button.primary:hover { background: #2A774F; }

.button.secondary { background: var(--brand-secondary); border-color: #1C3440; color: #EAF2F5; }
.button.secondary:hover { background: #214855; }

/* Inline text links */
a[href]:not(.button) { color: var(--brand-primary); border-bottom: 1px solid transparent; transition: color 0.25s ease, border-color 0.25s ease; }
a[href]:not(.button):hover { color: #37A46C; border-color: #37A46C; }

/* ================================
   7) LISTS & TYPOGRAPHY EXTRAS
   ================================ */
ul li, ol li { color: var(--color-text); }
ul li + li, ol li + li { margin-top: 6px; }

/* ================================
   8) TESTIMONIALS (light for contrast)
   ================================ */
/* already defined .testimonial-card above to ensure dark text on light bg */
.testimonial-card p { color: #0F1214; }

/* ================================
   9) FOOTER
   ================================ */
footer { background: #0B0E10; border-top: 1px solid var(--color-stroke); padding: 30px 0; }
footer .content-wrapper { background: transparent; border: 0; box-shadow: none; padding: 0; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
footer .content-wrapper > * { flex: 1 1 240px; }
footer h3 { font-size: 18px; margin-bottom: 8px; color: var(--color-metal-light); text-transform: uppercase; letter-spacing: 1px; }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-legal a { color: var(--color-text); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; }
.footer-nav a:hover, .footer-legal a:hover { border-color: var(--color-stroke); background: var(--color-surface); }
.footer-brand p, .footer-contact p, .footer-news p { color: var(--color-text-muted); }
.footer-contact img { display: inline-block; vertical-align: middle; margin-right: 6px; filter: grayscale(30%); }

/* ================================
   10) RESPONSIVE & FLEX BEHAVIOR
   ================================ */
/* General flexible columns for repeated .text-section in a .content-wrapper */
.content-wrapper > .text-section { flex: 1 1 260px; }
.content-wrapper { flex-wrap: wrap; }

/* Text-image sections stack on mobile */
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  .content-wrapper { flex-direction: row; align-items: flex-start; }
  .content-wrapper > :not(:only-child) { flex: 1 1 300px; }
}

/* ================================
   11) ACCESSIBILITY & MICRO-INTERACTIONS
   ================================ */
::selection { background: rgba(47,133,90,0.35); color: #fff; }
[aria-current="page"] { position: relative; }
[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--brand-primary); margin-top: 4px; border-radius: 1px; }

/* ================================
   12) COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; background: #0E1113; border-top: 1px solid var(--color-stroke); color: var(--color-text); box-shadow: 0 -8px 18px rgba(0,0,0,0.4); transform: translateY(110%); transition: transform 0.35s ease; }
.cookie-banner.show, .cookie-banner.open, body.cookie-open .cookie-banner { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .button { flex: 1 1 140px; }
.cookie-actions .button.reject { background: #1A1F24; border-color: #3A424A; color: #E6E9EC; }
.cookie-actions .button.accept { background: var(--brand-primary); border-color: #236B46; color: #fff; }
.cookie-actions .button.settings { background: var(--brand-secondary); border-color: #1C3440; color: #EAF2F5; }

.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cookie-modal-overlay.open, .cookie-modal-overlay.active, body.cookie-settings-open .cookie-modal-overlay { opacity: 1; pointer-events: auto; }
.cookie-modal { width: 100%; max-width: 780px; background: var(--color-surface); border: 1px solid var(--color-stroke); border-radius: 12px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: transparent; border-bottom: 1px solid var(--color-stroke); padding-bottom: 10px; position: static; }
.cookie-modal .cookie-section { display: flex; flex-direction: column; gap: 10px; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--color-surface-2); border: 1px solid var(--color-stroke); border-radius: 10px; }
/* simple switch imitation */
.switch { width: 44px; height: 26px; border-radius: 999px; background: #30373E; border: 1px solid #3D454D; position: relative; display: flex; align-items: center; padding: 2px; transition: background 0.25s ease; }
.switch::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #DDE2E7; display: block; transform: translateX(0); transition: transform 0.25s ease; }
.switch.on { background: var(--brand-primary); border-color: #236B46; }
.switch.on::after { transform: translateX(18px); }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ================================
   13) UTILITIES & MISC
   ================================ */
.hr { height: 1px; background: var(--color-stroke); width: 100%; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--color-stroke); background: var(--color-surface-2); color: var(--color-text-muted); font-size: 12px; }

/* Icons next to text */
p img[alt^="Adresse"], p img[alt^="Telefon"], p img[alt^="E-Mail"], p img[alt^="Öffnungszeiten"], p img[alt^="Adresse"], p img[alt^="Telefon"], p img[alt^="E-Mail"] { width: 16px; height: 16px; display: inline-block; margin-right: 6px; }

/* ================================
   14) PAGE-SPECIFIC TWEAKS (shared selectors)
   ================================ */
/* Index metrics tighter look */
.metric-list strong { color: #101417; background: #E0E5EA; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }

/* Pricing emphasis */
.content-wrapper p strong { color: #EDEFF1; }

/* Legal pages hero contrast */
main .hero h1 + .subheadline { max-width: 60ch; }

/* ================================
   15) PRINT BASICS
   ================================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .content-wrapper, .text-section, .card { background: #fff; border: 1px solid #ddd; box-shadow: none; }
}
