/* ===================================================================
   Kante & Kelle Ausbau – style.css
   Warm & friendly aesthetic: warm colors, rounded corners, friendly fonts, soft shadows
   Mobile-first, flexbox-only layouts. No CSS Grid or CSS Columns used.
   =================================================================== */

/* -----------------------------
   CSS RESET & BASELINE
----------------------------- */
* { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { padding-left: 1.25rem; }
html { -webkit-text-size-adjust: 100%; }
img, picture { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
input, button, textarea, select { font: inherit; }

/* -----------------------------
   DESIGN TOKENS (CSS Vars with fallbacks)
----------------------------- */
:root {
  --color-primary: #1F2937; /* Slate/Dark */
  --color-secondary: #C16A3D; /* Terracotta */
  --color-accent: #F4EFE6; /* Warm ivory */
  --color-bg: #FFFBF6; /* soft warm page background */
  --color-surface: #FFFFFF;
  --color-muted: #6B7280; /* neutral gray text */
  --color-border: #E8E1D6; /* warm light border */
  --color-success: #2F855A;
  --color-danger: #C53030;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(31,41,55,0.06);
  --shadow-md: 0 8px 24px rgba(31,41,55,0.10);
  --shadow-lg: 0 14px 40px rgba(31,41,55,0.14);

  --font-display: "Trebuchet MS", Tahoma, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;
}

/* -----------------------------
   BASE TYPOGRAPHY & BODY
----------------------------- */
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }

p { font-size: 16px; margin-bottom: 12px; color: var(--color-primary); }
small, .muted { color: var(--color-muted); }

strong { font-weight: 700; }
em { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--color-border); margin: 24px 0; }

/* Links */
a { color: var(--color-secondary); transition: color 0.2s ease, background-color 0.2s ease; }
a:hover { color: #A8562F; }
a:focus { outline: 3px solid rgba(193,106,61,0.35); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Images */
img { border-radius: var(--radius-sm); }

/* Lists */
ul, ol { display: flex; flex-direction: column; gap: 8px; }
li { padding-left: 2px; }

/* Containers & Layout Helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px; /* Default gap for internal blocks */
}

/* Apply consistent spacing to top-level sections in main */
main section { margin-bottom: 60px; padding: 40px 0; }

/* MANDATORY SPACING & ALIGNMENT PATTERNS (as required) */
.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; }

/* Card default styling */
.card, .testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* -----------------------------
   HEADER & NAVIGATION
----------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFFCC; /* subtle translucency */
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

header .container { padding-top: 10px; padding-bottom: 10px; }

header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo img { height: 42px; width: auto; border-radius: 0; }

.main-nav {
  display: none; /* mobile-first */
  align-items: center;
  gap: 14px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-weight: 600;
}
.main-nav a:hover { background: var(--color-accent); }

