/* =============================
   ArroCuntri Planwerk Jena — style.css
   Tech-futuristic theme with brand alignment
   Requirements: Mobile-first, ONLY Flexbox, no Grid/Columns
   ============================= */

/* -----------------------------
   1) Reset & Base
----------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
p { margin: 0 0 16px 0; }
button { background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
:focus { outline: 2px solid var(--neon, #22E1FF); outline-offset: 2px; }

/* -----------------------------
   2) Theme Variables (with fallbacks)
----------------------------- */
:root {
  --primary: #0B253A; /* Deep blue */
  --secondary: #1E8A9E; /* Teal */
  --accent: #F4F7FA; /* Light */
  --bg: #081A2B; /* Dark background */
  --bg-2: #0E2440; /* Slightly lighter */
  --text: #E6F1F5; /* Light text */
  --muted: #A9C2CF; /* Muted text */
  --neon: #22E1FF; /* Neon cyan */
  --neon-2: #64FFDA; /* Neon mint */
  --shadow: rgba(0, 0, 0, 0.35);
  --surface: #0F2A46;
}

/* -----------------------------
   3) Typography
----------------------------- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* Brand body */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: "Trebuchet MS", Verdana, sans-serif; /* Brand display */
  margin: 0 0 16px 0;
  letter-spacing: 0.2px;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.4; margin-top: 8px; }

/* Consistent scale via media queries */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* -----------------------------
   4) Containers & Layout (Flex only)
----------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid rgba(34,225,255,0.15); border-radius: 12px; box-shadow: 0 8px 24px 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; }

