:root {
    --dark-blue: #0a2336;
    --dark-blue-deep: #061626;
    --light-blue: #b5d1e5;
    --off-white: #e9ebed;
    --paper: #f5f7f9;
    --black: #232728;
    --display: 'Nohemi', 'Roboto', sans-serif;
    --body: 'Roboto', sans-serif;
    --wrap: 1160px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    background: var(--dark-blue);
  }

  /* ---------- Tones: every section is either dark or light ---------- */
  .tone-dark {
    --bg: var(--dark-blue);
    --bg-alt: var(--dark-blue-deep);
    --fg: var(--off-white);
    --fg-muted: rgba(233, 235, 237, 0.72);
    --accent: var(--light-blue);
    --line: rgba(181, 209, 229, 0.18);
    --card: rgba(181, 209, 229, 0.05);
    --card-hover: rgba(181, 209, 229, 0.1);
    --btn-bg: var(--light-blue);
    --btn-fg: var(--dark-blue);
    --circuit: var(--light-blue);
  }

  .tone-light {
    --bg: var(--paper);
    --bg-alt: #ffffff;
    --fg: var(--dark-blue);
    --fg-muted: rgba(10, 35, 54, 0.7);
    --accent: #2f6d97;
    --line: rgba(10, 35, 54, 0.12);
    --card: #ffffff;
    --card-hover: #ffffff;
    --btn-bg: var(--dark-blue);
    --btn-fg: var(--off-white);
    --circuit: #2f6d97;
  }

  .sec {
    position: relative;
    background: var(--bg);
    color: var(--fg);
    overflow: hidden;
  }

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

  .inner {
    position: relative;
    z-index: 1;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 112px 32px;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
  }

  h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }

  .sec-lede {
    font-size: 18px;
    font-weight: 300;
    color: var(--fg-muted);
    max-width: 620px;
  }

  /* ---------- Circuit decoration ---------- */
  /* Circuit lines live only in fixed-height bands in the section padding,
     so they can never cross text, whatever the viewport size. */
  .circuit {
    position: absolute;
    left: 0;
    width: 100%;
    height: 56px;
    pointer-events: none;
    z-index: 0;
  }

  .circuit.top { top: 8px; }
  .circuit.bottom { bottom: 8px; }

  .circuit path {
    fill: none;
    stroke: var(--circuit);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0.22;
  }

  .circuit circle {
    fill: var(--circuit);
    opacity: 0.5;
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.9; }
  }

  .circuit circle.pulse { animation: pulse 3s ease-in-out infinite; }
  .circuit circle.d2 { animation-delay: 1s; }
  .circuit circle.d3 { animation-delay: 2s; }

  .grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
  }

  /* ---------- Header ---------- */
  .site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    color: var(--fg);
  }

  .site-head .inner {
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fg);
  }

  .brand svg { width: 32px; height: 32px; }
  .brand svg path { fill: var(--fg); }

  .brand-name {
    font-family: var(--display);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .brand-name span { color: var(--accent); font-weight: 300; }

  .nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .nav a {
    font-size: 14px;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .nav a:hover { color: var(--fg); }

  .nav .nav-call {
    color: var(--btn-fg);
    background: var(--btn-bg);
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 500;
  }

  .nav .nav-call:hover { color: var(--btn-fg); opacity: 0.9; }

  /* ---------- Buttons ---------- */
  .btns { display: flex; gap: 12px; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .btn svg { width: 16px; height: 16px; }

  .btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
  .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10, 35, 54, 0.2); }

  .btn.secondary {
    color: var(--fg);
    border: 1px solid var(--line);
  }

  .btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

  /* ---------- Hero ---------- */
  .hero .inner {
    padding-top: 120px;
    padding-bottom: 120px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
  }

  .hero h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
  }

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

  .hero .sec-lede { margin-bottom: 40px; }

  .hero-facts {
    border-top: 1px solid var(--line);
  }

  .fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
  }

  .fact-value {
    font-size: 16px;
    text-align: right;
  }

  .fact-value a { color: inherit; text-decoration: none; }

  .fact-value.big {
    font-family: var(--display);
    font-weight: 500;
    font-size: 22px;
  }

  /* ---------- Services ---------- */
  .services-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: transparent;
    border: 1px solid var(--line);
  }

  /* Linien wie im Mockup (1 px), aber ohne graue Fläche in leeren Rasterzellen:
     Jede Kachel zeichnet ihren Rand selbst in die 1-px-Lücke. */
  .services-grid > * { box-shadow: 0 0 0 1px var(--line); }

  .service {
    background: var(--card);
    padding: 32px 28px 36px;
    transition: background 0.25s ease;
  }

  .tone-dark .service { background: var(--bg); }
  .tone-dark .service:hover { background: var(--card-hover); }
  .tone-light .service:hover { background: #eef3f7; }

  .service-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--accent);
  }

  .service-icon svg { width: 20px; height: 20px; }

  .service h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .service p {
    font-size: 15px;
    font-weight: 300;
    color: var(--fg-muted);
  }

  .service-cta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
  }

  .tone-dark .service.service-cta,
  .tone-light .service.service-cta { background: var(--btn-bg); }

  .service-cta h3,
  .service-cta p,
  .service-cta .service-cta-link { color: var(--btn-fg); }

  .service-cta p { opacity: 0.8; }

  .service-cta-link {
    margin-top: 20px;
    font-family: var(--display);
    font-weight: 500;
    font-size: 18px;
  }

  .tone-dark .service.service-cta:hover,
  .tone-light .service.service-cta:hover { background: var(--btn-bg); opacity: 0.92; }

  /* ---------- About ---------- */
  .about .inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: center;
  }

  .photo-slot {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin: 0;
  }

  .photo-slot img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Without photo: heading left, text right – a deliberate layout, no empty frame */
  .about.no-photo .photo-slot { display: none; }
  .about.no-photo .inner { grid-template-columns: 1fr; }

  .about.no-photo .about-text {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: start;
  }

  .about.no-photo .about-head {
    position: sticky;
    top: 120px;
  }

  .about.no-photo h2 { font-size: clamp(36px, 4.6vw, 60px); }

  .about-text p {
    font-size: 17px;
    font-weight: 300;
    color: var(--fg-muted);
    margin-bottom: 16px;
  }

  .values {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .value strong {
    display: block;
    font-family: var(--display);
    font-weight: 500;
    font-size: 17px;
    margin-bottom: 4px;
  }

  .value span { font-size: 14px; color: var(--fg-muted); font-weight: 300; }

  /* ---------- Area ---------- */
  .area .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }

  .towns {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .town {
    font-size: 14px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--fg);
  }

  .town.home {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: transparent;
    font-weight: 500;
  }

  .map svg { width: 100%; height: auto; display: block; }
  .map .ring { fill: none; stroke: var(--line); stroke-width: 1; }
  .map .ring.dash { stroke-dasharray: 3 5; stroke: var(--accent); opacity: 0.5; }
  .map .road { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.25; stroke-dasharray: 4 4; }
  .map .dot { fill: var(--accent); }
  .map .dot.home { fill: var(--fg); }
  .map text { fill: var(--fg-muted); font-family: var(--body); font-size: 13px; }
  .map text.home { fill: var(--fg); font-family: var(--display); font-weight: 500; font-size: 16px; }

  /* ---------- Gallery placeholder ---------- */
  .gallery-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .gallery-item { display: block; overflow: hidden; }

  .gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
  }

  /* ---------- Jobs ---------- */
  .jobs-list { margin-top: 48px; display: grid; gap: 24px; }

  .job {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 36px 36px 32px;
  }

  .tone-dark .job { background: var(--card); }

  .job-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .job h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.25;
  }

  .job-meta { display: flex; flex-wrap: wrap; gap: 8px; }

  .job-meta span {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--fg-muted);
  }

  .job-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 28px 0 32px;
  }

  .job h4 {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
  }

  .job ul { list-style: none; }

  .job li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 300;
    color: var(--fg-muted);
  }

  .job li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 1px;
    background: var(--accent);
  }

  /* ---------- Contact ---------- */
  .contact .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
  }

  .contact .btns { margin-top: 36px; }

  .contact-list { border-top: 1px solid var(--line); }

  /* ---------- Footer ---------- */
  .site-foot .inner {
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
  }

  .site-foot a { color: var(--fg-muted); text-decoration: none; margin-left: 24px; }
  .site-foot a:hover { color: var(--accent); }

  .site-foot { border-top: 1px solid var(--line); }

  /* ---------- Sticky call (mobile) ---------- */
  .sticky-call {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 6px;
    background: var(--light-blue);
    color: var(--dark-blue);
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(6, 22, 38, 0.35);
  }

  .sticky-call svg { width: 18px; height: 18px; }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .hero .inner,
    .about .inner,
    .area .inner,
    .contact .inner { grid-template-columns: 1fr; gap: 48px; }
    .about.no-photo .about-text { grid-template-columns: 1fr; gap: 8px; }
    .about.no-photo .about-head { position: static; }
    .nav a:not(.nav-call) { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .job-cols { grid-template-columns: 1fr; gap: 24px; }
  }

  @media (max-width: 640px) {
    .inner { padding: 72px 20px; }
    .site-head .inner { padding: 14px 20px; }
    .hero .inner { padding-top: 64px; padding-bottom: 72px; }
    .nav .nav-call { display: none; }
    .values { grid-template-columns: 1fr; gap: 16px; }
    .job { padding: 24px 20px; }
    .sticky-call { display: flex; }
    .site-foot .inner { padding-bottom: 96px; }
    .site-foot a { margin: 0 24px 0 0; }
  }

