/* ===========================================================
   Fläche & Fuge Ausbau – style.css
   Design: monochrome_sophisticated (black/white/gray, high contrast)
   Layout: Mobile-first, ONLY Flexbox (no CSS Grid/Columns)
   Fonts: Trebuchet MS (display), Verdana (body)
   =========================================================== */

/* ------------------------------
   CSS Reset / Normalize (light)
   ------------------------------ */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #111; background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
p { margin: 0 0 1rem 0; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #D97706; outline-offset: 2px; }

/* ------------------------------
   Color system (monochrome + brand)
   ------------------------------ */
:root {
  --c-bg: #FFFFFF;
  --c-bg-weak: #F7F7F8; /* very light gray */
  --c-bg-soft: #F3F4F6; /* brand accent light gray */
  --c-text: #111111; /* near black */
  --c-text-muted: #4B5563; /* slate */
  --c-primary: #1F2937; /* brand primary slate-800 */
  --c-primary-strong: #0B0E12; /* deeper blackish */
  --c-border: #E5E7EB; /* subtle border */
  --c-accent: #D97706; /* brand secondary – used sparingly for focus/indicators */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
}

/* ------------------------------
   Typography scale
   ------------------------------ */
.h1, h1 { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: 700; font-size: 32px; line-height: 1.2; margin: 0 0 16px; letter-spacing: 0.2px; }
.h2, h2 { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0 0 16px; letter-spacing: 0.2px; }
.h3, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0 0 10px; letter-spacing: 0.2px; }
.h4, h4 { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3; margin: 0 0 8px; letter-spacing: 0.2px; }
small, .small { font-size: 14px; color: var(--c-text-muted); }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: 0.14em; color: var(--c-text-muted); margin-bottom: 10px; }

/* ------------------------------
   Global containers & sections
   ------------------------------ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
section { padding: 40px 0; }

/* Mandatory spacing and 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 { position: sticky; top: 0; z-index: 50; background: var(--c-bg); border-bottom: 1px solid var(--c-border); backdrop-filter: saturate(180%) blur(6px); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 40px; width: auto; }
.primary-nav { display: none; align-items: center; gap: 16px; }
.primary-nav a { color: var(--c-text); padding: 10px 8px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.primary-nav a:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* CTA button in header */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-primary); color: var(--c-primary); background: transparent; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; text-align: center; }
.button:hover { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--c-primary-strong); color: #fff; border-color: var(--c-primary-strong); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; }
.button-primary:hover { background: #0E1116; color: #fff; }
.link-secondary { color: var(--c-text); border-bottom: 1px solid var(--c-text); padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.link-secondary:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* Mobile menu controls */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-bg-soft); color: var(--c-text); border: 1px solid var(--c-border); transition: background .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: #EDEEEF; transform: translateY(-1px); }
.mobile-menu {display: none; position: fixed; inset: 0 0 0 auto; width: 86%; max-width: 360px; background: #0B0E12; color: #fff; transform: translateX(100%); transition: transform .3s ease;   flex-direction: column; gap: 10px; padding: 20px; z-index: 60; box-shadow: -10px 0 30px rgba(0,0,0,0.25); }
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.12); }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; border-radius: 6px; color: #E5E7EB; transition: background .2s ease, color .2s ease; }
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* Optional backdrop for mobile menu (if toggled by JS) */
.mobile-menu-backdrop {display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 55; }
.mobile-menu-backdrop.open, .mobile-menu-backdrop.active { opacity: 1; pointer-events: auto; }

/* ------------------------------
   Hero section (dramatic contrast)
   ------------------------------ */
