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

@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/noto-serif.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/source-sans-3.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --bg-services: #f2f2f2;
  --white: #ffffff;
  --text: #000000;
  --text-heading: #000000;
  --text-soft: #2b2b2b;
  --text-mute: #6e6e6e;
  --gold: #a99576;
  --gold-dark: #8c7a5e;
  --gold-light: #c0ab8c;
  /* Darker gold for buttons: white text needs WCAG AA (>=4.5:1).
     --gold (#a99576) is only ~2.9:1; these are ~5.3:1 and ~7:1. */
  --gold-btn: #7a6a4f;
  --gold-btn-dark: #655742;
  --border: rgba(0, 0, 0, 0.12);
  --border-soft: rgba(0, 0, 0, 0.08);
  --serif: "Noto Serif", "Iowan Old Style", "Apple Garamond", Baskerville, Georgia, "Times New Roman", serif;
  --sans: "halyard-display", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1500px;
  --gutter: 4vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold-dark); transition: color 0.15s; }
a:hover { color: var(--gold); }

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

/* Utilities (replace former inline styles so CSP can stay strict) */
.error-page { text-align: center; padding: 4vmax 0; }
.error-code { font-family: var(--serif); font-size: 5rem; font-weight: 400; margin-bottom: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.map-note { margin-top: 0.6rem; font-size: 0.85rem; }

/* Vita / Werdegang timeline */
.vita-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.vita-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.vita-list li:last-child { border-bottom: none; }
.vita-year { font-weight: 600; color: var(--gold-btn); }
@media (max-width: 600px) {
  .vita-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: start;
}
.contact-cta h3 { margin-bottom: 0.6rem; }
.contact-cta .btn { margin-top: 0.5rem; }
.contact-details h4 { margin-bottom: 0.25rem; }
.contact-details h4 + p { margin-bottom: 1.4rem; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-heading);
}

/* ============ Header ============ */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 2.2rem var(--gutter);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.header-brand {
  display: block;
  text-align: center;
}

.header-brand img {
  height: 120px;
  width: auto;
  margin: 0 auto;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.92rem;
  justify-self: start;
}

nav.main-nav > a,
nav.main-nav .nav-folder > .nav-folder-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  padding: 0.3rem 0;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  display: inline-block;
}

nav.main-nav > a::after,
nav.main-nav .nav-folder > .nav-folder-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

nav.main-nav > a:hover::after,
nav.main-nav > a.active::after,
nav.main-nav .nav-folder:hover > .nav-folder-title::after,
nav.main-nav .nav-folder.active > .nav-folder-title::after {
  transform: scaleX(1);
}

.nav-folder {
  position: relative;
}

.nav-folder-items {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  list-style: none;
}

.nav-folder:hover .nav-folder-items,
.nav-folder:focus-within .nav-folder-items,
.nav-folder.open .nav-folder-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-folder-items a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  display: inline-block;
  width: fit-content;
}

.nav-folder-items a:hover,
.nav-folder-items a.active {
  border-bottom: 1px solid var(--text);
}

.header-cta {
  justify-self: end;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  background: var(--gold-btn);
  color: var(--white) !important;
  padding: 0.76rem 1.275rem;
  border-radius: 300px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.955rem;
  letter-spacing: 0;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  line-height: 1.2;
}

.btn:hover {
  background: var(--gold-btn-dark);
  color: var(--white) !important;
}

.btn-small {
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* ============ Hero ============ */
.hero {
  padding: 5.5rem var(--gutter) 3.5rem;
  background: var(--bg-soft);
}

.hero-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.hero-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.89 / 1;
  border-radius: 8px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cta {
  margin-top: -1.6rem;
  position: relative;
  z-index: 2;
}

.hero-cta .btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============ Sections ============ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Intro: Herzlich willkommen */
.intro {
  background: var(--white);
  padding: 5vmax 0 4vmax;
  text-align: center;
}

.intro-title {
  font-family: var(--serif);
  font-size: 2.143rem;
  font-weight: 400;
  margin-bottom: 1.4rem;
  color: var(--text-heading);
  line-height: 1.2;
}

.intro-text {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

/* Feature: alternating image/text */
.feature {
  background: var(--white);
  padding: 3vmax 0;
}

.feature-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}


.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-text h3 {
  font-family: var(--serif);
  font-size: 3.222rem;
  font-weight: 400;
  margin-bottom: 1.4rem;
  color: var(--text-heading);
  line-height: 1.15;
}

.feature-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
}