/* -----------------------------
   5) Header & Navigation
----------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0A1F36; /* solid fallback */
  background-image: linear-gradient(180deg, #0A1F36 0%, #0A1F36 70%, rgba(10,31,54,0.95) 100%);
  border-bottom: 1px solid rgba(34,225,255,0.15);
  box-shadow: 0 6px 22px rgba(0,0,0,0.4);
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav {
  display: none; /* shown on desktop */
  align-items: center;
  gap: 16px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--accent);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.main-nav a:hover { color: #FFFFFF; background: rgba(34,225,255,0.09); box-shadow: 0 0 0 1px rgba(34,225,255,0.3) inset; }
.main-nav a[aria-current="page"] { color: #FFFFFF; background: rgba(34,225,255,0.16); box-shadow: 0 0 12px rgba(34,225,255,0.25); }

/* Call-to-action button */
.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--secondary);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 24px rgba(30,138,158,0.35), 0 0 0 1px rgba(34,225,255,0.2) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.cta-button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(30,138,158,0.45), 0 0 0 2px rgba(34,225,255,0.35) inset; background: #20A2B8; }
.cta-button:active { transform: translateY(0); }

/* Secondary textual links */
.text-link { color: var(--neon); border-bottom: 1px dashed rgba(34,225,255,0.6); padding-bottom: 2px; transition: color 0.2s ease, border-color 0.2s ease; }
.text-link:hover { color: #B9FFF1; border-color: #B9FFF1; }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--accent);
  background: rgba(34,225,255,0.08);
  box-shadow: 0 0 0 1px rgba(34,225,255,0.2) inset;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.mobile-menu-toggle:hover { background: rgba(34,225,255,0.15); box-shadow: 0 0 0 2px rgba(34,225,255,0.35) inset; }

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

/* -----------------------------
   6) Mobile Menu Overlay
----------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px;
  padding: 20px;
  background: rgba(6,16,28,0.85);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  visibility: hidden; opacity: 0;
  transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; opacity: 1; }
.mobile-menu-close {
  align-self: flex-end; width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34,225,255,0.08);
  color: var(--accent);
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.mobile-nav a {
  padding: 14px 12px; border-radius: 10px;
  background: rgba(10,31,54,0.72);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34,225,255,0.18) inset;
}
.mobile-nav a[aria-current="page"] { background: rgba(34,225,255,0.2); color: #fff; }

/* -----------------------------
   7) Hero Sections
----------------------------- */
.hero {
  background: #0B253A; /* solid fallback */
  background-image: linear-gradient(135deg, #0B253A 0%, #0E2B47 60%);
  color: var(--accent);
  border-bottom: 1px solid rgba(34,225,255,0.15);
}
.hero .content-wrapper { padding: 40px 0; }
.hero h1 { color: #FFFFFF; text-shadow: 0 2px 20px rgba(34,225,255,0.18); }
.hero p { color: var(--muted); max-width: 70ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Breadcrumbs */
[aria-label="Brotkrumen"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; color: #BBD3DD; font-size: 14px; }
[aria-label="Brotkrumen"] a { color: var(--neon); }

/* Trust badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 16px 0 0 0; padding: 0; }
.trust-badges li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(34,225,255,0.08); color: #E8FAFF; box-shadow: 0 0 0 1px rgba(34,225,255,0.18) inset; }
.trust-badges img { width: 20px; height: 20px; }

/* -----------------------------
   8) Sections & Content Blocks
----------------------------- */
main section { padding: 28px 0; }
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section p { max-width: 75ch; }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; }
.text-section li { margin-left: 18px; }

.metrics { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: rgba(34,225,255,0.06); box-shadow: 0 0 0 1px rgba(34,225,255,0.18) inset; }
.metrics h3 { margin-bottom: 4px; }

.contact-compact { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.contact-compact p { display: flex; align-items: center; gap: 10px; }
.contact-compact img { width: 18px; height: 18px; filter: drop-shadow(0 0 4px rgba(34,225,255,0.4)); }

/* Testimonials - light background with dark text for contrast */
.testimonial-card {
  background: #FFFFFF; /* light */
  color: #0B253A; /* dark text */
  border: 1px solid #D8E4EA;
  border-left: 4px solid var(--secondary);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: #0B253A; }

/* Footer */
footer { margin-top: 20px; background: #071A2D; border-top: 1px solid rgba(34,225,255,0.15); }
footer .content-wrapper { padding: 28px 0; gap: 24px; }
.footer-brand, .footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { width: 42px; height: auto; filter: drop-shadow(0 0 10px rgba(34,225,255,0.25)); }
.footer-nav a { color: #C9D9E2; padding: 8px 0; }
.footer-nav a:hover { color: #FFFFFF; }

/* Responsive footer layout using flex only */
@media (min-width: 900px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-brand { flex: 1; max-width: 40%; }
  .footer-nav { flex: 1; }
  .footer-contact { flex: 1; }
}

/* -----------------------------
   9) Cards & Interactive Surfaces
----------------------------- */
.card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.45); }

/* -----------------------------
   10) Buttons - variants for cookies too
----------------------------- */
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.btn-primary { background: var(--secondary); color: #fff; box-shadow: 0 10px 24px rgba(30,138,158,0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(30,138,158,0.45); }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: 0 0 0 1px rgba(34,225,255,0.3) inset; }
.btn-ghost:hover { background: rgba(34,225,255,0.12); }
.btn-neutral { background: #E9EEF2; color: #0B253A; box-shadow: 0 0 0 1px #D3DEE6 inset; }
.btn-neutral:hover { background: #F4F7FA; }

/* -----------------------------
   11) Responsive adjustments for content layouts
----------------------------- */
@media (min-width: 768px) {
  .content-wrapper { gap: 20px; }
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------
   12) Accessibility & Micro Interactions
----------------------------- */
a, button, .cta-button, .btn { transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
::selection { background: rgba(34,225,255,0.25); color: #fff; }

/* -----------------------------
   13) Utilities & Helpers
----------------------------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { display: flex; align-items: center; justify-content: center; }
.spacer-20 { height: 20px; }

/* -----------------------------
   14) Mobile menu show/hide for main nav
----------------------------- */
@media (max-width: 991px) {
  .main-nav { display: none; }
}

/* -----------------------------
   15) Page-specific subtle enhancements
----------------------------- */
/* Lists in legal pages - cleaner look */
body:has(main) .text-section ul li, body:has(main) .text-section ol li { padding-left: 2px; }

/* Contact links */
.text-section a[href^="tel:"], .text-section a[href^="mailto:"] { color: var(--neon); }

/* -----------------------------
   16) Cookie Consent Banner & Modal
----------------------------- */
/* Banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
  display: flex; flex-direction: column; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  background: #0B253A;
  color: #E6F1F5;
  border-top: 1px solid rgba(34,225,255,0.25);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.4);
  transform: translateY(100%);
  opacity: 0; visibility: hidden;
  transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie-buttons .accept-all { composes: btn btn-primary; }
.cookie-buttons .reject-all { composes: btn btn-neutral; }
.cookie-buttons .settings { composes: btn btn-ghost; }
/* If 'composes' is not supported, ensure these classes also have button styles */
.cookie-buttons .accept-all { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; background: var(--secondary); color: #fff; font-weight: 700; }
.cookie-buttons .reject-all { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; background: #E9EEF2; color: #0B253A; font-weight: 700; }
.cookie-buttons .settings { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; background: transparent; color: var(--accent); box-shadow: 0 0 0 1px rgba(34,225,255,0.35) inset; font-weight: 700; }

/* Modal overlay */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1500;
  display: flex; align-items: flex-end; justify-content: center; /* mobile bottom sheet */
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cookie-modal.show { opacity: 1; visibility: visible; }
.cookie-modal-content {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 720px;
  background: #0E2440; color: #E6F1F5;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(34,225,255,0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  padding: 16px 16px 20px 16px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-modal.show .cookie-modal-content { transform: translateY(0); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 10px; }
.cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(34,225,255,0.06); box-shadow: 0 0 0 1px rgba(34,225,255,0.18) inset; }
.cookie-category .label { display: flex; flex-direction: column; gap: 2px; }
.cookie-category .toggle { display: inline-flex; align-items: center; gap: 10px; }

/* Simple toggle switch using flex */
.switch { position: relative; width: 48px; height: 26px; border-radius: 26px; background: #7AA5B4; box-shadow: 0 0 0 1px rgba(34,225,255,0.25) inset; transition: background 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25); transition: transform 0.2s ease; }
.switch.on { background: var(--secondary); }
.switch.on::after { transform: translateX(22px); }

.cookie-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cookie-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(34,225,255,0.08); color: var(--accent); }

@media (min-width: 768px) {
  .cookie-modal { align-items: center; }
  .cookie-modal-content { border-radius: 16px; padding: 20px; }
}

/* -----------------------------
   17) Additional Flex Containers to ensure spacing & no overlaps
----------------------------- */
/* Ensure each page section maintains spacing */
main > section .content-wrapper { gap: 16px; }
main > section + section { margin-top: 10px; }

/* Ensure no overlaps & proper z-index for overlays */
.mobile-menu, .cookie-modal, .cookie-banner { z-index: 1200; }
.cookie-modal { z-index: 1500; }

/* -----------------------------
   18) Contrast tweaks for readability inside light sections
----------------------------- */
/* If any section needs a light theme wrapper */
.light-section { background: var(--accent); color: #0B253A; }
.light-section .text-link { color: #0B253A; border-color: rgba(11,37,58,0.35); }

/* -----------------------------
   19) Hero/action micro accents
----------------------------- */
.hero .cta-button { box-shadow: 0 10px 24px rgba(30,138,158,0.45), 0 0 12px rgba(34,225,255,0.25); }
.hero .cta-button:hover { box-shadow: 0 12px 30px rgba(30,138,158,0.55), 0 0 18px rgba(34,225,255,0.35); }

/* -----------------------------
   20) Tables and generic elements (if any appear later)
----------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: #DCE9EF; }

/* -----------------------------
   21) Fine-tuning spacing per page-types
----------------------------- */
/* Reduce density on legal pages */
body:has([aria-current="page"][href*="datenschutzerklaerung"]) main section,
body:has([aria-current="page"][href*="dsgvo"]) main section,
body:has([aria-current="page"][href*="nutzungsbedingungen"]) main section {
  padding: 24px 0;
}

/* -----------------------------
   22) Ensure all layout containers are flex
----------------------------- */
nav.main-nav, nav.mobile-nav, header .content-wrapper, footer .content-wrapper, .actions, .trust-badges ul, .metrics, .cookie-buttons, .cookie-modal-header, .cookie-modal-body, .cookie-categories, .cookie-modal-actions, .footer-nav, .footer-contact, .footer-brand { display: flex; }

/* Explicit alignment per requirements */
.text-image-section { align-items: center; }
.content-grid { justify-content: space-between; }

/* -----------------------------
   23) Visually distinct section separators
----------------------------- */
main section { border-top: 1px solid rgba(34,225,255,0.06); }
main section:first-of-type { border-top: none; }

/* End of stylesheet */
