/* =====================================================
   Brezzlamav Deckenbau - Creative Artistic Style (Flex-only)
   Complete style.css for all pages
   ===================================================== */

/* ---------------------------------
   1) Reset & Base
------------------------------------ */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #B38B59; outline-offset: 2px; }

/* ---------------------------------
   2) Brand Tokens (with fallbacks)
------------------------------------ */
:root {
  --color-primary: #1F2A33; /* dark blue-grey */
  --color-secondary: #B38B59; /* warm metallic */
  --color-accent: #F4F6F8; /* soft light */
  --color-white: #FFFFFF;
  --color-ink: #0F1418; /* deep ink for strong text if needed */
  /* Artistic micro-accents to enrich the creative look (used sparingly) */
  --color-cyan: #33C2FF;
  --color-pink: #FF6F91;

  --shadow-soft: 0 6px 20px rgba(31,42,51,0.08);
  --shadow-medium: 0 10px 28px rgba(31,42,51,0.12);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
}

body {
  font-family: Arial, Helvetica, sans-serif; /* brand body */
  color: var(--color-primary);
  background: var(--color-accent);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: 'Trebuchet MS', 'Arial', sans-serif; letter-spacing: 0.2px; color: var(--color-primary); margin: 0 0 12px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
h4 { font-size: 16px; }

p { margin: 0 0 12px; }

/* Decorative heading marker for hierarchy */
h2::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  background: var(--color-secondary);
  border-radius: 4px;
  margin-top: 10px;
}

/* Links */
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--color-secondary); }

/* Lists */
ul { padding-left: 18px; margin: 0 0 12px; }
ol { padding-left: 20px; margin: 0 0 12px; }

/* Containers */
.container { max-width: 1180px; padding: 0 20px; margin: 0 auto; }

/* Spacing for sections */
main > section { margin-bottom: 60px; }

/* ---------------------------------
   3) Header & Navigation (Flex only)
------------------------------------ */
header { position: sticky; top: 0; background: var(--color-white); z-index: 900; box-shadow: 0 2px 14px rgba(31,42,51,0.06); }
header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

.logo img { height: 42px; transition: transform .25s ease; }
.logo:hover img { transform: translateY(-1px); }

