/* ============================================
   style.css – Technische Instandhaltung Arne Koch
   Design-Standards: Mobile First, DSGVO-konform
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --primary:       #00427f;
  --primary-dark:  #002c55;
  --primary-light: #2d6ba8;
  --accent-color:  #00427f;
  --bg-color:      #c4caca;
  --bg-color-alt:  #d7dddd;
  --surface:       #ffffff;
  --text-color:    #000000;
  --text-muted:    #4e585f;
  --border-color:  #aeb7b7;
  --link-color:    #000000;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;

  --container-max: 1100px;
  --header-height: 84px;
  --topbar-height: 38px;
  --border-radius: 18px;
  --shadow:        0 16px 42px rgba(22, 32, 28, .10);
  --shadow-hover:  0 4px 16px rgba(0, 0, 0, .12);

  --transition-fast:  0.15s ease;
  --transition-normal: 0.3s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font: 16px/1.65 var(--font-primary);
  color: var(--text-color);
  background: var(--bg-color);
  padding-top: calc(var(--topbar-height) + var(--header-height));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  text-decoration: none;
  color: var(--link-color);
  transition: color var(--transition-fast);
}
a:hover { color: var(--primary); }

/* Skip Link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  padding: 10px;
  border: 2px solid var(--primary);
  z-index: 10000;
}

/* --- LAYOUT CONTAINER --- */
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-shell {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 110;
}

main { display: block; }

/* --- TOPBAR --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.top-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.top-actions a { color: #000; margin-right: 12px; }
.top-actions a:hover { color: var(--primary); }
.top-actions span:last-child { margin-left: 0; }

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0 14px;
}

/* Logo */
.logo-float {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 420px;
}
.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
  width: auto;
  height: auto;
  max-width: 400px;
}
.logo-box img {
  max-width: 360px;
  width: 100%;
  height: auto;
  aspect-ratio: 2157/463;
  object-fit: contain;
}

/* Menu */
.menu {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  padding-left: 0;
  text-align: right;
}
.menu a {
  font-weight: 700;
  color: #ffffff;
  padding: 4px 0;
}
.menu a:hover { color: #d9e7f5; }
.menu a.active { color: #d9e7f5; border-bottom: 2px solid #d9e7f5; }

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, .45);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  padding: 60px 0 60px;
  background: linear-gradient(180deg, #d8dfdf 0%, var(--bg-color) 58%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: end;
}
.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: var(--spacing-sm);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  margin: .2em 0 .25em;
}
.hero p {
  font-size: 18px;
  max-width: 64ch;
  color: #36403d;
}

/* Hero Card */
.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
}
.hero-list {
  display: grid;
  gap: 12px;
}
.hero-item {
  display: block;
}
.hero-item b {
  display: block;
  margin-bottom: 4px;
}

/* CTA Row */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  min-height: 46px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
}
.btn.primary {
  background: var(--primary);
  color: #fff;
}
.btn.primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn.secondary {
  border: 1px solid var(--border-color);
  background: #fff;
  color: #1d2825;
}
.btn.secondary:hover {
  background: var(--bg-color-alt);
  color: var(--primary);
}

/* --- SECTIONS --- */
section {
  padding: 68px 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
}
.section-head p {
  color: var(--text-muted);
  margin: 0;
}
.light {
  background: var(--bg-color-alt);
}

/* Scroll Offset für Anker */
section[id] {
  scroll-margin-top: calc(var(--topbar-height) + var(--header-height) + 20px);
}