.feature-text .btn {
  margin-top: 1rem;
}

/* Services */
.services {
  background: var(--bg-services);
  padding: 5vmax 0;
}

.services-title {
  font-family: var(--serif);
  font-size: 3.222rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 4.5rem;
  color: var(--text-heading);
  line-height: 1.15;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.service h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.service p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.4rem;
}

/* Footer */
footer {
  background: var(--bg-services);
  padding: 5vmax var(--gutter) 4vmax;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand h4 {
  font-family: var(--serif);
  font-size: 2.143rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-heading);
  line-height: 1.2;
}

.footer-brand p {
  font-size: 1rem;
  color: var(--text);
}

.footer-links {
  justify-self: end;
  text-align: left;
  min-width: 200px;
}

.footer-links h5 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold-dark);
}

/* ============ Page hero for inner pages — image banner like home ============ */
.page-hero {
  padding: 0 var(--gutter) 3rem;
  background: var(--bg-soft);
  padding-top: 2.5rem;
}

.page-hero-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-hero-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  border-radius: 8px;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-image-only {
  background: var(--bg-soft);
}

.page-hero-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 500;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  font-size: 1.05rem;
}

.page-hero .crumb {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.page-hero.plain {
  min-height: 0;
  background: var(--bg);
  padding: 4rem var(--gutter) 2rem;
  align-items: center;
  color: var(--text-heading);
}

.page-hero.plain::before { display: none; }

.page-hero.plain h1 {
  color: var(--text-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-hero.plain .crumb {
  color: var(--gold-dark);
}

/* Generic section for inner pages */
.section {
  padding: 5vmax var(--gutter);
  background: var(--white);
}

.section.alt { background: var(--white); }
.section.soft { background: var(--bg-services); }

/* Content layout for subpages — alternating image+text like home features */
.content-section {
  padding: 5vmax var(--gutter);
  background: var(--white);
}

.content-section.gray { background: var(--bg-soft); }

.content-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.content-grid.reverse > .content-image { grid-column: 2; }
.content-grid.reverse > .content-text { grid-column: 1; grid-row: 1; }

.content-grid .content-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.content-grid .content-text h3 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 1.4rem;
  color: var(--text-heading);
  line-height: 1.15;
}

.content-grid .content-text h4 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  margin-top: 1.6rem;
  color: var(--text-heading);
}

.content-grid .content-text h4:first-child { margin-top: 0; }

.content-grid .content-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
}

.content-grid .content-text .btn { margin-top: 1.2rem; }

.content-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.content-narrow h3 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
  line-height: 1.15;
}

.content-narrow h4 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
  margin-top: 1.6rem;
  color: var(--text-heading);
}

.content-narrow p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Team grid */
.team-section {
  padding: 4vmax var(--gutter) 6vmax;
  background: var(--white);
}

.team-section .team-title {
  font-family: var(--serif);
  font-size: 3.222rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-heading);
}

.team-section .team-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3.5rem);
}

.team-section .team-card {
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  box-shadow: none;
  transition: none;
}
.team-section .team-card:hover {
  transform: none;
  box-shadow: none;
}

.team-section .team-photo {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: #d8d3c8;
}

.team-section .team-card h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--text-heading);
}

.team-section .team-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

/* Impressionen / gallery */
.gallery-section {
  padding: 4vmax var(--gutter) 6vmax;
  background: var(--white);
}

.gallery-intro {
  max-width: 920px;
  margin: 0 auto 4rem;
  text-align: center;
}

