/* ===================================================================
   Seefeuer Yachtclub — style.css
   Design: geometric_structured (geometric shapes, structured layouts,
   angular accents, precise spacing)
   Constraints: Mobile-first, ONLY Flexbox, no CSS Grid/Columns
   Brand: Primary #0B2C48 (marine), Secondary #7A5A00 (gold), Accent #F5F2E9
   Fonts: Display Georgia, Body Arial
   =================================================================== */

/* ------------------------------
   0) RESET & ROOT
   ------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 16px 24px; padding: 0; }
li { margin-bottom: 8px; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:root {
  --clr-primary: #0B2C48;
  --clr-secondary: #7A5A00;
  --clr-accent: #F5F2E9;
  --clr-white: #FFFFFF;
  --clr-ink: #0A2236; /* deep ink for text */
  --clr-muted: #6C7A86; /* muted text */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
  --maxw: 1200px;
}

/* ------------------------------
   1) BASE TYPOGRAPHY
   ------------------------------ */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--clr-accent);
  color: var(--clr-ink);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--clr-primary); margin: 0 0 12px 0; line-height: 1.2; }
h1 { font-size: 40px; letter-spacing: 0.5px; }
h2 { font-size: 28px; letter-spacing: 0.3px; }
h3 { font-size: 20px; letter-spacing: 0.2px; }

p { margin: 0 0 16px 0; }
small { font-size: 12px; color: var(--clr-muted); }

.subheadline { color: var(--clr-white); opacity: 0.92; font-size: 18px; max-width: 60ch; }

a { color: var(--clr-primary); text-decoration: none; border-bottom: 2px solid rgba(11,44,72,0.15); transition: color 200ms ease, border-color 200ms ease; }
a:hover { color: var(--clr-secondary); border-color: rgba(122,90,0,0.4); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }

address { font-style: normal; color: var(--clr-ink); }

/* Structured list look */
ul li, ol li { position: relative; }

/* ------------------------------
   2) LAYOUT WRAPPERS (FLEX ONLY)
   ------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: flex;           /* Flex-only wrapper */
  flex-direction: column;  /* stack by default */
  gap: var(--space-20);
}

.content-wrapper {
  display: flex;           /* Flex-only content container */
  flex-direction: column;
  gap: var(--space-20);
}

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

/* Also apply margin/padding to native sections to maintain breathing room */
main > section { margin-bottom: var(--space-60); }

/* ------------------------------
   3) HEADER & NAV
   ------------------------------ */
header {
  background: var(--clr-white);
  border-bottom: 3px solid rgba(11,44,72,0.12);
  position: relative;
  z-index: 20;
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); }

.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--space-20); }
.main-nav a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 13px;
  color: var(--clr-primary);
  padding: 10px 4px;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--clr-secondary); color: var(--clr-primary); }

.header-ctas { display: none; align-items: center; gap: var(--space-12); }
.header-ctas a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  border-radius: var(--radius-sm);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.header-ctas a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 6px;
  border: 2px solid var(--clr-primary);
  background: var(--clr-white);
  color: var(--clr-primary);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.mobile-menu-toggle:hover { background: var(--clr-primary); color: var(--clr-white); transform: translateY(-1px); }

/* ------------------------------
   4) MOBILE MENU OVERLAY (Flex-only)
   ------------------------------ */
