/* =============================================================================
   AUTO-TREISBACH – Shared Stylesheet
   Pure HTML/CSS/JS – No PHP, no external fonts, no CDN required
   
   Font-Faces: loaded from fonts/fonts.css (generated by download-assets.ps1)
   ============================================================================= */

/* ===== CSS Variables / Design Tokens ===== */
:root {
  --blue:        #005CA9;
  --blue-dark:   #004A87;
  --blue-light:  #0070CC;
  --yellow:      #FFD100;
  --yellow-dark: #E6BC00;
  --dark:        #2A2A2A;
  --dark-mid:    #363636;
  --gray-light:  #F5F5F7;
  --gray-border: #E0E0E0;
  --white:       #FFFFFF;
  --text:        #3A3A3A;
  --text-muted:  #6B6B6B;

  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', 'DM Sans', system-ui, sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.14);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --container:  1140px;
  --header-h:   64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }
ul { list-style: none; }

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================================
   HEADER / NAVBAR
   ============================================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--dark);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: box-shadow .3s;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  letter-spacing: .02em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
  background: rgba(255,255,255,.07);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--dark);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: var(--white);
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav a:hover { color: var(--yellow); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* =============================================================================
   HERO / TEASER with photo background
   ============================================================================= */
.hero {
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Background image wrapper for Ken Burns animation */
.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: -20px;                 /* slightly oversized for the animation */
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.04) translate(0.5%, 0.5%); }
}
/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 40, 80, 0.55) 0%,
      rgba(0, 60, 120, 0.45) 40%,
      rgba(0, 92, 169, 0.70) 100%
    );
  z-index: 1;
}
/* Decorative glows */
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,209,0,.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 24px;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3);
  animation: heroSlideUp .9s cubic-bezier(.22,1,.36,1) both;
}
.hero p {
  color: var(--yellow);
  font-size: clamp(17px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: .04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  animation: heroSlideUp .9s cubic-bezier(.22,1,.36,1) .2s both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subpage hero (no photo, just gradient) */
.hero-sub {
  min-height: 180px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.hero-sub .hero-image-wrap,
.hero-sub .hero-overlay { display: none; }
.hero-sub .hero-content { padding: 40px 24px; }

/* Mobile: slightly less height */
@media (max-width: 768px) {
  .hero { min-height: 360px; }
  .hero-content { padding: 50px 20px; }
  .hero-image { background-position: center center; }
}

/* =============================================================================
   INFO CARDS SECTION (Start page)
   ============================================================================= */
.info-section {
  background: var(--gray-light);
  padding: 0 0 48px;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 36px 24px 32px;
  transition: transform .3s, box-shadow .3s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.info-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}
.info-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.info-card .divider {
  width: 60px;
  height: 2px;
  background: var(--yellow);
  margin: 12px auto 20px;
  border-radius: 2px;
}
.info-card .card-body {
  text-align: left;
  display: inline-block;
}
.info-card .card-body p.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}
.info-card .card-body .detail-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.info-card .card-body .time-block {
  margin-bottom: 10px;
}
.info-card .card-body .time-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.info-card .card-body .time-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}
.email-link {
  color: var(--blue);
  font-weight: 500;
}
.email-link:hover { color: var(--blue-light); }

@media (max-width: 900px) {
  .info-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =============================================================================
   SERVICE SECTION
   ============================================================================= */
.service-section {
  background: var(--blue);
  padding: 56px 0 64px;
}
.service-section h2 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-column {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  gap: 2px;
}
.service-column img {
  width: 100%;
  max-width: 260px;
  transition: transform .2s;
}
.service-column img:hover { transform: scale(1.03); }

@media (max-width: 768px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   MAP SECTION
   ============================================================================= */
.map-section {
  background: var(--dark-mid);
  padding: 56px 0;
}
.map-section h2 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 360px;
}
#map { width: 100%; height: 100%; }

/* =============================================================================
   CONTENT SECTION ("Über uns", "Impressum")
   ============================================================================= */
.content-section {
  padding: 56px 0 64px;
  background: var(--white);
}
.content-section .container {
  max-width: 860px;
}
.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
}
.content-section h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-section h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}
.content-section p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--text);
}
.content-section .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}
.content-section ul.styled-list {
  margin: 12px 0 20px 20px;
  list-style: disc;
}
.content-section ul.styled-list li {
  margin-bottom: 6px;
  line-height: 1.65;
  color: var(--text);
}
.content-section .section-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--blue) 100%);
  border: none;
  margin: 40px 0;
  border-radius: 2px;
}

/* Impressum: info box */
.impressum-box {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 20px 0 32px;
  border-left: 4px solid var(--blue);
}
.impressum-box p {
  margin-bottom: 4px;
  font-size: 15px;
}
.impressum-box .company-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Datenschutz numbered headings */
.content-section .ds-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-section .ds-subheading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}
.content-section .highlight-box {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  font-weight: 500;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 28px 24px;
  font-size: 14px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--yellow);
  font-weight: 500;
  font-size: 14px;
}
.footer-links a:hover { color: var(--white); }
.footer-links .sep { color: rgba(255,255,255,.3); }

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   COOKIE CONSENT BANNER (nur für OpenStreetMap)
   ============================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 -4px 30px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cookie-banner-text {
  flex: 1;
}
.cookie-banner-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.cookie-banner-text p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
  margin: 0;
}
.cookie-banner-text a {
  color: var(--yellow);
  text-decoration: underline;
}
.cookie-banner-text a:hover {
  color: var(--white);
}
.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-consent-accept {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font-body);
}
.btn-consent-accept:hover {
  background: var(--blue-light);
}
.btn-consent-decline {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: var(--font-body);
}
.btn-consent-decline:hover {
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 14px;
  }
  .cookie-banner-buttons {
    justify-content: stretch;
  }
  .cookie-banner-buttons button {
    flex: 1;
  }
}

/* =============================================================================
   MAP CONSENT PLACEHOLDER
   ============================================================================= */
.map-placeholder {
  background: var(--gray-light);
  border: 2px dashed var(--gray-border);
  border-radius: var(--radius-md);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.map-placeholder-inner {
  padding: 40px 24px;
}
.map-placeholder-inner p {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.btn-load-map {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font-body);
}
.btn-load-map:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
