:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef4fb;
  --text: #1b2736;
  --text-soft: #334862;
  --primary: #124c96;
  --primary-strong: #0f3d77;
  --danger-bg: #fff5f0;
  --danger-border: #ffbf9a;
  --danger-text: #7a2800;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(18, 76, 150, 0.1);
  --container: min(1120px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffd45a;
  outline-offset: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid #dce4ef;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 12px;
}

.brand-logo:focus-visible {
  outline-offset: 4px;
}

.brand-logo img {
  width: auto;
  max-width: min(200px, 42vw);
  height: auto;
  max-height: 4.25rem;
}

.brand {
  min-width: 0;
}

.brand-names {
  margin: 0.2rem 0;
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-name-line {
  display: block;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.2;
  margin: 0.25rem 0;
}

.subtitle {
  margin: 0;
  color: var(--text-soft);
}

.header-cta {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.62rem 1.05rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: #fff;
  border-color: #c8d8ea;
  color: var(--primary);
}

.site-nav {
  border-top: 1px solid #e6edf7;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0 0.8rem;
  align-items: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav-row a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.35rem;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid #c8d8ea;
  border-radius: 10px;
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  min-width: 44px;
}

.notice-wrap {
  margin-top: 0.8rem;
}

.closure-banner {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-left: 6px solid #ff7f3f;
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--danger-text);
  box-shadow: var(--shadow);
}

.closure-banner h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.closure-banner p {
  margin: 0.4rem 0;
}

.vertretung-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.vertretung-card {
  background: #fff;
  border: 1px solid #ffd6c2;
  border-radius: 10px;
  padding: 0.75rem;
}

.hero {
  position: relative;
  margin-top: 1rem;
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  /* Motiv sitzt links im Original: linken Bildbereich in den sichtbaren Ausschnitt ziehen */
  object-position: left center;
}

.hero-overlay {
  position: absolute;
  inset: auto 1rem 1rem;
  background: rgba(5, 16, 32, 0.84);
  color: #fff;
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  max-width: 40rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero-overlay p {
  margin: 0.35rem 0 0;
  color: #e3edf8;
  line-height: 1.55;
}

.leistungen-intro {
  color: var(--text-soft);
  margin: 0 0 1.25rem;
  max-width: 58rem;
}

/* Leistungskacheln (Orientierung ServoTech: Hover-Peek, Klick → Seitenpanel) */
.services-grid.leistung-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid.leistung-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .services-grid.leistung-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.leistung-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  background: var(--surface);
  border: 1px solid #dce4ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 100%;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.leistung-tile:hover,
.leistung-tile:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(18, 76, 150, 0.14);
  border-color: #b8cbe0;
}

.leistung-tile__activate:focus-visible {
  outline: 3px solid #ffd45a;
  outline-offset: 2px;
  z-index: 3;
}

.leistung-tile__surface {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  pointer-events: none;
}

.leistung-tile__icons {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.leistung-tile__arrow-circle {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
}

.leistung-tiles--hno .leistung-tile__arrow-circle {
  background: var(--primary);
}

.leistung-tile__arrow-circle svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
}

.leistung-tile__arrow-circle svg path {
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leistung-tile__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
}

.leistung-tile__teaser {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.leistung-tile__hover-peek {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(18, 76, 150, 0.94), rgba(15, 61, 119, 0.88));
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.leistung-tile__hover-peek p {
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .leistung-tile:hover .leistung-tile__hover-peek {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .leistung-tile__hover-peek {
    display: none;
  }
}

.leistung-tile__activate {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.leistung-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 43, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 4000;
}

.leistung-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.leistung-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 28rem);
  max-width: 100vw;
  background: #fff;
  box-shadow: -8px 0 32px rgba(17, 17, 17, 0.12);
  z-index: 4001;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

.leistung-drawer.is-open {
  transform: translateX(0);
}

.leistung-drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.9rem;
  border-bottom: 1px solid #dce4ef;
}

.leistung-drawer__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
}

.leistung-drawer__close {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 10px;
  border: 1px solid #dce4ef;
  background: #fff;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.leistung-drawer__close:hover,
.leistung-drawer__close:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.leistung-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.15rem 2rem;
  -webkit-overflow-scrolling: touch;
}

.leistung-drawer__body h4 {
  margin: 1.35rem 0 0.45rem;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 700;
}

.leistung-drawer__body h4:first-child {
  margin-top: 0;
}