.gallery-intro h3 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.2;
}

.gallery {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  border-radius: 8px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery a:hover img { transform: scale(1.04); }

/* Anfahrt page */
.anfahrt-section {
  padding: 4vmax var(--gutter) 6vmax;
  background: var(--white);
}

.anfahrt-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-heading);
}

.anfahrt-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.anfahrt-info h4 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
}

.anfahrt-info h4:first-child { margin-top: 0; }

.anfahrt-info p,
.anfahrt-info ul {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.anfahrt-info ul {
  list-style: none;
  padding: 0;
}

.anfahrt-info ul li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.anfahrt-info ul li:last-child { border-bottom: none; }
.anfahrt-info ul li .day { color: var(--text-soft); }

.anfahrt-info a {
  color: var(--text);
  text-decoration: underline;
}
.anfahrt-info a:hover { color: var(--gold-dark); }

.anfahrt-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background: #ddd;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.map-placeholder-text p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.map-placeholder-text p:nth-child(2) {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Karriere */
.karriere-section {
  padding: 4vmax var(--gutter) 6vmax;
  background: var(--white);
}

.karriere-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.karriere-grid .content-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.karriere-text h3 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.karriere-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.karriere-text a {
  color: var(--text);
  text-decoration: underline;
}

.section-wide {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-narrow {
  max-width: 920px;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  text-align: center;
  font-weight: 500;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 1rem auto 3rem;
  max-width: 680px;
}

.divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* Reuse showcase / services / team / etc. for inner pages */
.showcase {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.showcase a, .showcase .tile {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: block;
}

.showcase .tile-large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase a:hover img { transform: scale(1.05); }

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.service-card .card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .card-image img { transform: scale(1.05); }

.service-card .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text);
  font-size: 0.96rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.service-card .card-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  align-self: flex-start;
}

.service-card .card-link::after {
  content: " →";
  transition: margin-left 0.2s;
  display: inline-block;
}

.service-card .card-link:hover {
  color: var(--gold-dark);
}

.service-card .card-link:hover::after { margin-left: 4px; }

.service-detail {
  background: var(--white);
  padding: 2.5rem 2.75rem;
  border-radius: 8px;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--gold);
}

.service-detail h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-detail h4 {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--gold-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-detail p {
  color: var(--text);
  margin-bottom: 0.95rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.team-card .team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img { transform: scale(1.04); }

.team-card .team-body { padding: 1.5rem 1.25rem 1.75rem; }
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }

.team-card .role {
  font-size: 0.74rem;
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.team-card p {
  color: var(--text);
  font-size: 0.92rem;
}

.team-card.lead {
  grid-column: span 2;
}

.team-card.lead .team-photo {
  aspect-ratio: 16 / 10;
}

/* About flex */
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-flex img {
  width: 100%;
  border-radius: 8px;
}

.about-flex .text-block h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.about-flex .text-block p {
  color: var(--text);
  margin-bottom: 1rem;
}

.about-flex .text-block .btn { margin-top: 0.5rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery a:hover img { transform: scale(1.06); }

/* Scroll-triggered fade-in (added by JS; no-JS users see images normally) */
.gallery a.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery a.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .gallery a.reveal { opacity: 1; transform: none; transition: none; }
}

/* Contact band */
.contact-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--white);
  border-radius: 8px;
  padding: 3rem;
  border: 1px solid var(--border-soft);
}

.contact-band h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.55rem;
  display: inline-block;
}

.hours-list {
  list-style: none;
  font-size: 1rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}

.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--text-soft); }
.hours-list .time { color: var(--text); }

.contact-info p {
  margin-bottom: 0.95rem;
  color: var(--text);
}

.contact-info .label {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  min-width: 90px;
}

.contact-info a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
}
.contact-info a:hover { color: var(--gold); }

