/* ==========================================================================
   S+K Werft GmbH — Website
   Designsystem: Industriell / Maritime
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variablen
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --navy-950: #05121F;
  --navy-900: #071A2B;
  --navy-800: #0A2540;
  --navy-700: #155275;
  --navy-600: #1D648F;
  --steel-700: #33475B;
  --steel-500: #64748B;
  --steel-400: #8798AB;
  --mist-100: #EEF3F8;
  --mist-50: #F7FAFC;
  --white: #FFFFFF;
  --accent: #1D648F;
  --accent-600: #155275;
  --accent-100: #DCEAF4;
  --line: #DCE4EC;

  /* Typografie – Schrift des Unternehmensdocuments (Zeugnis), Verdana-Schnitt */
  --font-display: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;
  --font-body: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 900px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(5, 18, 31, .06), 0 1px 3px rgba(5, 18, 31, .08);
  --shadow-md: 0 6px 20px rgba(5, 18, 31, .08), 0 2px 6px rgba(5, 18, 31, .06);
  --shadow-lg: 0 24px 60px rgba(5, 18, 31, .16);

  --header-h: 78px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--steel-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--navy-800);
  text-transform: uppercase;
  text-wrap: balance;
}

/* Verdana ist deutlich breiter als Kondensschnitte – Größen entsprechend angepasst */
h1 { font-size: clamp(1.75rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

strong { color: var(--navy-800); font-weight: 600; }

.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.275rem);
  line-height: 1.72;
  color: var(--steel-700);
}

/* Kapitelmarke */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--accent);
  flex: none;
}

.eyebrow--light { color: var(--accent); }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 + p { margin-top: 1.15rem; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--mist { background: var(--mist-50); }
.section--dark { background: var(--navy-900); color: #C3D0DC; }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.85rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .925rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}

.btn:hover {
  --btn-bg: var(--accent-600);
  --btn-fg: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .45);
}

.btn--ghost:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--navy-800);
  border-color: var(--white);
  color: var(--navy-800);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: var(--navy-800);
}

.btn--outline:hover {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--white);
  color: var(--white);
}

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--navy-800);
}

.btn--light:hover { --btn-bg: var(--accent); --btn-fg: var(--white); color: var(--white); }

.btn--sm { padding: .65rem 1.3rem; font-size: .82rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy-700);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .2rem;
  transition: gap .2s var(--ease), color .2s var(--ease);
}

.arrow-link::after { content: "\2192"; transition: transform .2s var(--ease); }
.arrow-link:hover { color: var(--accent-600); gap: .8rem; }
.arrow-link:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Topbar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  color: #93A7BA;
  font-size: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 42px;
  flex-wrap: wrap;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #93A7BA;
  transition: color .2s var(--ease);
}

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

.topbar svg { width: 14px; height: 14px; flex: none; }

.topbar__tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   7. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}

.site-header.is-stuck {
  background: rgba(7, 26, 43, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(5, 18, 31, .35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  flex: none;
}

.brand:hover { color: var(--white); }

.brand__mark {
  width: 46px;
  height: auto;
  flex: none;
}

/* Wortmarke: gesetzter Text statt gescannter Bildmarke */
.brand__wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: none;
  line-height: 1;
  white-space: nowrap;
}

.brand__wordmark-main {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFFFFF 20%, #A9D6F5 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__wordmark-sub {
  margin-top: .34rem;
  font-size: .52rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #8FC6EC;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand__wordmark-main { color: #E4F2FD; }
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .28rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: .4rem 0;
  color: #D6E0EA;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: var(--white); }

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav__actions { display: flex; align-items: center; gap: .85rem; }
.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform .25s var(--ease), opacity .2s var(--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); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 82vh, 820px);
  padding-block: clamp(4rem, 12vh, 8rem);
  background: var(--navy-900);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(5, 18, 31, .94) 0%, rgba(7, 26, 43, .84) 42%, rgba(7, 26, 43, .35) 100%),
    linear-gradient(0deg, rgba(5, 18, 31, .75) 0%, rgba(5, 18, 31, 0) 45%);
}