/* ---------- Inhaltsseiten (Impressum, Datenschutz, künftige Seiten) ---------- */
.page-head .inner { padding-top: 96px; padding-bottom: 56px; }

.page-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-body .inner { padding-top: 64px; max-width: 820px; margin: 0 auto; }

.page-body h2 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { font-size: 16px; font-weight: 300; color: var(--fg-muted); margin-bottom: 10px; }
.page-body strong { color: var(--fg); font-weight: 500; }
.page-body ul { padding-left: 20px; }
.page-body a { color: var(--accent); }

/* ---------- Header-Navigation auf Unterseiten ---------- */
.nav a[aria-current="page"] { color: var(--fg); }

/* ---------- Helle Abschnitte wechseln nach tatsächlicher Position ab ----------
   Ausgeblendete Abschnitte (Galerie, Karriere) stehen nicht im HTML, daher
   folgen nie zwei gleich helle Abschnitte aufeinander. */
main > .sec.tone-light { background: var(--bg); }
main > .sec.tone-light:nth-child(odd) { background: var(--bg-alt); }

/* Stellenkarte immer im Gegenton zum Abschnitt, auch wenn der Wechsel oben ihn weiß macht */
main > .sec.tone-light:nth-child(odd) .job { background: var(--bg); }

/* ---------- Weniger Bewegung, wenn im System so eingestellt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circuit circle.pulse { animation: none; opacity: 0.6; }
  .btn, .service { transition: none; }
}

/* ---------- Anruf-Kachel als Band über die ganze Rasterbreite ---------- */
.services-grid > .service-cta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 40px;
  align-items: center;
  padding: 32px 36px;
}
.service-cta h3, .service-cta p { grid-column: 1; }
.service-cta h3 { margin-bottom: 6px; }
.service-cta .service-cta-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  font-size: 22px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .services-grid > .service-cta { grid-template-columns: 1fr; padding: 28px 24px; }
  .service-cta .service-cta-link { grid-column: 1; grid-row: auto; margin-top: 16px; font-size: 20px; }
}