/* CTA band */
.cta-band {
  background: var(--text-heading);
  color: var(--white);
  padding: 4.5rem var(--gutter);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-band p {
  margin-bottom: 2rem;
  opacity: 0.94;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  color: var(--gold-btn) !important;
  border: 1px solid var(--gold-btn);
}
.btn-outline:hover {
  background: var(--gold-btn);
  color: var(--white) !important;
}

.btn-accent { background: var(--gold-btn); }
.btn-accent:hover { background: var(--gold-btn-dark); }
.btn-secondary {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer (legacy multi-column for other pages) */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid h4 {
  color: var(--text-heading);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-grid p, .footer-grid li {
  font-size: 0.94rem;
  color: var(--text);
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.35rem; }

.footer-grid a {
  color: var(--gold-dark);
  text-decoration: none;
}

.footer-grid a:hover { color: var(--gold); }

.footer-brand .name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-left: 0.5rem;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-mute);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.lightbox-close:hover { opacity: 1; }

/* Prose */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
}

.prose p {
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.7;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
}

.prose h3 {
  font-family: var(--sans);
  color: var(--gold-dark);
  margin: 1.75rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.prose ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text);
}

.prose ul li { margin-bottom: 0.4rem; }

.prose a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--gold);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1000px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .showcase .tile-large {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  header { padding: 0.85rem var(--gutter); }
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .header-brand {
    order: 1;
    text-align: left;
  }
  .header-brand img {
    margin: 0;
  }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg);
    padding: 1rem var(--gutter);
    align-items: stretch;
    gap: 0.5rem;
    display: none;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-soft);
  }
  nav.main-nav > a:last-child { border-bottom: none; }
  nav.main-nav > a::after,
  nav.main-nav .nav-folder > .nav-folder-title::after { display: none; }

  .nav-folder {
    width: 100%;
    border-bottom: 1px solid var(--border-soft);
  }

  nav.main-nav .nav-folder > .nav-folder-title {
    width: 100%;
    text-align: left;
    padding: 0.85rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-folder > .nav-folder-title::before {
    content: "+";
    font-size: 1.2rem;
    color: var(--text-soft);
    margin-left: 1rem;
    order: 2;
    transition: transform 0.2s;
  }

  .nav-folder.open > .nav-folder-title::before {
    content: "−";
  }

  .nav-folder-items {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.5rem 1rem;
    width: 100%;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-folder.open .nav-folder-items {
    display: flex;
  }

  .nav-folder:hover .nav-folder-items { display: none; }
  .nav-folder.open:hover .nav-folder-items { display: flex; }

  .menu-toggle { display: block; order: 3; padding: 0.5rem 0.4rem; font-size: 1.85rem; }
  .header-cta { display: none; }

  .header-brand img { height: 68px; }

  .hero { padding: 1.5rem var(--gutter) 2rem; }
  .intro { padding: 3.5vmax 0 3vmax; }
  .intro-title { font-size: 1.7rem; }
  .feature { padding: 2.5vmax 0; }
  .services { padding: 4vmax 0; }
  .services-title { font-size: 2.2rem; margin-bottom: 2.5rem; }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-grid.reverse .feature-image { order: -1; }

  .feature-text h3 { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { justify-self: start; }

  .about-flex,
  .about-flex.image-right { grid-template-columns: 1fr; gap: 2rem; }

  .contact-band { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
  .section { padding: 4vmax var(--gutter); }
  .page-hero { min-height: 240px; padding: 3rem var(--gutter) 2rem; }
  .page-hero h1 { font-size: 1.9rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .service-detail { padding: 1.75rem 1.5rem; }

  .hero-image {
    aspect-ratio: 4 / 3;
  }

  .page-hero-image { aspect-ratio: 4 / 3; }

  .page-hero { padding: 1.5rem var(--gutter) 1.5rem; }

  .anfahrt-grid,
  .karriere-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-section .team-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .team-section .team-title { font-size: 2.2rem; margin-bottom: 2.5rem; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-grid.reverse > .content-image { grid-column: 1; }
  .content-grid.reverse > .content-text { grid-column: 1; grid-row: 2; }

  .content-grid .content-text h3 { font-size: 2rem; }
}