.hero__inner { max-width: 780px; }

.hero h1 {
  color: var(--white);
  margin-block: .3rem 1.35rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  color: #C9D6E2;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  max-width: 620px;
}

.hero .btn-row { margin-top: 2.25rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  background: rgba(29, 100, 143, .14);
  border: 1px solid rgba(29, 100, 143, .55);
  border-radius: 100px;
  color: #A9D6F5;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Kennzahlenleiste am Hero-Unterrand */
.hero-stats {
  position: relative;
  background: var(--navy-950);
  border-top: 3px solid var(--accent);
}

.hero-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid rgba(255, 255, 255, .09);
}

.hero-stat:last-child { border-right: 0; }

.hero-stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.hero-stat__value span { color: var(--accent); }

.hero-stat__label {
  margin-top: .5rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-400);
}

/* --------------------------------------------------------------------------
   9. Seitenkopf (Unterseiten)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 11vw, 7.5rem) clamp(3rem, 7vw, 5rem);
  background: var(--navy-900);
  overflow: hidden;
}

.page-head__media { position: absolute; inset: 0; z-index: -2; }

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

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(5, 18, 31, .95) 0%, rgba(7, 26, 43, .86) 55%, rgba(7, 26, 43, .55) 100%);
}

.page-head h1 { color: var(--white); margin-block: .25rem 1rem; }
.page-head .lead { color: #C3D2E0; max-width: 680px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.breadcrumb a { color: #A9BCCA; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--navy-600); }
.breadcrumb [aria-current] { color: var(--accent); }

/* --------------------------------------------------------------------------
   10. Karten
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist-100); }

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.06); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
}

.card__num {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: .55rem;
}

.card__body h3 { margin-bottom: .7rem; }
.card__body p { font-size: .97rem; color: var(--steel-500); }
.card__body .arrow-link { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }

.card--flat { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2.1rem); }
.card--flat:hover { box-shadow: var(--shadow-md); }

.card--icon {
  border-top: 3px solid var(--accent);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.15rem;
  background: var(--accent-100);
  border-radius: var(--radius);
  color: var(--accent-600);
}

.icon-box svg { width: 26px; height: 26px; }
.icon-box--dark { background: rgba(29, 100, 143, .16); color: var(--accent); }

/* Leistungskarte mit Bild seitlich */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}

.service-row + .service-row { margin-top: clamp(3rem, 6vw, 5.5rem); }
.service-row:nth-child(even) .service-row__media { order: -1; }

.service-row__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist-100);
  box-shadow: var(--shadow-md);
}

.service-row__media img { width: 100%; height: 100%; object-fit: cover; }

.service-row__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .55rem 1.15rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-row__body h3 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.service-row__body p + p { margin-top: 1rem; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .7rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: .97rem;
  color: var(--steel-700);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   11. Feature / Split
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media { order: 2; }

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.split__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 45%;
  height: 55%;
  border-right: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  pointer-events: none;
}

.split__body h2 { margin-bottom: 1.2rem; }

.badge-float {
  position: absolute;
  right: clamp(-.75rem, -1vw, 0rem);
  bottom: clamp(1rem, 3vw, 2rem);
  background: var(--accent);
  color: var(--white);
  padding: 1rem 1.35rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 200px;
}

.badge-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--white);
}

.badge-float span {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .35rem;
}

