/* ===========================
   Silberpfad Yoga – style.css
   Theme: Industrial Modern (brand-aligned)
   Requirements: Mobile-first, Flexbox-only, high-contrast, accessible
   =========================== */

/* ===== CSS Reset / Normalize ===== */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding-left: 1.2rem; }
img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid #9aa3a8; outline-offset: 2px; }

/* ===== Design Tokens ===== */
:root {
  /* Brand */
  --brand: #0D5B5B;         /* Primary */
  --brand-2: #6B8F71;       /* Secondary */
  --accent: #F7F5EE;        /* Light accent (paper) */

  /* Industrial modern neutrals */
  --bg: #0F1316;            /* Charcoal */
  --surface: #151A1F;       /* Dark surface */
  --surface-2: #1B2229;     /* Panel */
  --ink: #E8ECEF;           /* Primary text */
  --muted: #B7C1C6;         /* Muted text */
  --metal: #8D979E;         /* Metallic accents */
  --line: #2B333B;          /* Divider */
  --success: #2C7A7A;
  --danger: #B63F3F;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 24px rgba(0,0,0,0.35);
  --shadow-soft: 0 6px 16px rgba(0,0,0,0.25);
  --transition: all .25s ease;
}

/* ===== Base ===== */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 18px; /* large base for readability */
  line-height: 1.7;
  letter-spacing: 0.1px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.4px; /* crisp industrial character */
}

h1 { font-size: 36px; margin-bottom: 16px; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 12px; }

p { margin-bottom: 12px; color: var(--ink); }
small, .muted { color: var(--muted); }
strong { color: var(--ink); font-weight: 700; }

/* Global sections spacing (for unclassed section tags) */
section { padding: 40px 0; }

/* ===== Containers & Flex Layouts ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;             /* Flex-only rule */
  justify-content: center;   /* Centers the inner wrapper */
}

.content-wrapper {
  width: 100%;
  display: flex;             /* Flex-only */
  flex-direction: column;    /* Mobile-first */
  gap: 20px;                 /* Consistent breathing room */
}

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

