/* ─── COLOUR VARIABLES ───────────────────────────────── */
:root {
  /* Brand */
  --color-brand:        #17279c;   /* primary blue (nav, headings, buttons) */
  --color-brand-hover:  #1e34c2;   /* lighter blue for hover states          */
  --color-link:         #17279c;   /* inline hyperlinks                       */

  /* Neutrals */
  --color-text:         #212529;   /* body copy                               */
  --color-text-muted:   #666666;   /* secondary / caption text                */
  --color-text-subtle:  #444444;   /* slightly-lighter headings (h4)          */
  --color-white:        #ffffff;
  --color-black:        #000000;

  /* Backgrounds */
  --color-bg:           #ffffff;   /* page background                         */
  --color-bg-light:     #f0f0f0;   /* page-content / main-content bands       */
  --color-bg-tint:      #f4f6fb;   /* address / card tint                     */
  --color-bg-subtle:    #f8f9fc;   /* notice / callout background             */

  /* Borders */
  --color-border:       #dddddd;   /* header, nav dividers                    */
  --color-border-light: #f0f0f0;   /* mobile nav item borders                 */
  --color-border-muted: #d0d8ea;   /* notice box border                       */
  --color-border-rule:  #e5eaf3;   /* h2 underline rule                       */

  /* Footer */
  --color-footer-bg:    #333333;
  --color-footer-text:  #cccccc;
  --color-footer-sep:   #777777;

  /* Slider */
  --color-slider-bg:    rgba(255,255,255,.7);
  --color-slider-hover: rgba(255,255,255,.95);
  --color-dot:          rgba(255,255,255,.5);
  --color-dot-active:   #ffffff;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--color-link); text-decoration: none; }
p { font-size: 1rem; margin-top: 0; margin-bottom: 1rem; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ─── TOPBAR ─────────────────────────────────────────── */
.topbar {
  background: var(--color-brand);
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 6px 0;
}
.topbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
}
.topbar a { color: var(--color-white); }
.topbar a:hover { text-decoration: underline; }

/* ─── HEADER ─────────────────────────────────────────── */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img { height: 52px; width: auto; }
.logo-fallback .logo-main { font-size: 1.75rem; font-weight: 900; color: var(--color-brand); }
.logo-fallback .logo-sub  { font-size: 0.75rem; color: var(--color-text-muted); display: block; }
nav { display: flex; align-items: center; }
nav a { font-size: 1rem; color: var(--color-text); padding: 8px 12px; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--color-brand); text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--color-text); }

/* ─── BREADCRUMB BAR ─────────────────────────────────── */
.breadcrumb-bar {
  background: var(--color-brand);
  padding: 10px 0;
}
.breadcrumb-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.8125rem;
  color: var(--color-white);
}
.breadcrumb-bar a { color: var(--color-white); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { margin: 0 6px; }

/* ─── SLIDER ─────────────────────────────────────────── */
.slider { position: relative; overflow: hidden; background: var(--color-black); line-height: 0; }
.slider-track { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; max-height: 420px; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--color-slider-bg); border: none; cursor: pointer;
  width: 36px; height: 60px; font-size: 1.25rem; color: var(--color-text);
  display: flex; align-items: center; justify-content: center; z-index: 10;
}
.slider-btn:hover { background: var(--color-slider-hover); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-dot); border: none; cursor: pointer; }
.dot.active { background: var(--color-dot-active); }

/* ─── STICKY FOOTER ──────────────────────────────────── */
.main-content,
.page-content,
.datenschutz-section,
.section { flex: 1; }
.main-content { background: var(--color-bg-light); padding: 40px 0 60px; }
.content-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.services-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.service-col { text-align: center; }
.service-col h2 { font-size: 1.125rem; font-weight: normal; color: var(--color-text); margin-bottom: 14px; }
.service-col img { width: 100%; margin-bottom: 12px; }
.service-col p { font-size: 0.8125rem; color: var(--color-text); text-align: left; line-height: 1.5; margin-bottom: 4px; }
.service-col .mehr { font-size: 0.8125rem; color: var(--color-link); }
.service-col .mehr:hover { text-decoration: underline; }