.mobile-menu {
  position: fixed; inset: 0; /* top/right/bottom/left: 0 */
  background: var(--clr-primary);
  color: var(--clr-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 260ms ease;
  display: flex; flex-direction: column; gap: var(--space-20);
  padding: var(--space-20);
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 6px;
  border: 2px solid var(--clr-white);
  background: transparent; color: var(--clr-white);
  cursor: pointer;
}

.mobile-nav { display: flex; flex-direction: column; gap: var(--space-16); margin-top: 40px; }
.mobile-nav a {
  color: var(--clr-white);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 8px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.mobile-nav a:hover { color: var(--clr-accent); border-color: rgba(245,242,233,0.4); }

/* ------------------------------
   5) HERO SECTIONS
   ------------------------------ */
.hero {
  background: var(--clr-primary);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}
.hero .container { padding-top: var(--space-40); padding-bottom: var(--space-40); }
.hero .content-wrapper { gap: var(--space-20); }
.hero h1 { color: var(--clr-white); }

/* geometric angle accent */
.hero::before {
  content: "";
  position: absolute; right: -10%; top: -60px; width: 60%; height: 160px;
  background: rgba(122,90,0,0.25);
  transform: skewY(-6deg);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; left: -15%; bottom: -80px; width: 70%; height: 140px;
  background: rgba(245,242,233,0.18);
  transform: skewY(8deg);
  pointer-events: none;
}

.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.cta-group a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.cta-group a:first-child { background: var(--clr-secondary); color: var(--clr-white); border: 2px solid var(--clr-secondary); }
.cta-group a:first-child:hover { background: transparent; color: var(--clr-secondary); }
.cta-group a:last-child { background: transparent; color: var(--clr-white); border: 2px solid var(--clr-white); }
.cta-group a:last-child:hover { background: var(--clr-white); color: var(--clr-primary); }

/* Trust badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: var(--space-12); list-style: none; margin: 0; }
.trust-badges li {
  display: flex; align-items: center; gap: 10px;
  color: var(--clr-white);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 10px 12px; border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.trust-badges img { width: 18px; height: 18px; }

/* ------------------------------
   6) GENERIC CONTENT SECTIONS
   ------------------------------ */
.text-section { display: flex; flex-direction: column; gap: var(--space-20); }
.text-section > div {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--clr-white);
  border: 2px solid rgba(11,44,72,0.12);
  border-radius: var(--radius-sm);
  padding: var(--space-16);
  box-shadow: var(--shadow-sm);
}
.text-section > p, .text-section > ul, .text-section > ol, .text-section > address { background: transparent; border: 0; padding: 0; box-shadow: none; }

.text-section ul, .text-section ol { margin-left: 18px; }
.text-section li img { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }

.stats p { color: var(--clr-muted); font-weight: 600; }

/* Cards (for optional use) */
.card {
  background: var(--clr-white);
  border: 2px solid rgba(11,44,72,0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: var(--space-20);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Testimonials: light background for high contrast */
.testimonial-card {
  background: var(--clr-white);
  border: 2px solid rgba(11,44,72,0.12);
  border-left: 6px solid var(--clr-secondary);
  border-radius: var(--radius-sm);
  color: var(--clr-ink);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px; /* min spacing rule */
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--clr-primary); margin-top: 6px; }

/* ------------------------------
   7) FOOTER
   ------------------------------ */
footer {
  background: var(--clr-primary);
  color: var(--clr-accent);
  padding: var(--space-40) 0;
  border-top: 4px solid rgba(122,90,0,0.35);
}
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: var(--space-24); }
footer h3 { color: var(--clr-accent); font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
footer nav a { color: var(--clr-accent); border-bottom-color: rgba(245,242,233,0.2); }
footer nav a:hover { color: var(--clr-white); border-bottom-color: rgba(255,255,255,0.5); }
footer address a { color: var(--clr-accent); }
footer small { color: rgba(245,242,233,0.8); }
footer address, footer a {color:white !important;}

/* ------------------------------
   8) ACCESSIBLE BUTTON-LINK VARIANTS
   ------------------------------ */
.button, .btn, .link-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800;
  border: 2px solid var(--clr-primary); color: var(--clr-primary); background: var(--clr-white);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button:hover, .btn:hover, .link-button:hover { background: var(--clr-primary); color: var(--clr-white); transform: translateY(-2px); }

/* ------------------------------
   9) ANGULAR DIVIDERS (optional utility)
   ------------------------------ */
.divider {
  height: 2px; width: 100%; background: linear-gradient(90deg, var(--clr-secondary), transparent);
}

/* ------------------------------
   10) RESPONSIVE FLEX RULES
   ------------------------------ */
/* All layout containers already flex. Enhance on larger screens. */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .text-section { flex-direction: row; flex-wrap: wrap; }
  .text-section > div { flex: 1 1 260px; }
  .trust-badges ul { gap: var(--space-16); }
}

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

  .container { flex-direction: column; }
  header .container { flex-direction: row; }

  .hero .container { padding-top: var(--space-60); padding-bottom: var(--space-60); }

  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ------------------------------
   11) FORMS (basic reset for email links etc.)
   ------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 2px solid rgba(11,44,72,0.2); background: var(--clr-white);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--clr-secondary); border-color: var(--clr-secondary); }

