/* Self-hosted Manrope fonts (DSGVO compliant) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-muted: #0f172a0d;
  --panel: #111827;
  --card: #1f2937;
  --text: #e5e7eb;
  --text-dim: #cbd5e1;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --border: #1f2937;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --radius-sm: 12px;
  --shell: min(1100px, 92vw);
  --body-bg: #0b1220;
  --page-bg: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.04), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.08), transparent 40%),
    #0b1220;
  --header-bg: rgba(11, 18, 32, 0.92);
  --logo-bg: #0f172a;
  --line: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.16);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-subtle: rgba(255, 255, 255, 0.02);
  --heading: #fff;
  --text-strong: #e2e8f0;
  --btn-text: #0b1220;
  --notice-text: #e0f2fe;
}

/* Light theme: values used by both the media query default and the JS toggle */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #ffffff;
    --card: #ffffff;
    --text: #1e293b;
    --text-dim: #475569;
    --accent: #2563eb;
    --accent-2: #0891b2;
    --border: #e2e8f0;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --body-bg: #eef2f7;
    --page-bg: radial-gradient(circle at 20% 20%, rgba(8, 145, 178, 0.05), transparent 35%),
      radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.06), transparent 40%),
      #eef2f7;
    --header-bg: rgba(248, 250, 252, 0.92);
    --logo-bg: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.25);
    --chip-bg: rgba(15, 23, 42, 0.06);
    --card-bg: #ffffff;
    --card-bg-subtle: #ffffff;
    --heading: #0f172a;
    --text-strong: #334155;
    --btn-text: #ffffff;
    --notice-text: #0c4a6e;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #1e293b;
  --text-dim: #475569;
  --accent: #2563eb;
  --accent-2: #0891b2;
  --border: #e2e8f0;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --body-bg: #eef2f7;
  --page-bg: radial-gradient(circle at 20% 20%, rgba(8, 145, 178, 0.05), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.06), transparent 40%),
    #eef2f7;
  --header-bg: rgba(248, 250, 252, 0.92);
  --logo-bg: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.25);
  --chip-bg: rgba(15, 23, 42, 0.06);
  --card-bg: #ffffff;
  --card-bg-subtle: #ffffff;
  --heading: #0f172a;
  --text-strong: #334155;
  --btn-text: #ffffff;
  --notice-text: #0c4a6e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.page {
  background: var(--page-bg);
}

.announcement-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 48px 12px 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 211, 238, 0.10));
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--text);
  font-size: 14px;
  text-align: center;
  z-index: 20;
}

.announcement-banner strong {
  color: var(--accent-2);
}

.announcement-banner__close {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s;
}

.announcement-banner__close:hover {
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  width: 180px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--logo-bg);
  padding: 6px;
  border: 1px solid var(--line);
}

/* Hamburger toggle – hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Phone link inside nav – mobile only */
.nav__phone { display: none; }

.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.brand__title {
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
}

.nav a {
  color: var(--text-dim);
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--chip-bg);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--btn-text);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section__header {
  margin-bottom: 24px;
}

h1, h2, h3, h4 {
  margin: 8px 0 12px;
  color: var(--heading);
}

h1 { font-size: clamp(32px, 4vw, 42px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 20px; }

p {
  color: var(--text-dim);
  margin: 8px 0 14px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.lede {
  font-size: 18px;
  color: var(--text-strong);
}

.hero {
  padding: 48px 0 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero__copy h1 { margin-top: 6px; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }

.pill-list {
  list-style: disc;
  padding-left: 1.5em;
  margin: 18px 0 0;
  color: var(--text-strong);
}

.pill-list li {
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 600;
}

.pill-list span {
  color: var(--text-strong);
  font-weight: 600;
}

.hero__image-stack {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hero__image-stack img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card--map img,
.card__image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.highlight {
  color: var(--text-strong);
  font-weight: 700;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.list-plain li { margin-bottom: 8px; }

.hours-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-rows: 160px 1fr;
  background: var(--card-bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card div {
  padding: 16px;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.6);
}

.masonry {
  columns: 3 240px;
  column-gap: 12px;
}

.masonry figure {
  break-inside: avoid;
  margin: 0 0 12px;
}

.masonry img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--body-bg);
  padding: 36px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}

.footer__legal {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
}

.brand--small .brand__logo { width: 120px; height: 60px; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 2px; }
.link-list a { color: var(--text-dim); display: inline-block; padding: 8px 0; }
.link-list a:hover { color: var(--heading); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.gallery-grid figure {
  margin: 0;
  background: var(--card-bg-subtle);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  aspect-ratio: 1.2;
}

.gallery-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--text-dim);
  font-size: 14px;
}

.page-header {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
}

.gallery-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.gallery-close-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.breadcrumb {
  color: var(--text-dim);
  font-size: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  color: var(--text-dim);
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: var(--notice-text);
}

.impressum-logo {
  margin: 12px 0 20px;
}

.impressum-logo img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--logo-bg);
  padding: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.lightbox.active { display: flex; }

.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(1080px, 90vw);
}

.lightbox__stage {
  display: flex;
  justify-content: center;
}

.lightbox img {
  max-width: min(960px, 80vw);
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: block;
}

.lightbox__nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); }

.lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox__close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 10px;
  padding: 8px 24px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }

@media (max-width: 860px) {
  .site-header .shell {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .brand__logo {
    width: 100px;
    height: 44px;
    padding: 3px;
    border-radius: 8px;
  }
  .brand__text { font-size: 11px; }
  .brand { gap: 8px; }

  /* Show hamburger */
  .nav-toggle { display: flex; }

  /* Collapsible nav */
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 4px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav a:last-child { border-bottom: none; }

  /* Show phone link inside nav on mobile */
  .nav__phone {
    display: flex;
    font-weight: 700;
    color: var(--accent) !important;
  }

  .hero__image-stack { grid-template-columns: 1fr; }
  .service-card { grid-template-rows: 180px 1fr; }
}