/* --- CARDS --- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.card p {
  margin: 0;
  color: #4e585f;
}

/* --- GRID LAYOUTS --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* --- BRAND STRIP --- */
.brand-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.brand-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.brand-tag {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: #edf4f1;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

/* --- LIST STYLES --- */
.list {
  padding-left: 18px;
}
.list li {
  margin-bottom: 8px;
}

/* --- CONTACT SECTION --- */
.contact-panel {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.contact-details {
  display: grid;
  gap: 16px;
}
.contact-box {
  background: #eef2f2;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px;
}
.contact-box h3 {
  margin: 0 0 10px;
  color: var(--primary);
}
.contact-box p {
  margin: .2em 0;
}

/* --- GALLERY --- */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gallery-note {
  font-size: 14px;
  color: #4a545a;
}
.gallery-shell {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
}
.gallery-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #e6e1d8;
  min-height: 320px;
}
.slides {
  display: flex;
  transition: transform .45s ease;
  min-height: 420px;
}
.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  height: 420px;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.gallery-nav button {
  pointer-events: auto;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .08);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  margin: 0 14px;
  cursor: pointer;
  font-size: 20px;
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #ffffff;
  padding: 54px 0 24px;
  margin-top: 42px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.footer-card {
  background: #ffffff;
  border: 1px solid #c8d3e0;
  border-radius: 20px;
  padding: 22px;
  color: #000000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}
.footer-card h3 {
  color: #000000;
  margin-bottom: var(--spacing-sm);
}
.footer-card p { color: #000000; }
.footer-card a { color: #000000; }
.footer-card a:hover { color: var(--primary); }

/* --- COPYRIGHT LEISTE UNTEN --- */
.footer-copyright {
  text-align: center;
  padding: 20px 0 10px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.footer-copyright p {
  margin: 0;
  font-size: 14px;
}
.footer-copyright a {
  color: #ffffff;
}
.footer-copyright a:hover {
  color: #d9e7f5;
}

/* --- COOKIE BANNER --- */
.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 18px;
  display: none;
}
.cookie.show { display: block; }
.cookie-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.cookie p {
  margin: 0;
  color: #4f5b59;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie button {
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: 700;
}
.cookie .accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie .decline {
  background: #fff;
  color: var(--text-color);
}

/* --- TO-TOP BUTTON --- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
  display: none;
  z-index: 95;
  cursor: pointer;
  font-size: 1.5rem;
}
.to-top.show { display: block; }

/* --- HELPER --- */
.muted { color: var(--text-muted); }

/* --- RESPONSIVE: TABLET (>= 768px) --- */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cards     { grid-template-columns: repeat(2, 1fr); }
  .split     { grid-template-columns: 1fr 1fr; }
  .pillars   { grid-template-columns: repeat(2, 1fr); }
  .trust     { grid-template-columns: repeat(2, 1fr); }
  .brand-strip { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: .95fr 1.05fr; }
  .footer-grid { grid-template-columns: 1.1fr .9fr .9fr; }
  .cookie-row { flex-direction: row; }
}

/* --- RESPONSIVE: DESKTOP (>= 1024px) --- */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .menu { display: flex !important; }
}

/* --- RESPONSIVE: MOBILE (<= 860px) --- */
@media (max-width: 860px) {
  body { padding-top: calc(var(--topbar-height) + 64px); }
  .site-shell { top: var(--topbar-height); }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0 4px;
    gap: 12px;
    text-align: left;
  }
  .menu.open { display: flex; }

  .logo-float { margin-top: 8px; max-width: none; }
  .logo-box { max-width: 280px; padding: 5px 8px; border-radius: 12px; }
  .logo-box img { max-width: 240px; }

  .hero-grid, .cards, .split, .trust, .pillars,
  .brand-strip, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-card { order: 2; }
  .slide { height: 280px; }
  .slides { min-height: 280px; }

  .topbar .wrap { justify-content: flex-start; }
  .top-actions { justify-content: flex-start; gap: 10px; font-size: 13px; }

  .cookie-row { flex-direction: column; }
  .gallery-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   GALERIE MODAL (Vollbild)
   ============================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.gallery-modal img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-modal .modal-close,
.gallery-modal .modal-prev,
.gallery-modal .modal-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  color: #000;
}

.gallery-modal .modal-close:hover,
.gallery-modal .modal-prev:hover,
.gallery-modal .modal-next:hover {
  background: #fff;
}

.gallery-modal .modal-close {
  top: 20px;
  right: 20px;
}

.gallery-modal .modal-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal .modal-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .gallery-modal {
    padding: 20px;
  }
  .gallery-modal .modal-close,
  .gallery-modal .modal-prev,
  .gallery-modal .modal-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .gallery-modal img {
    max-width: 95vw;
    max-height: 80vh;
  }
}

/* --- PRINT --- */
@media print {
  .topbar, header, footer, .cookie, .to-top, .nav-toggle, .gallery-modal {
    display: none !important;
  }
  body { padding-top: 0; color: black; background: white; }
  a { color: black; text-decoration: underline; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
