﻿/* =========================================================
   BWA – Bähr Werkstattausrüstungen  |  Modern Website CSS
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* Anthrazit + BWA-Rot */
  --primary:       #1e2124;   /* Anthrazit – Header, Footer, Hero           */
  --primary-mid:   #2a2d31;   /* Etwas heller – Hero-Gradient               */
  --primary-light: #3d4147;   /* Aufgehelltes Anthrazit                     */
  --accent:        #d41515;   /* Leuchtendes Logo-Rot – Buttons & Akzente   */
  --accent-hover:  #a80f0f;   /* Tieferes Rot beim Hover                    */
  --accent-light:  #fff0f0;   /* Helles Rotblush für Hintergründe           */
  --text:          #1a1a1a;
  --text-mid:      #374151;
  --text-light:    #6b7280;
  --bg:            #f4f6f9;
  --surface:       #ffffff;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.10);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --radius:        10px;
  --radius-lg:     18px;
  --nav-h:         72px;
  --max-w:         1200px;
  --transition:    .22s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section--gray { background: var(--bg); }
.section--white { background: var(--surface); }
.section--dark  { background: var(--primary); color: #fff; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section--dark .section-header h2 { color: #fff; }
.section--dark .section-header p  { color: rgba(255,255,255,.75); }

.accent-line {
  display: block;
  width: 52px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .75rem auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.site-logo__img {
  height: 44px;
  width: auto;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.site-logo__name {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
}
.site-logo__sub {
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Main nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  padding: .5rem .85rem;
  border-radius: 6px;
  font-size: .93rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    gap: .25rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    padding: .75rem 1rem;
    font-size: 1rem;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 55%, #1a4066 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M54 6L6 54' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(224,92,4,.25);
  color: #ffb380;
  border: 1px solid rgba(224,92,4,.5);
  padding: .3rem .85rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
}
.hero__title span { color: var(--accent); }
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__photo {
  width: 220px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,.15);
  object-fit: cover;
}
@media (max-width: 700px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { display: none; }
}

/* =========================================================
   ABOUT / TIMELINE
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

.about-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 360px;
}

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary-light));
  border-radius: 1px;
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: .45rem;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.timeline-text { font-size: .93rem; color: var(--text-mid); }

/* Services list */
.services-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.25rem;
}
.services-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text-mid);
}
.services-list li::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: .55rem;
  flex-shrink: 0;
}

/* =========================================================
   PRODUCT CATEGORY CARDS
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  border: 1.5px solid var(--border);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.product-card__icon {
  width: 64px; height: 64px;
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-card__icon svg { width: 32px; height: 32px; }
.product-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.product-card__text {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
}
.product-card__arrow {
  margin-top: auto;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* =========================================================
   BRANDS LOGOS
   ========================================================= */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.brand-badge {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .65rem 1.4rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary-mid);
  letter-spacing: .02em;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.brand-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* =========================================================
   CONTACT CTA STRIP
   ========================================================= */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; font-size: 2rem; margin-bottom: .5rem; }
.cta-strip p  { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }

/* CTA strip with left/right layout (inner pages) */
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}
.cta-strip__inner h2 { font-size: 1.7rem; margin-bottom: .35rem; }
.cta-strip__inner p  { margin-bottom: 0; }
.cta-strip__btn-wrap { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 640px) {
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .cta-strip__btn-wrap { justify-content: center; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 22px; height: 22px; color: var(--accent); }
.contact-item__label { font-size: .8rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-item__value { font-size: 1rem; color: var(--text); font-weight: 500; }
.contact-item__value a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}
.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45,90,142,.12);
  background: var(--surface);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 3.5rem 0;
  color: #fff;
}
.page-hero__breadcrumb {
  font-size: .83rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb span { color: rgba(255,255,255,.85); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
}
.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-top: .5rem;
  max-width: 600px;
}

/* =========================================================
   PRODUCT DETAIL GRID
   ========================================================= */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.model-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.model-card__img-wrap {
  background: #f0f4f8;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.model-card__img-wrap img {
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto;
}
.model-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.model-card__brand {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.model-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.model-card__desc {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
}
.model-card__footer {
  border-top: 1px solid var(--border);
  padding: .85rem 1.25rem;
  font-size: .85rem;
}
.model-card__footer a {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.model-card__footer a:hover { text-decoration: underline; }

/* Simple model-card variant: direct content without __img-wrap/__body */
.model-card__spec {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem 1.25rem 0;
}
.model-card__features {
  list-style: none;
  padding: .5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.model-card__features li {
  font-size: .85rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}
.model-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}
/* Direct children (emoji icon, h3, p) when no __img-wrap/__body is used */
.model-card > :not(.model-card__img-wrap):not(.model-card__body):not(.model-card__footer):not(.model-card__spec):not(.model-card__features):not(.btn):not(.tag):first-child {
  padding: 1.25rem 1.25rem 0;
}
.model-card > h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding: .75rem 1.25rem .15rem;
}
.model-card > p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.55;
  padding: .25rem 1.25rem;
  flex: 1;
}
.model-card > .btn {
  margin: auto 1.25rem 1.25rem;
}

/* Cert card text content */
.cert-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: .75rem 1rem .2rem;
}
.cert-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
  padding: 0 1rem .75rem;
}

/* =========================================================
   CERTIFICATE GRID
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cert-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fff;
  padding: .5rem;
}
.cert-card__caption {
  padding: .75rem 1rem;
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
}
.cert-download {
  margin-top: 2rem;
  text-align: center;
}
.cert-card--pdf {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cert-card--pdf:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cert-card__pdf-icon {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff5f5;
}
.cert-card__pdf-hint {
  font-style: italic;
  color: #e53e3e;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
#lb-overlay.lb-open {
  display: flex;
}
#lb-img {
  max-width: min(90vw, 860px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  background: #fff;
}
#lb-caption {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 600;
  margin-top: .75rem;
  text-align: center;
}
#lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .5rem;
  opacity: .8;
  transition: opacity .15s;
}
#lb-close:hover,
#lb-close:focus {
  opacity: 1;
  outline: 2px solid rgba(255,255,255,.5);
  border-radius: 4px;
}


.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand__logo { height: 44px; margin-bottom: .75rem; }
.footer-brand__name { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.footer-brand__text { font-size: .87rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  margin-bottom: .4rem;
}
.footer-contact-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.footer-contact-link a { color: rgba(255,255,255,.8); }
.footer-contact-link a:hover { color: #fff; }

.footer-nav h4 {
  color: #fff;
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: .03em;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav ul li a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-nav ul li a:hover { color: #fff; }

.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .82rem; }
.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-legal a:hover { color: #fff; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 900;
}
#backToTop.show { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--accent-hover); }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: .5rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-mid);
  margin-top: 1.25rem;
  margin-bottom: .35rem;
}
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-content p, .legal-content li {
  font-size: .95rem;
  color: var(--text-mid);
  margin-bottom: .5rem;
  line-height: 1.65;
}
.legal-content ul { padding-left: 1.5rem; list-style: disc; }

/* =========================================================
   MISC
   ========================================================= */
.info-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: .93rem;
  color: #7c5a00;
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .35s ease;
}
#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  font-size: .88rem;
  line-height: 1.55;
  color: #e5e7eb;
  margin: 0;
}
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.cookie-btn--secondary {
  background: transparent;
  color: #fff;
  border-color: #e5e7eb;
}
.cookie-btn--secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}