.header-cta {
  display: none; /* mobile-first, show later */
  align-items: center;
  gap: 10px;
}
.header-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.header-cta a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #B35F35; }
.header-cta a:last-child { background: #fff; color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.header-cta a:last-child:hover { background: var(--color-accent); }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.mobile-menu-toggle:hover { background: #B35F35; }

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: auto;
  width: 88%; max-width: 360px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-menu-close:hover { background: #EDE5D9; }

.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-weight: 600;
}
.mobile-nav a:hover { background: var(--color-accent); }

/* Optional page overlay when menu is open */
body.menu-open { overflow: hidden; }

/* -----------------------------
   HERO SECTIONS
----------------------------- */
.hero { background: var(--color-accent); border-bottom: 1px solid var(--color-border); }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero .content-wrapper { gap: 14px; }
.hero p { color: #374151; max-width: 72ch; }
.hero .content-wrapper > div { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .content-wrapper > div a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 999px;
  background: var(--color-secondary); color: #fff; font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.hero .content-wrapper > div a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #B35F35; }
.hero .content-wrapper > div a:nth-child(2) { background: #fff; color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.hero .content-wrapper > div a:nth-child(2):hover { background: var(--color-accent); }

/* -----------------------------
   TEXT BLOCKS & GENERAL SECTIONS
----------------------------- */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section a {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; padding: 10px 14px;
  border-radius: 999px; border: 1px solid var(--color-secondary);
  color: var(--color-secondary); background: #fff; font-weight: 700;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.text-section a:hover { background: var(--color-accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* Feature list items */
.feature-item h3 { margin-bottom: 2px; }

/* Content grid helper (flex-only) */
.content-grid > * {
  flex: 1 1 280px;
  min-width: 260px;
}

/* Text-image split section */
.text-image-section > * { flex: 1 1 320px; }

/* -----------------------------
   TESTIMONIALS – readable, warm cards
----------------------------- */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  color: var(--color-primary); /* dark text on light bg for readability */
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--color-primary); }

/* -----------------------------
   FOOTER
----------------------------- */
footer { background: var(--color-primary); color: #FDF7F0; padding-top: 10px; }
footer a { color: #F8E5D7; }
footer a:hover { color: #bb5a26; text-decoration: underline; }
footer .content-wrapper { gap: 24px; }
footer .text-section { max-width: 760px; }
footer section { padding: 30px 0; margin-bottom: 0; }

/* -----------------------------
   BUTTON UTILITIES (optional if needed)
----------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 999px; font-weight: 700; }
.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { background: #B35F35; }
.btn-outline { border: 1px solid var(--color-secondary); color: var(--color-secondary); background: #fff; }
.btn-outline:hover { background: var(--color-accent); }

/* -----------------------------
   FORMS (generic base if forms are added later)
----------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 4px rgba(193,106,61,0.15); outline: none; }
label { display: block; margin-bottom: 6px; font-weight: 700; }

/* -----------------------------
   RESPONSIVE NAV + LAYOUT
----------------------------- */
@media (min-width: 769px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
}

@media (min-width: 992px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  p { font-size: 17px; }

  /* section layout breathing room */
  main section { padding: 50px 0; }

  /* Header tighten spacing */
  header .container { padding-top: 12px; padding-bottom: 12px; }
}

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

/* -----------------------------
   COOKIE CONSENT – Banner & Modal
----------------------------- */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 16px;
  z-index: 1400;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-title { font-weight: 700; font-family: var(--font-display); font-size: 18px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .cookie-actions .btn-accept { background: var(--color-secondary); color: #fff; padding: 10px 14px; border-radius: 999px; }
.cookie-banner .cookie-actions .btn-accept:hover { background: #B35F35; }
.cookie-banner .cookie-actions .btn-reject { background: #fff; color: var(--color-secondary); border: 1px solid var(--color-secondary); padding: 10px 14px; border-radius: 999px; }
.cookie-banner .cookie-actions .btn-reject:hover { background: var(--color-accent); }
.cookie-banner .cookie-actions .btn-settings { background: var(--color-accent); color: var(--color-primary); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--color-border); }
.cookie-banner .cookie-actions .btn-settings:hover { background: #EDE5D9; }

/* Cookie modal overlay */
.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(31,41,55,0.5);
  display: none; /* toggled via .open */
  align-items: center; justify-content: center;
  z-index: 1500;
}
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content {
  width: 92%; max-width: 720px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-accent); }
.cookie-modal .modal-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .btn-save { background: var(--color-secondary); color: #fff; padding: 10px 14px; border-radius: 999px; }
.cookie-modal .btn-cancel { background: #fff; color: var(--color-secondary); border: 1px solid var(--color-secondary); padding: 10px 14px; border-radius: 999px; }

/* Toggle switch */
.toggle { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #E5E7EB; transition: background-color 0.2s ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.toggle.on { background: rgba(193,106,61,0.5); }
.toggle.on::after { transform: translateX(20px); }

/* -----------------------------
   UTILITIES
----------------------------- */
.hide { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }

/* Spacing scale utilities */
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; } .mb-30 { margin-bottom: 30px; }

/* -----------------------------
   PAGE-SPECIFIC MINOR REFINEMENTS
----------------------------- */
/* Index/landing: highlight sections gently */
main section:nth-of-type(odd) { background: transparent; }

/* Contact icons align nicely */
.text-section img[alt^="Telefon"],
.text-section img[alt^="E-Mail"],
.text-section img[alt^="Telefon:"],
.text-section img[alt^="E-Mail:"] {
  display: inline-block; vertical-align: middle; margin-right: 8px; border-radius: 0;
}

/* Links in long legal pages readable spacing */
.text-section h2 { margin-top: 8px; }
.text-section h2 + p, .text-section h2 + ul { margin-top: 2px; }

/* -----------------------------
   ACCESSIBILITY & FOCUS STATES
----------------------------- */
:focus-visible { outline: 3px solid rgba(193,106,61,0.35); outline-offset: 2px; border-radius: var(--radius-sm); }

/* -----------------------------
   HOVER/ACTIVE MICRO-ANIMATIONS
----------------------------- */
*[data-hover-lift] { transition: transform 0.15s ease, box-shadow 0.2s ease; }
*[data-hover-lift]:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* -----------------------------
   FLEXBOX-ONLY GUARANTEE (helpers used throughout)
----------------------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* End of style.css */
