/* ===============================
   Aurora Cove Redekunst – Luxury Premium Theme
   style.css – Mobile-first, flexbox-only
   =============================== */

/* ---------------------------------
   0) CSS Reset / Normalize
---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0 0 16px 24px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

/* ---------------------------------
   1) Theme Variables (with fallbacks)
---------------------------------- */
:root {
  /* Brand */
  --color-primary: #1F3A5F; /* Deep Navy */
  --color-secondary: #C5681D; /* Warm Bronze */
  --color-accent: #F5F7FB; /* Light Accent */
  /* Luxury gold accent */
  --color-gold: #D4AF37; /* Classic Gold */
  /* Base */
  --color-bg: #F8F9FC; /* Page background */
  --color-surface: #FFFFFF; /* Cards/sections */
  --color-text: #12151A; /* Primary text */
  --color-muted: #6B7480; /* Secondary text */
  --color-border: #E2E6EF; /* Subtle borders */

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;

  --shadow-s: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-m: 0 6px 18px rgba(0,0,0,0.10);

  --container-max: 1200px;
  --transition-fast: 180ms ease;
  --transition-slow: 320ms ease;
}

/* ---------------------------------
   2) Base Typography & Body
---------------------------------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; /* brand display */ color: var(--color-primary); margin: 0 0 12px; line-height: 1.25; letter-spacing: 0.2px; }

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p { margin: 0 0 14px; color: var(--color-text); }
.small, .kicker, .subheadline { color: var(--color-muted); }
.kicker { text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; color: var(--color-gold); font-weight: 700; }
.subheadline { font-size: 16px; color: #2A2F36; }

strong { color: var(--color-primary); }

/* Links */
a { color: var(--color-secondary); transition: color var(--transition-fast); }
a:hover { color: var(--color-gold); }

/* Lists */
ul { padding-left: 18px; }
li { margin: 6px 0; }

/* Utilities */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------------------------------
   3) Layout Containers (Flex-only)
---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* flex-only requirement */
  flex-direction: column; /* mobile-first */
  gap: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 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; }
.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; }

/* Ensure minimum spacing between content elements */
.text-section, .testimonial-card, .card, .feature-item { margin-bottom: 20px; }

/* ---------------------------------
   4) Header & Navigation
---------------------------------- */
header {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25); /* subtle gold */
  box-shadow: var(--shadow-s);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }

.branding { display: flex; align-items: center; gap: 14px; }
.logo img { height: 40px; width: auto; filter: saturate(1.05); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-size: 14px; color: var(--color-primary); }
.brand-text span { font-size: 12px; color: var(--color-muted); }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  padding: 10px 8px;
  border-radius: 8px;
  color: #1D2330;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.main-nav a:hover { color: var(--color-primary); background: var(--color-accent); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-weight: 700; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); border: 1px solid transparent; }