.hero { background: var(--c-primary-strong); color: #fff; position: relative; }
.hero .container { padding-top: 30px; padding-bottom: 30px; }
.hero h1 { color: #fff; }
.hero p { color: #E5E7EB; }
.usp { display: flex; flex-direction: column; gap: 8px; padding-left: 1.1rem; color: #F3F4F6; }
.usp li { margin-left: 0; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact-snippet, .trust-badges { display: flex; flex-direction: column; gap: 6px; color: #E5E7EB; }
.contact-snippet img, .trust-badges img { display: inline-block; vertical-align: middle; width: 16px; height: 16px; }

/* ------------------------------
   Content sections & cards
   ------------------------------ */
.text-section {   border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.text-section:hover { box-shadow: var(--shadow-md); }

.feature-grid, .service-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid .text-section, .service-cards .text-section { flex: 1 1 280px; }

.steps { display: flex; flex-direction: column; gap: 10px; padding-left: 1.4rem; }
.steps li { margin-bottom: 6px; }

/* Testimonials: light background, dark text for readability */
.testimonial-card { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-md); color: var(--c-text); box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; }

/* Lists inside various sections */
ul li { margin-bottom: 6px; }
ol li { margin-bottom: 6px; }

/* Privacy note */
.privacy-note { font-size: 14px; color: var(--c-text-muted); }
.privacy-note a { color: var(--c-text); border-bottom: 1px solid var(--c-text); }

/* ------------------------------
   Footer (inverted)
   ------------------------------ */
footer { background: #0B0E12; color: #E5E7EB; margin-top: 20px; }
footer section { padding: 40px 0; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.footer-nav, .legal-nav { display: flex; flex-direction: column; gap: 8px; }
footer a { color: #E5E7EB; transition: color .2s ease; }
footer a:hover { color: #ffffff; }
footer .container:last-child { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; padding-bottom: 20px; }

/* ------------------------------
   Buttons & interactive states
   ------------------------------ */
.button:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.button:disabled { opacity: .6; cursor: not-allowed; }

/* ------------------------------
   Cookie Consent Banner & Modal
   ------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #0B0E12; color: #F3F4F6; border-top: 1px solid rgba(255,255,255,0.12); z-index: 80; transform: translateY(110%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-accept { background: #ffffff; color: #0B0E12; border: 1px solid #ffffff; border-radius: var(--radius-sm); padding: 10px 14px; }
.btn-accept:hover { background: #EDEEEF; }
.btn-reject { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-sm); padding: 10px 14px; }
.btn-reject:hover { border-color: #ffffff; }
.btn-settings { background: transparent; color: #ffffff; border-bottom: 1px solid rgba(255,255,255,0.5); padding: 8px 6px; }
.btn-settings:hover { border-bottom-color: #ffffff; }

.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 90; }
.cookie-overlay.show { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; right: 0; top: 0; height: 100%; width: 92%; max-width: 520px; background: #fff; color: var(--c-text); border-left: 1px solid var(--c-border); transform: translateX(100%); transition: transform .35s ease; z-index: 95; display: flex; flex-direction: column; }
.cookie-modal.show { transform: translateX(0); }
.cookie-modal header { padding: 16px 20px; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .content { padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }

/* Toggle switch for cookie categories */
.toggle { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #D1D5DB; transition: background .2s ease; flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.15); transition: transform .2s ease; }
.toggle.on { background: #111; }
.toggle.on::after { transform: translateX(18px); }
.cookie-modal .actions { padding: 16px 20px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------
   Utility & layout helpers
   ------------------------------ */
.muted { color: var(--c-text-muted); }
.center { text-align: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }

/* ------------------------------
   Responsive (mobile-first)
   ------------------------------ */
@media (min-width: 600px) {
  .h1, h1 { font-size: 36px; }
  .h2, h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero .container { padding-top: 50px; padding-bottom: 50px; }
  .content-wrapper { gap: 24px; }
}

@media (min-width: 992px) {
  .primary-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .container { gap: 24px; }
  .h1, h1 { font-size: 48px; }
  .h2, h2 { font-size: 32px; }
  .h3, h3 { font-size: 20px; }
  .feature-grid .text-section, .service-cards .text-section { flex: 1 1 340px; }
  footer .content-wrapper { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
  .footer-nav, .legal-nav { min-width: 220px; }
}

/* ------------------------------
   Page-specific light tweaks
   ------------------------------ */
/* Index */
.hero .link-secondary { color: #fff; border-color: #fff; }
.hero .link-secondary:hover { color: #F3F4F6; border-color: #F3F4F6; }

/* Preis-, Referenzen-, etc.: keep consistent look */

/* ------------------------------
   Cards (generic) – professional feel
   ------------------------------ */
.card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .25s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ------------------------------
   Forms / inputs (for future use)
   ------------------------------ */
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); }
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); outline: 2px solid rgba(31,41,55,0.15); }

/* ------------------------------
   Icons within text lines
   ------------------------------ */
.text-section img[alt^="Telefon"], .text-section img[alt^="E-Mail"], .text-section img[alt^="E-Mail"], .contact-snippet img, .trust-badges img { display: inline-block; margin-right: 6px; }

/* ------------------------------
   Safety: prevent overlaps with spacing
   ------------------------------ */
section + section { margin-top: 10px; }
.text-section + .text-section, .testimonial-card + .testimonial-card { margin-top: 10px; }

/* ------------------------------
   Animations – reduce motion support
   ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