/* ===== Header & Navigation ===== */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo img { height: 44px; width: auto; filter: drop-shadow(0 1px 0 rgba(0,0,0,.3)); }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--ink);
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--brand-2); border-bottom-color: var(--metal); }
.header-cta { display: none; align-items: center; gap: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--metal);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--brand);
  border-color: #0b4b4b;
}
.btn-primary:hover { background: #0b4b4b; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--surface-2); }

/* Link styles */
a { color: var(--brand-2); }
a:hover { color: var(--brand); }

/* ===== Mobile Menu (Hamburger) ===== */
.mobile-menu-toggle {
  position: fixed;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--metal);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100;
  transition: var(--transition);
}
.mobile-menu-toggle:hover { background: #202831; }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(10,13,16,0.92);
  backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  padding: 20px;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1090;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--metal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

.mobile-nav { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.mobile-nav a {
  display: flex; align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.mobile-nav a:hover { border-color: var(--metal); background: #1a2026; }

body.no-scroll { overflow: hidden; }

/* ===== Hero Sections ===== */
.hero { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.hero .content-wrapper { align-items: flex-start; justify-content: center; }
.subheadline, .tagline, .summary, .notice, .safety-note { color: var(--muted); }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Lists, badges, text blocks ===== */
.text-section {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.text-section ul { display: flex; flex-direction: column; gap: 6px; }
.text-section li { padding-left: 6px; }

.trust-badges ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.trust-badges li {
  background: #12171c;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}
.accessibility-note, .phone-highlight { color: var(--ink); background: #12171c; border-left: 4px solid var(--brand-2); padding: 10px 12px; border-radius: 6px; }
.disclaimer { color: var(--muted); font-size: 16px; }

/* ===== Feature groups (flex-only) ===== */
.features-grid {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.features-grid > h3, .features-grid > ul {
  flex: 1 1 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.features-grid > ul { display: flex; flex-direction: column; gap: 8px; }

/* ===== Services / Cards ===== */
.service-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.service-cards .text-section {
  flex: 1 1 280px;
  min-width: 260px;
  background: #161c21;
  border: 1px solid var(--line);
  transition: var(--transition);
}
.service-cards .text-section:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--metal); }
.service-cards .text-section h3 { color: var(--ink); }
.service-cards .text-section .btn { align-self: flex-start; }

/* ===== Testimonials (light background, dark text for readability) ===== */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card {
  flex: 1 1 280px;
  background: var(--accent);
  color: #1A1F24; /* dark text on light background */
  border: 1px solid #e2dece;
  border-left: 6px solid var(--brand-2);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.testimonial-card p { color: #1A1F24; }

/* ===== Schedule / Legend ===== */
.schedule-grid { display: flex; flex-direction: column; gap: 12px; }
.schedule-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.schedule-grid li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 10px 12px;
}
.legend { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.legend p { display: flex; align-items: center; gap: 10px; }

/* ===== Map Placeholder ===== */
.map-placeholder {
  width: 100%; min-height: 240px;
  background: #101418;
  border: 1px dashed var(--metal);
  border-radius: var(--radius);
}

/* ===== Footer ===== */
footer { background: #0C0F12; border-top: 1px solid var(--line); }
footer .content-wrapper {
  flex-direction: row; flex-wrap: wrap; gap: 20px;
  padding: 24px 0;
}
.footer-brand, .footer-nav, .footer-contact, .footer-extras {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1 1 220px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-nav a {
  display: inline-flex; padding: 6px 8px; border-radius: 6px; color: var(--muted);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--ink); background: #12171c; }
footer .logo img { height: 38px; }

/* ===== Minor elements ===== */
address { font-style: normal; }
.notice, .safety-note { background: #12171c; border-left: 4px solid var(--brand); padding: 10px 12px; border-radius: 6px; }
.terms, .summary { color: var(--muted); }

/* ===== Tables (if any appear via content) – flex-safe blocks ===== */
.table-like { display: flex; flex-direction: column; gap: 8px; }
.table-like .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ===== Forms (generic) ===== */
input[type='text'], input[type='email'], textarea, select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
input:focus, textarea:focus, select:focus { border-color: var(--metal); }

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: #0F1316;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  transform: translateY(100%);
  transition: transform .35s ease;
  z-index: 1200;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.cookie-banner .btn-accept { background: var(--brand); border: 1px solid #0b4b4b; color: var(--ink); }
.cookie-banner .btn-reject { background: #1b2127; border: 1px solid var(--metal); color: var(--ink); }
.cookie-banner .btn-settings { background: transparent; border: 1px dashed var(--metal); color: var(--muted); }
.cookie-banner .btn-accept:hover { background: #0b4b4b; }
.cookie-banner .btn-reject:hover { background: #212830; }

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed; inset: 0;
  display: none; /* toggled with .open */
  background: rgba(0,0,0,0.6);
  z-index: 1300;
  align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  max-width: 720px; width: 100%;
  box-shadow: var(--shadow);
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #12171c; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle (pure CSS look) */
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle input { appearance: none; width: 44px; height: 24px; border-radius: 20px; background: #2a323a; position: relative; outline: none; transition: var(--transition); border: 1px solid var(--metal); }
.toggle input:checked { background: var(--brand); border-color: #0b4b4b; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: var(--transition); }
.toggle input:checked::after { transform: translateX(20px); }

/* ===== Utilities ===== */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.maxw-720 { max-width: 720px; }

/* ===== Responsive ===== */
@media (min-width: 600px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .cta-group { gap: 14px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}

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

  .content-wrapper { gap: 24px; }
  .service-cards .text-section { flex: 1 1 340px; }
  .testimonial-card { flex: 1 1 340px; }
  .features-grid > h3, .features-grid > ul { flex: 1 1 340px; }
}

/* ===== Page-specific tweaks (matching provided HTML classes) ===== */
/* Index */
.hero .tagline { font-size: 16px; color: var(--muted); }

/* Seniorenkurse */
.note { color: var(--muted); font-size: 16px; }

/* Stundenplan */
.booking-widget-placeholder { display: flex; flex-direction: column; gap: 10px; }

/* Über Uns */
#anfahrt .map-placeholder { min-height: 280px; }

/* Footer copyright row */
footer .container:last-child .content-wrapper { border-top: 1px solid var(--line); padding-top: 16px; justify-content: center; align-items: center; }

/* ===== Industrial micro-accents ===== */
/* Subtle metallic bars under headings */
h2::after {
  content: '';
  display: block;
  width: 64px; height: 2px;
  background: var(--metal);
  margin-top: 8px;
}

/* ===== Accessibility & Interaction ===== */
.btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .mobile-nav a:focus-visible { box-shadow: 0 0 0 3px rgba(141,151,158,0.45); }

/* Ensure adequate spacing between all cards */
.service-cards .text-section, .testimonial-card, .features-grid > * { margin-bottom: 0; }

/* ===== Ensure no overlapping (spacing guards) ===== */
.content-wrapper > * { margin: 0; }

/* ===== Print-friendly basics for documents (light mode for testimonials already OK) ===== */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
}