.main-nav { display: none; align-items: center; gap: 14px; }
.main-nav a { padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.main-nav a:hover { background: var(--color-accent); transform: translateY(-1px); }
.main-nav a[aria-current="page"] { color: var(--color-ink); box-shadow: inset 0 -2px 0 var(--color-secondary); }

.header-cta { display: none; align-items: center; }
.header-cta a { display: flex; align-items: center; gap: 8px; background: var(--color-accent); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(31,42,51,0.08); transition: transform .15s ease, background .2s ease; }
.header-cta img { width: 18px; height: 18px; }
.header-cta a:hover { transform: translateY(-1px); background: #EAF0F4; }

/* Mobile Burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--color-primary); color: #fff; border: 0; cursor: pointer; transition: transform .15s ease, opacity .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); opacity: .9; }

/* Mobile full-screen menu */
.mobile-menu { position: fixed; inset: 0; background: var(--color-primary); color: #fff; z-index: 1000; transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #0F1418; color: #fff; border: 0; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.mobile-nav a { font-size: 18px; color: #fff; padding: 12px 10px; border-radius: 10px; transition: background .2s ease, transform .15s ease; }
.mobile-nav a:hover { background: rgba(255,255,255,0.08); transform: translateX(3px); }
.mobile-nav a.btn-primary { background: var(--color-secondary); color: var(--color-primary); text-align: center; }

/* ---------------------------------
   4) Hero (Creative Artistic)
------------------------------------ */
.hero { position: relative; background: var(--color-primary); color: #fff; padding: 60px 0; overflow: hidden; }
.hero .container { display: flex; flex-direction: column; gap: 10px; }
.hero .content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero h1 { color: #fff; font-size: 34px; }
.hero .subheadline { color: #E9D9C4; max-width: 760px; }

/* Artistic, solid color geometric accents (decorative) */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; opacity: 0.15; }
.hero::before { width: 220px; height: 220px; background: var(--color-secondary); border-radius: 24px; top: -60px; right: -40px; transform: rotate(18deg); box-shadow: var(--shadow-medium); }
.hero::after { width: 160px; height: 160px; background: var(--color-cyan); border-radius: 20px; bottom: -40px; left: -30px; transform: rotate(-12deg); box-shadow: var(--shadow-soft); }

/* Keep hero content above shapes */
.hero .content-wrapper > * { position: relative; z-index: 1; }

/* ---------------------------------
   5) Buttons & CTAs
------------------------------------ */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn-primary, .btn-secondary, .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 18px; font-weight: 700; transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; cursor: pointer; }

.btn-primary { background: var(--color-secondary); color: var(--color-primary); border: 2px solid var(--color-secondary); box-shadow: 0 10px 22px rgba(179,139,89,0.22); }
.btn-primary:hover {color: #0F1418 ;transform: translateY(-2px); box-shadow: 0 12px 28px rgba(179,139,89,0.3); }

.btn-secondary { background: transparent; color: var(--color-secondary); border: 2px solid var(--color-secondary); }
.btn-secondary:hover { background: var(--color-secondary); color: var(--color-primary); box-shadow: 0 8px 20px rgba(179,139,89,0.24); transform: translateY(-2px); }

.btn-link { background: transparent; color: #fff; padding: 8px 2px; border-radius: 0; border-bottom: 2px solid var(--color-secondary); }
.btn-link:hover { color: var(--color-secondary); }

/* Make buttons inside light sections readable */
section:not(.hero) .btn-link { color: var(--color-primary); }

/* ---------------------------------
   6) Lists, USPs, Trust Badges
------------------------------------ */
.usp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.usp-list li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 8px 12px; border-radius: 999px; }
.hero .usp-list li img { width: 16px; height: 16px; filter: brightness(200%); }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--color-primary); border: 1px solid rgba(31,42,51,0.08); border-radius: 999px; padding: 8px 12px; box-shadow: var(--shadow-soft); }
.trust-badges img { width: 16px; height: 16px; }

/* ---------------------------------
   7) Content Wrappers & Sections (Flex layouts)
------------------------------------ */
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.text-section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Artistic accent rule: subtle left border for text blocks */
.text-section p, .text-section ul, .text-section ol { background: var(--color-white); border-left: 4px solid var(--color-secondary); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-soft); color: #0F1418; }
.text-section ul { list-style: disc; padding-left: 30px; }
.text-section ol { padding-left: 24px; }

/* Strong contrast testimonial cards (light bg, dark text) */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; color: var(--color-primary); border: 1px solid #E2E8EE; border-radius: 16px; box-shadow: var(--shadow-soft); }
.testimonial-card p { margin: 0; }
.testimonial-card:hover { box-shadow: var(--shadow-medium); transform: translateY(-2px); transition: transform .15s ease, box-shadow .2s ease; }

/* Generic card & containers (for future content) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid #E2E8EE; border-radius: 16px; box-shadow: var(--shadow-soft); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }

/* Content grids & feature blocks (Flex only) */
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Section spacing utility (mandatory class) */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* ---------------------------------
   8) Footer
------------------------------------ */
footer { background: var(--color-primary); color: #fff; padding: 40px 0 20px; position: relative; overflow: hidden; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
.footer-links, .footer-legal { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a, .footer-legal a { color: #E9EEF2; padding: 6px 8px; border-radius: 8px; transition: background .2s ease, transform .15s ease; }
.footer-links a:hover, .footer-legal a:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

/* Subtle footer artistic blocks */
footer::before, footer::after { content: ""; position: absolute; opacity: .08; border-radius: 18px; }
footer::before { width: 180px; height: 180px; background: var(--color-secondary); left: -40px; bottom: -30px; transform: rotate(10deg); }
footer::after { width: 140px; height: 140px; background: var(--color-pink); right: -30px; top: -20px; transform: rotate(-14deg); }

/* ---------------------------------
   9) Buttons in nav (consistency)
------------------------------------ */
.main-nav .btn-primary { padding: 10px 14px; }

/* ---------------------------------
   10) Breadcrumbs (inside hero)
------------------------------------ */
nav[aria-label="Brotkrumen"] { display: flex; flex-wrap: wrap; gap: 6px; color: #DCE2E7; font-size: 14px; }
nav[aria-label="Brotkrumen"] a { color: #FFFFFF; opacity: .9; }
nav[aria-label="Brotkrumen"] a:hover { color: var(--color-secondary); }

/* ---------------------------------
   11) Tables (generic, if any appear)
------------------------------------ */
table { width: 100%; border-collapse: collapse; border-spacing: 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E2E8EE; }
th { background: #F9FBFC; font-weight: 700; }

/* ---------------------------------
   12) Cookie Consent Banner & Modal
------------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; color: var(--color-primary); border-top: 3px solid var(--color-secondary); box-shadow: 0 -10px 24px rgba(31,42,51,0.12); z-index: 1100; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; transform: translateY(100%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: var(--color-secondary); color: var(--color-primary); border: 2px solid var(--color-secondary); border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.cookie-actions .btn-accept:hover { box-shadow: 0 8px 20px rgba(179,139,89,0.24); transform: translateY(-1px); }
.cookie-actions .btn-reject { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.cookie-actions .btn-reject:hover { background: var(--color-primary); color: #fff; }
.cookie-actions .btn-settings { background: transparent; color: var(--color-secondary); border: 0; text-decoration: underline; padding: 10px 6px; cursor: pointer; }

/* Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(31,42,51,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 1200; padding: 20px; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .modal { background: #FFFFFF; color: var(--color-primary); width: 100%; max-width: 760px; border-radius: 16px; box-shadow: var(--shadow-medium); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--color-accent); border: 1px solid #E2E8EE; border-radius: 12px; padding: 12px; }
.cookie-category .label { font-weight: 700; }

/* Toggle switch (for analytics/marketing) */
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #CBD6DF; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform .2s ease; }
.switch.on { background: var(--color-secondary); }
.switch.on::after { transform: translateX(20px); }

.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .modal-actions .btn { padding: 10px 14px; border-radius: 10px; border: 2px solid var(--color-primary); background: transparent; color: var(--color-primary); font-weight: 700; cursor: pointer; }
.cookie-modal .modal-actions .btn.save { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-primary); }

/* ---------------------------------
   13) Accessibility helpers
------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------
   14) Media Queries (Responsive)
   Mobile-first: enhance at >=768px & >=992px
------------------------------------ */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 44px; }
  .text-image-section { flex-wrap: nowrap; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .hero h1 { font-size: 52px; }
}

/* ---------------------------------
   15) Additional Utility & Micro-interactions
------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--color-accent); border: 1px solid #E2E8EE; font-weight: 700; }
.shadow-hover { transition: box-shadow .2s ease, transform .15s ease; }
.shadow-hover:hover { box-shadow: var(--shadow-medium); transform: translateY(-2px); }

/* ---------------------------------
   16) Ensure Flex-only Layout Compliance
------------------------------------ */
/* The following classes are explicitly defined per requirements */
.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; }

/* ---------------------------------
   17) Page-specific minor tweaks
------------------------------------ */
/* Breadcrumb spacing inside each hero across pages */
.hero nav[aria-label="Brotkrumen"] { margin-top: 6px; }

/* Ratings line with star icon spacing */
img[alt="Bewertung"] { display: inline-block; vertical-align: middle; margin-right: 6px; width: 18px; height: 18px; }

/* Contact rows with icons */
.text-section img[alt^="Telefon"],
.text-section img[alt^="E-Mail"],
.text-section img[alt^="Adresse"],
.text-section img[alt^="Öffnungszeiten"],
.text-section img[alt^="Schnell"],
.text-section img[alt^="Zertifiziert"],
.text-section img[alt^="Garantie"],
.text-section img[alt^="Pünktlich"] {
  width: 18px; height: 18px;
}

/* Legal pages hero subheadline muted tint */
.hero .subheadline { opacity: .95; }

/* ---------------------------------
   18) Print basics (optional safety)
------------------------------------ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
