@import url("fonts.css");

:root {
  --color-h: #e53212;
  --color-i: #65b22e;
  --color-c: #009ee3;
  --color-text: #1a2332;
  --color-text-muted: #5a6578;
  --color-bg: #f4f6f9;
  --color-white: #ffffff;
  --color-border: #dde3ec;
  --accent-tricolor: linear-gradient(
    to right,
    var(--color-h) 33.333%,
    var(--color-i) 33.333%,
    var(--color-i) 66.666%,
    var(--color-c) 66.666%
  );
  --font-sans: "HIC Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "HIC Logo", "Arial Black", "Helvetica Black", Impact, sans-serif;
  --max-width: 1360px;
  --page-gutter: 1.8rem;
  --radius: 10px;
  --shadow-sm: 0 2px 12px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 35, 50, 0.1);
  --header-height: 168px;
  --header-height-scrolled: 86px;
  --logo-line-color: #594537;
  --accent-bar-height: 3px;
  --site-header-total: calc(var(--accent-bar-height) + var(--header-height));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-c);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #007ab8;
}

:focus-visible {
  outline: 3px solid var(--color-c);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

/* Farbrand oben – 3px, seitenabhängig */
.page-accent-bar {
  height: var(--accent-bar-height);
  width: 100%;
  flex-shrink: 0;
}

body[data-accent="tricolor"] .page-accent-bar {
  background: var(--accent-tricolor);
}

body[data-accent="red"] .page-accent-bar {
  background: var(--color-h);
}

body[data-accent="green"] .page-accent-bar {
  background: var(--color-i);
}

body[data-accent="blue"] .page-accent-bar {
  background: var(--color-c);
}

/* Header – 100 % Breite, sticky inkl. Farbrand */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  --header-height-current: var(--header-height);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  --header-height-current: var(--header-height-scrolled);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.4rem 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 2rem;
  transition: padding 0.35s ease;
}

.site-header.is-scrolled .header-inner {
  padding-block: 0.35rem;
}

.header-brand {
  position: relative;
  display: block;
  width: min(460px, 64vw);
  min-width: clamp(124px, 16vw, 140px);
  height: clamp(104px, 11vw, 148px);
  justify-self: start;
  color: inherit;
  text-decoration: none;
  transition: height 0.35s ease, width 0.35s ease;
}

.site-header.is-scrolled .header-brand {
  width: clamp(124px, 16vw, 140px);
  height: 4.75rem;
}

.header-brand:hover {
  text-decoration: none;
}

.header-brand img {
  max-width: none;
}

.header-logo--full,
.header-logo-compact {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.header-logo--full {
  position: absolute;
  inset: 0 auto auto 0;
  width: auto;
  height: 100%;
  max-width: min(460px, 64vw);
  object-fit: contain;
  object-position: left center;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transform-origin: left center;
  z-index: 1;
}

.header-logo-compact {
  position: absolute;
  left: 0;
  top: 50%;
  width: 75%;
  height: auto;
  max-height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.88);
  transform-origin: left center;
  pointer-events: none;
  z-index: 2;
}

.site-header.is-scrolled .header-logo--full {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
  pointer-events: none;
}

.site-header.is-scrolled .header-logo-compact {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.site-header.is-scrolled .site-nav a {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.header-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.header-title .letter-h { color: var(--color-h); }
.header-title .letter-i { color: var(--color-i); }
.header-title .letter-c { color: var(--color-c); }

.header-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  max-width: 22ch;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
}

.header-controls {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav {
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(0, 158, 227, 0.08);
  color: var(--color-c);
  text-decoration: none;
}

.site-nav a.active {
  background: rgba(0, 158, 227, 0.12);
  color: #007ab8;
}

/* Main – Content max. 1360px */
.main-content {
  flex: 1;
  width: 100%;
}

.reveal,
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease var(--reveal-delay, 0s),
    transform 0.5s ease var(--reveal-delay, 0s);
}

.reveal.is-visible,
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

.hero__text {
  min-width: 0;
}

.hero--compact {
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.hero-accent {
  display: block;
  width: 64px;
  height: 4px;
  margin: 1.25rem 0 0;
  background: var(--accent-tricolor);
  border-radius: 2px;
}

.hero-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-signature {
  margin: 1.5rem 0 0;
  font-weight: 600;
  color: var(--color-text);
}

.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-white);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.card-icon--red { background: var(--color-h); }
.card-icon--green { background: var(--color-i); }
.card-icon--blue { background: var(--color-c); }
.card-icon--tricolor { background: var(--accent-tricolor); }

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.94rem;
}