/* ─── INNER PAGE CONTENT ─────────────────────────────── */
.page-content { background: var(--color-bg-light); padding: 40px 0 80px; }
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Two-column: image left, text right */
.page-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}
.page-image img {
  width: 100%;
  display: block;
}
.page-text h2 {
  font-size: 1.375rem;
  font-weight: bold;
  color: var(--color-brand);
  margin-bottom: 16px;
}
.page-text p {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.6;
}
.page-text ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-text ul li {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
  list-style: disc;
}
.page-text em { font-style: italic; }

/* Full-width brand contact button */
.btn-contact {
  display: block;
  width: 100%;
  background: var(--color-brand);
  color: var(--color-white);
  text-align: center;
  padding: 12px;
  font-size: 1rem;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}
.btn-contact:hover { background: var(--color-brand-hover); color: var(--color-white); text-decoration: none; }

/* ─── CONTACT PAGE ───────────────────────────────────── */
.contact-info { font-size: 1rem; color: var(--color-text); line-height: 2; }
.contact-info address { font-style: normal; }
.contact-info h2 { font-size: 1rem; color: var(--color-brand); margin: 24px 0 8px; font-weight: bold; }
.contact-info a { color: var(--color-link); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer { background: var(--color-footer-bg); color: var(--color-footer-text); font-size: 0.8125rem; padding: 18px 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-links a { color: var(--color-footer-text); }
.footer-links a:hover { color: var(--color-white); text-decoration: underline; }
.footer-links .sep { margin: 0 6px; color: var(--color-footer-sep); }

/* ─── PROSE (Impressum / legacy) ─────────────────────── */
.prose { max-width: 800px; font-size: 1rem; color: var(--color-text); }
.prose h2 { font-size: 1rem; color: var(--color-brand); margin: 24px 0 8px; font-weight: bold; }
.prose p { margin-bottom: 10px; line-height: 1.7; }
.prose a { color: var(--color-link); }

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-row { grid-template-columns: 1fr; }
  nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 10px 0; z-index: 99; }
  nav.open { display: flex; }
  nav a { padding: 10px 20px; border-bottom: 1px solid var(--color-border-light); width: 100%; }
  .hamburger { display: flex; }
  .topbar .inner { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
}

/* ─── PAGE HERO (breadcrumb + h1 banner) ─────────────── */
.page-hero {
  background: var(--color-brand);
  padding: 18px 0;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-hero .breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-white);
  margin-bottom: 6px;
}
.page-hero .breadcrumb a { color: var(--color-white); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero .breadcrumb span { margin: 0 4px; }
.page-hero h1 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-white);
}

/* ─── SECTION (generic centred content wrapper) ──────── */
.section {
  padding: 48px 20px 64px;
  background: var(--color-bg);
}
.section > .prose {
  margin: 0 auto;
}

/* ─── DATENSCHUTZ ────────────────────────────────────── */
.datenschutz-section {
  padding: 48px 20px 64px;
  background: var(--color-bg);
}
.datenschutz-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.75;
}
.datenschutz-prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 40px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border-rule);
}
.datenschutz-prose h2:first-child { margin-top: 0; }
.datenschutz-prose h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 24px 0 8px;
}
.datenschutz-prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  margin: 18px 0 6px;
}
.datenschutz-prose p { margin-bottom: 12px; }
.datenschutz-prose address {
  font-style: normal;
  background: var(--color-bg-tint);
  border-left: 3px solid var(--color-brand);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
  line-height: 1.8;
}
.datenschutz-prose address a { color: var(--color-link); }
.datenschutz-prose ul {
  margin: 8px 0 14px 24px;
  padding: 0;
}
.datenschutz-prose ul li { margin-bottom: 6px; }
.datenschutz-prose a { color: var(--color-link); }
.datenschutz-prose a:hover { text-decoration: underline; }
.dsgvo-notice {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-muted);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.dsgvo-notice p { margin-bottom: 10px; }
.dsgvo-notice p:last-child { margin-bottom: 0; }