/* ------------------------------
   12) COOKIE CONSENT (banner + modal)
   ------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  z-index: 998;
  display: flex; flex-direction: column; gap: var(--space-16);
  padding: var(--space-16) var(--space-20);
  transform: translateY(100%);
  transition: transform 260ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-banner .cookie-buttons { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.cookie-banner button, .cookie-banner a.button-like {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  padding: 10px 14px; border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; font-size: 13px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.cookie-accept { background: var(--clr-secondary); color: var(--clr-white); border: 2px solid var(--clr-secondary); }
.cookie-accept:hover { background: transparent; color: var(--clr-secondary); }
.cookie-reject { background: transparent; color: var(--clr-white); border: 2px solid var(--clr-white); }
.cookie-reject:hover { background: var(--clr-white); color: var(--clr-primary); }
.cookie-settings { background: transparent; color: var(--clr-accent); border: 2px dashed rgba(245,242,233,0.7); }
.cookie-settings:hover { background: rgba(245,242,233,0.1); color: var(--clr-white); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(11,44,72,0.65);
  display: none; /* toggled by .open */
  align-items: center; justify-content: center;
  padding: var(--space-20);
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content {
  background: var(--clr-white);
  color: var(--clr-ink);
  width: 100%; max-width: 680px;
  border: 3px solid rgba(11,44,72,0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--space-20);
  padding: var(--space-20);
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: var(--space-16); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 12px; border: 2px solid rgba(11,44,72,0.1); border-radius: var(--radius-sm); }
.cookie-category .label { font-weight: 700; color: var(--clr-primary); }
.cookie-category .desc { color: var(--clr-muted); font-size: 14px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: flex-end; }

/* Simple toggle style */
.switch { position: relative; width: 48px; height: 28px; border: 2px solid rgba(11,44,72,0.25); border-radius: 20px; background: #e9eef2; display: inline-flex; align-items: center; padding: 2px; }
.switch .knob { width: 22px; height: 22px; background: var(--clr-primary); border-radius: 50%; transform: translateX(0); transition: transform 180ms ease, background-color 180ms ease; }
.switch.on { background: rgba(122,90,0,0.2); border-color: var(--clr-secondary); }
.switch.on .knob { background: var(--clr-secondary); transform: translateX(20px); }
.switch.disabled { opacity: 0.6; }

/* ------------------------------
   13) UTILITIES
   ------------------------------ */
.hide { display: none !important; }
.muted { color: var(--clr-muted); }
.center { text-align: center; }

/* Ensure minimum spacing between all content blocks */
.content-wrapper > * + * { margin-top: 0; }

/* ------------------------------
   14) PAGE-SPECIFIC FINESSE
   ------------------------------ */
/* Highlighted inline strong on brand */
strong { color: var(--clr-primary); }

/* Inline icons inside li on contact sections */
.text-section li img { display: inline-block; margin-right: 8px; vertical-align: -3px; }

/* Footer last row alignment */
footer .content-wrapper > div:last-child { flex-basis: 100%; }

/* ------------------------------
   15) CONTRAST & ACCESSIBILITY NOTES
   ------------------------------ */
/* Testimonials explicitly dark-on-light to satisfy requirement */
/* Links get clear focus styles above */

/* ------------------------------
   16) NO GRID/COLUMNS SAFEGUARD
   ------------------------------ */
/* Intentionally no display:grid, grid-*, or columns properties used */

/* ------------------------------
   17) DESKTOP POLISH
   ------------------------------ */
@media (min-width: 1200px) {
  .container { padding-left: 24px; padding-right: 24px; }
}