.content-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin: 2rem auto 3rem;
}

.content-card h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  padding-bottom: 0.75rem;
  border-bottom: 3px solid transparent;
  border-image: var(--accent-tricolor) 1;
}

body[data-accent="red"] .content-card h1 {
  border-image: none;
  border-bottom-color: var(--color-h);
}

body[data-accent="green"] .content-card h1 {
  border-image: none;
  border-bottom-color: var(--color-i);
}

body[data-accent="blue"] .content-card h1 {
  border-image: none;
  border-bottom-color: var(--color-c);
}

.content-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.content-card h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.content-card p {
  margin: 0 0 1rem;
}

.content-card ul,
.content-card ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.content-card li {
  margin-bottom: 0.35rem;
}

.content-card figure {
  margin: 1.5rem 0;
}

.content-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.page-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.page-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-image--portrait img {
  aspect-ratio: 4 / 3;
}

.highlight-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border-left: 4px solid var(--color-c);
  border-radius: 0 var(--radius) var(--radius) 0;
}

body[data-accent="red"] .highlight-box { border-left-color: var(--color-h); }
body[data-accent="green"] .highlight-box { border-left-color: var(--color-i); }
body[data-accent="blue"] .highlight-box { border-left-color: var(--color-c); }

.highlight-box--tricolor {
  border-left: none;
  border-top: 3px solid transparent;
  border-image: var(--accent-tricolor) 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-c);
  color: var(--color-white);
  border-color: var(--color-c);
}

.btn-primary:hover {
  background: #007ab8;
  border-color: #007ab8;
  color: var(--color-white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-c);
  color: var(--color-c);
  text-decoration: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.news-list {
  display: grid;
  gap: 2rem;
}

.news-intro,
.page-intro {
  margin: 0 0 2.5rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.news-intro {
  align-items: center;
}

.news-intro.news-split,
.page-intro.news-split {
  align-items: center;
}

.news-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.news-split__text > :first-child {
  margin-top: 0;
}

.news-split__text h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.news-intro__text {
  padding-right: 0.25rem;
}

.news-intro__lead {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.news-intro__text p:not(.news-intro__lead) {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.news-split__media {
  margin: 0;
  max-width: 100%;
  background: var(--color-bg);
}

.news-split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: contain;
  object-position: center;
  display: block;
}

.news-article .news-split {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .news-intro,
  .page-intro {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }

  .news-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-intro__text {
    padding-right: 0;
  }
}

.news-article {
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-top: 3px solid transparent;
  border-image: var(--accent-tricolor) 1;
}

.news-article h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.news-article time {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.news-article p:last-child {
  margin-bottom: 0;
}

.news-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1rem 0;
}

.news-gallery img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--color-border);
}

.partner-list {
  display: grid;
  gap: 1.25rem;
}

.partner-card {
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-h);
}

