/* ─────────────────────────────────────────────────────────────────
   Reset & Custom Properties
───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --surface:        #ffffff;
  --radius:         14px;
  --radius-sm:      8px;
  --font:           'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:           200ms ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

/* ─────────────────────────────────────────────────────────────────
   Typography
───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary-dark);
}

h3 { font-size: 1.1rem; }

p { color: var(--text-muted); }

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

a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────
   Layout helpers
───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--surface-alt); }

/* Skip rendering off-screen sections until they are scrolled near (faster first paint). */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Keyboard focus ring (only shows for keyboard users, not mouse clicks). */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.section__header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  max-width: 60ch;
  margin-inline: auto;
}

.section__divider {
  width: 3rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.85rem auto 0;
}

/* ─────────────────────────────────────────────────────────────────
   Notice Banner
───────────────────────────────────────────────────────────────── */
.notice {
  background: #fff8e6;
  border-bottom: 3px solid #f5c842;
  padding: 0.8rem 0;
}

.notice__inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.notice__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notice__text {
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  color: #5c4200;
  line-height: 1.6;
}

.notice__text strong { color: #3d2c00; }
.notice__text a { color: #7a5800; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────
   Navigation
───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  line-height: 1.2;
  flex-shrink: 0;
  margin-right: auto;
}

.nav__brand em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav__brand:hover { text-decoration: none; }

/* Main nav links */
.nav__links {
  display: flex;
  gap: 0.1rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}

.nav__links a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

.nav__links a.is-active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  background: var(--primary);
  color: white !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: background var(--ease) !important;
}

.nav__cta:hover {
  background: var(--primary-dark) !important;
  text-decoration: none !important;
}

/* Right-side group: lang switcher + hamburger */
.nav__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Named color theme selector */
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.theme-picker[hidden] { display: none; }

.theme-picker__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.theme-picker select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 0.3rem 1.6rem 0.3rem 0.5rem;
  cursor: pointer;
}

/* Language switcher */
.nav__lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.15rem;
  gap: 0.05rem;
}

.lang-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28em 0.65em;
  border-radius: 99px;
  color: var(--text-muted);
  transition: all var(--ease);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.lang-btn--active {
  background: var(--primary);
  color: white;
}

.lang-btn--active:hover {
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.45rem;
  color: var(--text);
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; align-items: center; }

  .nav__links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    padding: 0.5rem;
  }

  .nav__links.is-open { display: flex; }

  .nav__links a {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav__cta {
    margin-top: 0.4rem;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Hero
───────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 70% 0%, var(--hero-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, var(--hero-deep) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--hero-end) 100%);
  color: white;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(5rem, 10vw, 8rem);
  text-align: center;
  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%3Ccircle cx='30' cy='30' r='1.5' fill='white' opacity='.06'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  left: 52%;
  top: 53%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 40vw, 560px);
  aspect-ratio: 1;
  background: url("../logo_black.png") no-repeat center / 100% 100%;
  background-image: image-set(
      url("../logo.webp") type("image/webp"),
      url("../logo_black.png") type("image/png")
    );
  opacity: 0.48;
  /* White areas disappear on the gradient, black logo strokes stay visible. */
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .hero::after {
    left: 50%;
    top: 58%;
    width: min(70vw, 340px);
    opacity: 0.4;
  }
}

.hero__kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.15);
  padding: 0.3em 0.9em;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────────
   Buttons
───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  text-decoration: none;
}

.btn--white {
  background: white;
  color: var(--primary-dark);
}

.btn--white:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.55);
}

.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────
   Info Bar (floats up from hero)
───────────────────────────────────────────────────────────────── */
.info-bar {
  margin-top: clamp(-3rem, -5vw, -4rem);
  padding-bottom: 0;
  position: relative;
  z-index: 10;
}

.info-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-card__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.info-card__value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.15rem;
  line-height: 1.3;
}

.info-card__value a { color: var(--text); }
.info-card__value a:hover { color: var(--primary); text-decoration: none; }

.info-card__sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────
   Services / Leistungen
───────────────────────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.85rem;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.service-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.service-card--accent .service-card__icon {
  background: var(--accent-light);
}

.service-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.service-card__detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ─────────────────────────────────────────────────────────────────
   Office Hours / Sprechzeiten
───────────────────────────────────────────────────────────────── */
.hours__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.hours__card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.hours__card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.7rem 0.25rem;
  font-size: 0.92rem;
  vertical-align: top;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 40%;
}

.hours-table td:last-child {
  color: var(--text-muted);
}

.hours__note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hours__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   Team
───────────────────────────────────────────────────────────────── */
.team__section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.team__section-label:first-child {
  margin-top: 0;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}

.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.team-card__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.team-card__avatar--rose  { background: linear-gradient(135deg, var(--avatar-highlight), var(--primary-dark)); }
.team-card__avatar--teal  { background: linear-gradient(135deg, #6dab9a, var(--accent)); }
.team-card__avatar--slate { background: linear-gradient(135deg, #8a8fa8, #5a6070); }

.team-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.team-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────
   Directions & Contact
───────────────────────────────────────────────────────────────── */
.directions__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

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

.directions__map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.directions__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.directions__info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.directions__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.directions__list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.directions__list li .icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

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

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
}

.contact-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.contact-card__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.15rem;
}

.contact-card__value a { color: var(--primary); }

.contact-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────
   Partner Links
───────────────────────────────────────────────────────────────── */
.links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: all var(--ease);
}

.link-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.link-card__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.link-card__body { flex: 1; min-width: 0; }

.link-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
}

.link-card__url {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.link-card__arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--ease), color var(--ease);
}

.link-card:hover .link-card__arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ─────────────────────────────────────────────────────────────────
   Impressum (collapsible)
───────────────────────────────────────────────────────────────── */
.impressum-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.impressum-section details {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.impressum-section summary {
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary-dark);
  padding: 0.4rem 0;
  user-select: none;
}

.impressum-section summary::-webkit-details-marker { display: none; }

.impressum-section summary::after {
  content: '›';
  margin-left: auto;
  font-size: 1.2rem;
  transition: transform var(--ease);
  display: inline-block;
}

.impressum-section details[open] summary::after {
  transform: rotate(90deg);
}

.impressum__content {
  padding: 1.25rem 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.impressum__block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.impressum__block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.impressum__block--full {
  grid-column: 1 / -1;
}

.impressum__block--full p + p {
  margin-top: 0.8rem;
}

.impressum__block a { color: var(--primary); }

/* ─────────────────────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  padding: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
}

footer p + p { margin-top: 0.3rem; }
footer a { color: rgba(255,255,255,.9); }
footer a:hover { color: white; }

/* ─────────────────────────────────────────────────────────────────
   Utilities
───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge--teal {
  background: var(--accent-light);
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   Print
───────────────────────────────────────────────────────────────── */
@media print {
  .notice, .nav, .hero__actions, .info-bar { display: none; }
  .hero { padding: 1rem; background: none; color: var(--text); }
  .hero__title { color: var(--primary-dark); }
}