/* --------------------------------------------------------------------------
   12. Kennzahlen
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.stat__value small { font-size: .5em; }

.stat__label {
  margin-top: .6rem;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9FB2C4;
}

/* --------------------------------------------------------------------------
   13. Galerie
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: clamp(.6rem, 1.4vw, 1rem);
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-800);
  cursor: pointer;
}

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .4s var(--ease);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 18, 31, .7) 0%, rgba(5, 18, 31, 0) 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }

.gallery__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: .8rem 1rem;
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }

.gallery__item--btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .6rem;
  background: var(--navy-800);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
}

.gallery__item--btn:hover { background: var(--accent); }

.gallery__item--btn strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  text-transform: uppercase;
}

.gallery__item--btn span { font-size: .8rem; color: rgba(255, 255, 255, .75); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 10, 18, .95);
  backdrop-filter: blur(4px);
}

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

.lightbox__figure { max-width: 1100px; width: 100%; }

.lightbox__img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__cap {
  margin-top: .9rem;
  color: #A9BCCA;
  font-size: .85rem;
  text-align: center;
  letter-spacing: .05em;
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease);
}

.lightbox__close:hover { background: var(--accent); }

/* --------------------------------------------------------------------------
   14. Zeitleiste (Geschichte)
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: clamp(2rem, 5vw, 3.5rem); }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line));
}

.timeline__item { position: relative; padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(2rem, 5vw, 3.5rem) + 0px);
  top: .5rem;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: .04em;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy-800);
  margin: .45rem 0 .5rem;
}

.timeline__text { font-size: .98rem; color: var(--steel-500); }

/* --------------------------------------------------------------------------
   15. Akkordeon
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy-800);
  transition: color .2s var(--ease);
}

.accordion__trigger:hover { color: var(--accent-600); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--navy-800);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), background .25s var(--ease);
}

.accordion__icon::before { width: 12px; height: 2px; }
.accordion__icon::after { width: 2px; height: 12px; }

.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--accent); border-color: var(--accent); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { background: var(--white); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
}

.accordion__panel > div { padding: 0 0 1.5rem; color: var(--steel-500); font-size: .99rem; max-width: 78ch; }

/* --------------------------------------------------------------------------
   16. Prozess
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  counter-reset: step;
}

.process__step { position: relative; padding-top: 3.4rem; }

.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--line);
}

.process__step::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 4.4rem;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

.process__step:last-child::after { display: none; }

.process__step h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.process__step p { font-size: .93rem; color: var(--steel-500); }

/* --------------------------------------------------------------------------
   17. Tabellen / Faktenliste
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(140px, .45fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.facts__key {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-400);
  padding-top: .15rem;
}

.facts__val { color: var(--navy-800); font-weight: 500; }
.facts__val a { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.facts__val a:hover { color: var(--accent-600); text-decoration-color: var(--accent); }

/* Chip-Reihen */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .9rem;
  background: var(--mist-100);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-700);
}

.chip svg { width: 14px; height: 14px; color: var(--accent); }

button.chip {
  cursor: pointer;
  background: var(--white);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

button.chip:hover { border-color: var(--accent); color: var(--accent-600); transform: translateY(-1px); }

button.chip[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

button.chip[aria-pressed="true"]:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   18. Zitat
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -.25em;
  right: .1em;
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 11rem);
  line-height: 1;
  color: rgba(29, 100, 143, .18);
}

.quote__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  text-transform: none;
}

.quote__author {
  position: relative;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--steel-400);
  font-size: .88rem;
}

.quote__author::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex: none; }
.quote__author strong { display: block; color: var(--white); font-weight: 600; }

/* --------------------------------------------------------------------------
   19. Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-panel {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--navy-900);
  color: #B7C6D4;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--accent);
}

.contact-panel h3 { color: var(--white); margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact-item:last-of-type { border-bottom: 0; }

.contact-item__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(29, 100, 143, .14);
  border-radius: var(--radius);
  color: var(--accent);
}

.contact-item__icon svg { width: 20px; height: 20px; }

.contact-item__label {
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: .25rem;
}

.contact-item__value { color: var(--white); font-weight: 500; line-height: 1.55; }
.contact-item__value a { color: var(--white); }
.contact-item__value a:hover { color: var(--accent); }

/* Formular */
.form { display: grid; gap: 1.15rem; }

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }

.field { display: flex; flex-direction: column; gap: .45rem; }

.field label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.field label span { color: var(--accent-600); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .97rem;
  color: var(--navy-800);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea { resize: vertical; min-height: 150px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 100, 143, .16);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--steel-400); }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: .7rem;
  font-size: .88rem;
  color: var(--steel-500);
}

.field--check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.field--check a { text-decoration: underline; text-underline-offset: 2px; }