.partner-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.partner-card .partner-role {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.partner-card address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.partner-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.team-intro {
  margin-bottom: 2rem;
}

.team-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-row {
  display: grid;
  gap: 1.25rem;
}

.team-row--leadership {
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.team-row--staff {
  grid-template-columns: repeat(4, 1fr);
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-member {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.team-member--interactive {
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease var(--team-delay, 0s),
    transform 0.55s ease var(--team-delay, 0s),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.team-member--interactive.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.team-member--interactive.is-visible:hover,
.team-member--interactive.is-visible:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(101, 178, 46, 0.45);
  outline: none;
}

.team-member--interactive.is-visible:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 158, 227, 0.25), var(--shadow-md);
}

.team-member--leadership.team-member--interactive.is-visible:hover,
.team-member--leadership.team-member--interactive.is-visible:focus-visible {
  border-color: rgba(101, 178, 46, 0.55);
  box-shadow: 0 10px 28px rgba(101, 178, 46, 0.12);
}

.team-member--interactive .team-photo {
  transition: transform 0.28s ease;
}

.team-member--interactive.is-visible:hover .team-photo,
.team-member--interactive.is-visible:focus-visible .team-photo {
  transform: scale(1.04);
}

.team-member--interactive .team-photo img {
  transition: transform 0.35s ease;
}

.team-member__email {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.team-member--leadership {
  padding: 1.75rem 1.25rem;
  background: var(--color-white);
  border-color: rgba(101, 178, 46, 0.35);
  box-shadow: var(--shadow-sm);
}

.team-member--leadership h3 {
  font-size: 1.12rem;
}

.team-member--leadership .team-photo {
  width: 130px;
  height: 130px;
}

.team-photo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229, 50, 18, 0.12), rgba(0, 158, 227, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.team-member h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.team-member .team-role {
  margin: 0 0 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.team-member a {
  font-size: 0.88rem;
  word-break: break-all;
}

.team-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.team-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(26, 35, 50, 0.72);
  cursor: pointer;
}

.team-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--color-white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px rgba(26, 35, 50, 0.28);
  text-align: center;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.32s ease;
}

.team-lightbox.is-open .team-lightbox__panel {
  transform: scale(1) translateY(0);
}

.team-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.06);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-lightbox__close:hover,
.team-lightbox__close:focus-visible {
  background: rgba(26, 35, 50, 0.12);
  color: var(--color-text);
  outline: none;
}

.team-lightbox__photo {
  width: min(240px, 62vw);
  height: min(240px, 62vw);
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.team-lightbox__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-lightbox__name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.team-lightbox__role {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.team-lightbox__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(0, 158, 227, 0.06);
  border: 1px solid rgba(0, 158, 227, 0.18);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.team-lightbox__email:hover,
.team-lightbox__email:focus-visible {
  color: #007ab8;
  background: rgba(0, 158, 227, 0.12);
  border-color: rgba(0, 158, 227, 0.35);
  text-decoration: none;
  outline: none;
}

.team-lightbox__email[hidden] {
  display: none;
}

body.team-lightbox-open {
  overflow: hidden;
}

.team-member--dog .team-avatar {
  background: linear-gradient(135deg, rgba(101, 178, 46, 0.15), rgba(229, 50, 18, 0.1));
  font-size: 2.25rem;
}

.contact-block {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.5rem 0;
}

.contact-block address {
  font-style: normal;
  line-height: 1.7;
}

.contact-block a {
  font-weight: 600;
}

.legal-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.legal-note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.stellenangebot {
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  margin: 1rem 0;
}

.stellenangebot strong {
  display: block;
  margin-bottom: 0.35rem;
}

/* Footer – 100 % Breite, Farbrand tricolor */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.88);
}

.footer-accent {
  height: var(--accent-bar-height);
  background: var(--accent-tricolor);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2rem var(--page-gutter) 1.25rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
}

.footer-brand .header-title {
  font-size: 1.2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav h2 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-copy {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1rem var(--page-gutter) 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-c);
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  z-index: 90;
  text-decoration: none;
  font-size: 1.25rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #007ab8;
  color: var(--color-white);
  text-decoration: none;
}

body.nav-open {
  overflow: hidden;
}

.nav-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(26, 35, 50, 0.45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 1024px) {
  .hero--split {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .team-row--staff {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header-inner,
  .header-brand,
  .header-logo--full,
  .header-logo-compact,
  .site-nav,
  .nav-backdrop,
  .site-nav a,
  .team-member--interactive,
  .team-member--interactive .team-photo,
  .team-member--interactive .team-photo img,
  .team-lightbox,
  .team-lightbox__panel,
  .reveal,
  [data-animate] {
    transition: none;
  }

  .reveal,
  [data-animate],
  .team-member--interactive {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    z-index: 220;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0.75rem;
  }

  .header-brand {
    grid-column: 2;
    justify-self: center;
    width: min(280px, 58vw);
    min-width: 0;
  }

  .site-header.is-scrolled .header-brand {
    width: min(140px, 36vw);
  }

  .header-logo--full {
    left: 50%;
    max-width: 100%;
    object-position: center center;
    transform: translateX(-50%) scale(1);
    transform-origin: center center;
  }

  .site-header.is-scrolled .header-logo--full {
    transform: translateX(-50%) scale(0.94);
  }

  .header-logo-compact {
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%) scale(0.88);
    transform-origin: center center;
  }

  .site-header.is-scrolled .header-logo-compact {
    transform: translate(-50%, -50%) scale(1);
  }

  .header-controls {
    grid-column: 3;
    justify-self: end;
    position: relative;
    z-index: 222;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .site-nav {
    position: fixed;
    top: var(--mobile-nav-top, 0);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 88vw);
    margin: 0;
    z-index: 210;
    background: var(--color-white);
    padding: calc(var(--mobile-nav-top, 90px) + 0.75rem) var(--page-gutter) 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
    border-left: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .site-nav a.active {
    border-left: 3px solid var(--color-c);
    padding-left: calc(1rem - 3px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .content-card {
    padding: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .header-tagline {
    display: none;
  }

  .team-row--leadership,
  .team-row--staff {
    grid-template-columns: 1fr;
  }
}