.button.primary { background: var(--color-primary); color: #FFFFFF; border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 2px 0 0 rgba(212, 175, 55, 0.7) inset; }
.button.primary:hover { background: #213E66; color: #fff; transform: translateY(-1px); }
.button.primary:active { transform: translateY(0); }

.button.link { background: transparent; color: var(--color-secondary); border-color: transparent; padding-left: 0; padding-right: 0; border-radius: 0; border-bottom: 1px solid rgba(197, 104, 29, 0.35); }
.button.link:hover { color: var(--color-gold); border-bottom-color: rgba(212, 175, 55, 0.7); }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 20px; color: var(--color-primary); border-radius: 10px; border: 1px solid var(--color-border); background: #fff; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }
.mobile-menu-toggle:hover { background: var(--color-accent); border-color: rgba(212,175,55,0.6); color: var(--color-primary); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 20px;
  background: rgba(0, 8, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu > .mobile-nav {
  margin-left: auto; /* slide-in panel on right */
  background: var(--color-surface);
  width: 86%; max-width: 420px; height: 100%;
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  box-shadow: var(--shadow-m);
  border-left: 3px solid var(--color-gold);
}
.mobile-menu-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; font-size: 20px; color: #0F1420; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; }
.mobile-menu-close:hover { background: var(--color-accent); }

.mobile-nav a { display: flex; align-items: center; padding: 14px 10px; border-radius: 10px; color: #10141C; font-weight: 600; border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--color-accent); border-color: rgba(212,175,55,0.5); color: var(--color-primary); }

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

/* ---------------------------------
   5) Hero Sections
---------------------------------- */
.hero { background: var(--color-primary); color: #FFFFFF; position: relative; }
.hero .container { padding-top: 36px; padding-bottom: 36px; }
.hero .content-wrapper { color: #fff; }
.hero h1 { color: #fff; font-size: 28px; }
.hero .subheadline { color: #E7ECF6; }
.hero .kicker { color: var(--color-gold); }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 6px 0 0 0; }
.trust-badges li { display: flex; align-items: center; padding: 8px 12px; border: 1px solid rgba(212,175,55,0.45); color: #fff; border-radius: 999px; background: rgba(255,255,255,0.05); font-size: 12px; }

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

/* ---------------------------------
   6) Sections & Content Blocks
---------------------------------- */
main section { padding: 28px 0; }

/* Card-like text sections for premium feel */
.text-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid rgba(212,175,55,0.7);
  border-radius: var(--radius-m);
  padding: 18px 18px 16px 18px;
  box-shadow: var(--shadow-s);
}
.text-section h3 { margin-top: 4px; font-size: 18px; }
.text-section p:last-child { margin-bottom: 0; }

/* Content wrapper as flexible rows on larger screens */
@media (min-width: 768px) {
  .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .content-wrapper > * { flex: 1 1 280px; }
}

/* Text + image pattern */
.text-image-section { align-items: center; }
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* Content grid utility */
.content-grid { align-items: stretch; }
.content-grid > * { flex: 1 1 280px; }

/* Feature item */
.feature-item h3 { font-size: 18px; margin: 0; }
.feature-item p { margin: 0; color: var(--color-muted); }

/* Cards */
.card-container { align-items: stretch; }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 18px;
}

/* Testimonial Cards – Light background, dark text for readability */
.testimonial-card {
  background: var(--color-accent);
  border: 1px solid #E3E7F0;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  color: #0F1520;
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-top: 8px; }
.testimonial-card strong { color: #0B1320; }

/* Inline contact rows with icons */
.text-section ul li img { width: 18px; height: 18px; margin-right: 6px; vertical-align: middle; }
.text-section ul li { display: flex; align-items: center; gap: 8px; }

/* "Jetzt ins Handeln kommen" or similar single CTA blocks */
.content-wrapper > .button.primary { align-self: flex-start; }

/* ---------------------------------
   7) Footer
---------------------------------- */
footer { background: #0E1A2B; color: #E9EEF7; border-top: 2px solid rgba(212,175,55,0.5); }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 18px; }

.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p {color: white;}
.footer-contact p {color: white;}
.footer-brand img { height: 36px; width: auto; filter: brightness(1.1); }
.footer-nav, .footer-privacy, .footer-contact, .footer-social { display: flex; flex-direction: column; gap: 10px; }
footer h3 { color: #F7F9FF; font-size: 16px; margin-bottom: 6px; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer a { color: #D9E3F3; }
footer a:hover { color: var(--color-gold); }

/* Footer responsive row */
@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  footer .content-wrapper > * { flex: 1 1 220px; }
}

/* ---------------------------------
   8) Buttons – Additional styles
---------------------------------- */
.button.secondary { background: #fff; color: var(--color-primary); border-color: rgba(31,58,95,0.25); }
.button.secondary:hover { border-color: rgba(212,175,55,0.6); color: var(--color-primary); }

/* ---------------------------------
   9) Cookie Consent Banner & Modal
---------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 12px;
  background: #ffffff;
  border-top: 3px solid var(--color-gold);
  box-shadow: 0 -8px 28px rgba(0,0,0,0.18);
  padding: 16px 18px;
  z-index: 10000;
  transform: translateY(110%);
  transition: transform var(--transition-slow);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-text { color: #0F1420; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .cookie-accept { background: var(--color-primary); color: #fff; border: 1px solid rgba(212,175,55,0.7); border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.cookie-buttons .cookie-accept:hover { background: #213E66; }
.cookie-buttons .cookie-reject { background: #fff; color: #0F1420; border: 1px solid #D3DAE6; border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.cookie-buttons .cookie-reject:hover { border-color: rgba(212,175,55,0.7); }
.cookie-buttons .cookie-settings { background: transparent; color: var(--color-secondary); border: none; padding: 10px 12px; font-weight: 700; }
.cookie-buttons .cookie-settings:hover { color: var(--color-gold); }

.cookie-overlay { position: fixed; inset: 0; background: rgba(5,10,20,0.55); display: none; z-index: 10001; }
.cookie-overlay.active { display: flex; }
.cookie-modal {
  margin: auto;
  width: 92%; max-width: 640px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-header h3 { margin: 0; font-size: 18px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-s); }
.cookie-category .hint { color: var(--color-muted); font-size: 14px; }

/* Toggle switch */
.cookie-switch { position: relative; width: 44px; height: 26px; background: #E1E7F0; border-radius: 999px; transition: background var(--transition-fast); flex: 0 0 auto; }
.cookie-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform var(--transition-fast); }
.cookie-switch.active { background: var(--color-primary); }
.cookie-switch.active::after { transform: translateX(18px); }

.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-save { background: var(--color-primary); color: #fff; border: 1px solid rgba(212,175,55,0.6); border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.cookie-cancel { background: #fff; color: #0F1420; border: 1px solid #D3DAE6; border-radius: 999px; padding: 10px 16px; font-weight: 700; }

/* ---------------------------------
   10) Forms (generic) – future-proof
---------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
input:focus, textarea:focus { border-color: rgba(212,175,55,0.7); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
label { display: block; font-weight: 700; margin-bottom: 6px; }

/* ---------------------------------
   11) Micro-interactions & Effects
---------------------------------- */
.card, .text-section, .testimonial-card { transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.card:hover, .text-section:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: rgba(212,175,55,0.55); }
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }

/* ---------------------------------
   12) Page-specific tweaks
---------------------------------- */
/* Hero primary CTA spacing */
.hero .cta-group .button { border-width: 1px; }

/* Legal pages hero simpler */
body:has(main .hero h1:only-child) {}

/* "Schnellkontakt" list spacing */
.text-section a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------
   13) Responsive Typography & Layout
---------------------------------- */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
}

@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 40px; }
  .container { gap: 24px; }
}

@media (min-width: 1200px) {
  h1 { font-size: 48px; }
  .hero h1 { font-size: 44px; }
}

/* ---------------------------------
   14) Accessibility & Contrast
---------------------------------- */
.hero p, .hero a { color: #E9F0FA; }
.hero .button.link { color: #FFD166; border-bottom-color: rgba(255,209,102,0.6); }
.hero .button.link:hover { color: #FFE39A; border-bottom-color: rgba(255,227,154,0.85); }

/* ---------------------------------
   15) Ensuring Flex-only layouts
---------------------------------- */
/* All layout groups are flex: header container, navs, wrappers already set. */

/* ---------------------------------
   16) Additional structural helpers
---------------------------------- */
.separator { height: 1px; background: linear-gradient(90deg, rgba(212,175,55,0.3), rgba(212,175,55,0)); }

/* ---------------------------------
   17) Print basics
---------------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: underline; }
}

/* End of file */