.form__note { font-size: .84rem; color: var(--steel-400); }

.form__alert {
  display: none;
  padding: .95rem 1.15rem;
  background: #E9F7EF;
  border-left: 4px solid #22A05B;
  border-radius: var(--radius);
  color: #146C43;
  font-size: .92rem;
  font-weight: 500;
}

.form__alert.is-visible { display: block; }
.field--error input,
.field--error textarea,
.field--error select { border-color: #D93A3A; }

/* --------------------------------------------------------------------------
   20. Karte / Anfahrt
   -------------------------------------------------------------------------- */
.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-800);
  min-height: 340px;
  box-shadow: var(--shadow-md);
}

.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.15) contrast(1.02); }

.route-links { display: grid; gap: .75rem; margin-top: 1.5rem; }

.route-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.route-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  color: var(--navy-800);
}

.route-link svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   21. CTA-Band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--navy-800);
  overflow: hidden;
  text-align: center;
}

.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 18, 31, .93), rgba(10, 37, 64, .86));
}

.cta h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta p { color: #C3D2E0; max-width: 60ch; margin: 1.15rem auto 0; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #8FA3B6; }

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.site-footer h4 {
  font-size: .82rem;
  letter-spacing: .16em;
  color: var(--white);
  margin-bottom: 1.15rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer p { font-size: .92rem; line-height: 1.7; }

.site-footer a { color: #8FA3B6; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--accent); }

.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }

.footer-brand { display: flex; flex-direction: column; gap: 1.15rem; }
.footer-brand .brand { margin-bottom: .25rem; }
.footer-brand__text { font-size: .93rem; line-height: 1.75; }

.socials { display: flex; gap: .6rem; }

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  color: #B7C6D4;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.socials a:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .84rem;
}

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.75rem; margin-bottom: .9rem; }
.legal h2:first-of-type { margin-top: 2rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: .6rem; }
.legal p, .legal li { font-size: .97rem; color: var(--steel-500); }
.legal p + p { margin-top: .9rem; }
.legal ul { margin: .9rem 0 0; padding-left: 1.2rem; }
.legal li + li { margin-top: .4rem; }

/* --------------------------------------------------------------------------
   23. Utility
   -------------------------------------------------------------------------- */
.divider { height: 1px; background: var(--line); margin-block: clamp(2rem, 5vw, 3.5rem); }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 1rem; color: var(--white); }

/* Einblend-Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* Nach-oben-Button */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 150;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: var(--shadow-md);
  transition: all .3s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .process__step:nth-child(2n)::after { display: none; }
}

@media (max-width: 1000px) {
  :root { --header-h: 70px; }

  .nav__toggle { display: flex; }

  .nav__panel {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, .08);
    transition: max-height .4s var(--ease);
    box-shadow: 0 20px 40px rgba(5, 18, 31, .3);
  }

  .nav__panel.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem var(--gutter) 1.5rem;
  }

  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .07); }

  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .nav__link::after { display: none; }
  .nav__actions .btn { display: none; }
  .nav__panel .btn { display: flex; margin-top: 1.25rem; }

  .split,
  .service-row,
  .contact-grid { grid-template-columns: 1fr; }

  .split--reverse .split__media,
  .service-row:nth-child(even) .service-row__media { order: 0; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat:nth-child(2n) { border-right: 0; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }

  .brand__wordmark { height: 26px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .topbar { display: none; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }

  .form__row { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr; gap: .3rem; }
  .process { grid-template-columns: 1fr; }
  .process__step::after { display: none; }

  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__bar { justify-content: flex-start; }

  .quote::before { font-size: 6rem; }
}

@media (max-width: 520px) {
  .brand__wordmark { height: 24px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr; }
  .hero-stats__grid { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .hero-stat:last-child { border-bottom: 0; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

/* --------------------------------------------------------------------------
   25. Druck & Bewegungsreduzierung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .cta, .to-top, .lightbox, .nav__actions { display: none !important; }
  body { color: #000; }
  .hero, .page-head { min-height: auto; background: #fff; color: #000; }
}