.leistung-drawer__body p {
  margin: 0 0 0.85rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.leistung-drawer__body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.leistung-drawer__body li + li {
  margin-top: 0.35rem;
}

.leistung-drawer__body h3 {
  margin: 1.05rem 0 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.leistung-drawer__body ul.faq-rich-list {
  list-style: none;
  margin: 0.45rem 0 1rem;
  padding: 0;
}

.leistung-drawer__body ul.faq-rich-list > li + li {
  margin-top: 0;
}

.leistung-drawer__body ul.faq-rich-list > li {
  position: relative;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.65rem 0.55rem 1.75rem;
  border-radius: 11px;
  border: 1px solid #d5e2ef;
  background: linear-gradient(105deg, rgba(18, 76, 150, 0.07), rgba(255, 255, 255, 0.65));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  line-height: 1.45;
}

.leistung-drawer__body ul.faq-rich-list > li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.78rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 76, 150, 0.12);
}

.faq-panel-footnote {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #c5d4e5;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.faq-cross-ref {
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

.leistung-tiles--faq .leistung-tile__arrow-circle {
  background: linear-gradient(145deg, #157a6e, #0d5c52);
}

.leistung-tiles--faq .leistung-tile:hover,
.leistung-tiles--faq .leistung-tile:focus-within {
  border-color: #9cc9c3;
}

.leistung-tiles--faq .leistung-tile__hover-peek {
  background: linear-gradient(145deg, rgba(21, 122, 110, 0.95), rgba(13, 92, 82, 0.9));
}

.leistung-tiles--faq .leistung-tile__title {
  font-size: clamp(0.9rem, 1.85vw, 1.05rem);
  line-height: 1.28;
}

body.leistung-drawer-open {
  overflow: hidden;
}

body.subpage {
  background: var(--bg);
}

.subpage-header {
  background: var(--surface);
  border-bottom: 1px solid #dce4ef;
}

.subpage-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.subpage-home {
  font-weight: 700;
  text-decoration: none;
}

.article-main {
  padding: 1.5rem 0 3rem;
  max-width: 52rem;
}

.article-main h1 {
  margin-top: 0;
}

.article-main h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #b8dfff;
}

.hero-overlay h2 {
  margin: 0;
  line-height: 1.2;
}

.section {
  padding: 2.4rem 0;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.2;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card,
.info-box,
.team-card {
  background: var(--surface);
  border: 1px solid #dce4ef;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

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

.terminhinweis {
  margin-top: 1.1rem;
  max-width: 42rem;
}

.terminhinweis p {
  margin: 0.65rem 0 0;
}

.terminhinweis p:first-child {
  margin-top: 0.35rem;
}

.team-photo-frame {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  line-height: 0;
  overflow: hidden;
}

button.team-photo-frame {
  cursor: pointer;
}

button.team-photo-frame:focus-visible {
  outline: 3px solid #ffd45a;
  outline-offset: 3px;
}

.team-photo-frame img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.footer-email {
  margin: 1.15rem 0 0;
}

.btn-footer-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn-footer-mail:hover {
  background: rgba(255, 255, 255, 0.22);
}

.split {
  display: grid;
  gap: 1rem;
}

.team-grid {
  display: grid;
  gap: 1rem;
}

.team-card h3 {
  margin-bottom: 0.3rem;
}

.team-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.clean-list {
  padding-left: 1.1rem;
}

.site-footer {
  background: #10253f;
  color: #dce7f4;
  padding: 1.25rem 0;
}

.site-footer a {
  color: #fff;
}

.small {
  font-size: 0.95rem;
}

.footer-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.footer-link-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.link-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding: 0;
}

.link-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d5e2ef;
  background: linear-gradient(145deg, rgba(18, 76, 150, 0.07), rgba(255, 255, 255, 0.9));
  padding: 0.34rem 0.7rem;
  text-decoration: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

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

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .vertretung-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    padding: 0.7rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    position: static;
  }

  .hero-overlay {
    position: static;
    margin: 0.7rem 1rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .leistung-tile,
  .leistung-tile__hover-peek,
  .leistung-drawer,
  .leistung-drawer-backdrop {
    transition: none;
  }

  .leistung-tile:hover,
  .leistung-tile:focus-within {
    transform: none;
  }
}


.footer-sep {
  display: inline-block;
  margin: 0 0.15rem;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .footer-sep {
    display: none;
  }
}
