/* ==========================================================================
   Designvorlage Version C: Editorial
   Typografie: Fraunces (Headlines) + Public Sans (Body)
   Farbwelt: Warmes Papier, Tinten-Grün, Terrakotta & Anthrazit
   ========================================================================== */

/* Schriften liegen auf dem eigenen Server (SIL Open Font License, Dateien von Fontsource).
   Kein Abruf bei Google: Besucher-IPs gehen an niemanden weiter. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FBF9F4;
  --card: #FFFFFF;
  --ink: #23201B;
  --ink-light: #3D3933;
  --muted: #6B655C;
  --muted-light: #8C8478;
  --line: #E5DFD3;
  --line-strong: #D4CBBC;
  
  --green: #2F5D50;
  --green-dark: #234A40;
  --green-soft: #E7EFEA;
  --green-soft-alt: #EDF3F0;
  
  --terra: #C4552D;
  --terra-dark: #A8461F;
  --terra-soft: #F7E7DE;
  --terra-soft-light: #FBF0EB;

  --amber: #D97706;
  --amber-soft: #FEF3C7;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-sans: var(--font-body); /* wurde in .wordmark-sub benutzt, war aber nie definiert */
  
  --shadow-sm: 0 2px 8px rgba(35, 32, 27, 0.04);
  --shadow-md: 0 10px 28px rgba(35, 32, 27, 0.07);
  --shadow-lg: 0 18px 45px rgba(35, 32, 27, 0.11);
  --shadow-focus: 0 0 0 3px rgba(47, 93, 80, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Icons */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--green-dark);
}

.badge-terra {
  background: var(--terra-soft);
  color: var(--terra-dark);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-terra {
  background: var(--terra);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(196, 85, 45, 0.28);
}

.btn-terra:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 85, 45, 0.36);
}

.btn-green {
  background: var(--green);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(47, 93, 80, 0.25);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-line {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.75rem 1.4rem;
}

.btn-line:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Haupt-Header (Single Navigation Bar - clean & elegant)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

/* Mehr Freiraum für die Menüleiste, damit Links nicht umbrechen */
.main-header .container,
.header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.1rem;
  width: min(1440px, 95%);
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  white-space: nowrap;
}

.wordmark b {
  color: var(--terra);
}

.wordmark-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark-title b {
  color: var(--terra);
}

.wordmark-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item,
.has-dropdown {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.4rem 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
  white-space: nowrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--green);
}

.phone-link .icon {
  width: 17px;
  height: 17px;
  color: var(--green);
}

@media (max-width: 1280px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.88rem;
    padding: 0.35rem 0.15rem;
  }
  .header-inner,
  .main-header .container {
    gap: 0.8rem;
  }
}

@media (max-width: 1100px) {
  .phone-link {
    display: none;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
}

/* Dropdown Menu für Serviceleistungen */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 330px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.8rem;
  display: none;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--green-soft);
}

.dropdown-item .icon {
  color: var(--terra);
  margin-top: 0.2rem;
}

.dropdown-item strong {
  display: block;
  font-size: 0.93rem;
  color: var(--ink);
}

.dropdown-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 4.8rem 0 3.2rem;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  color: var(--terra);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  max-width: 24ch;
  margin: 0 auto 1.3rem;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 48rem;
  margin: 0 auto 2.2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust .icon {
  color: var(--green);
}

/* Service Detail Page Hero */
.service-hero {
  padding: 3.5rem 0 2.8rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(231, 239, 234, 0.4) 100%);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--green);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

/* Held ohne Bild: Text bekommt die volle Breite, bleibt aber in guter
   Lesebreite (ca. 70 Zeichen), rechts bleibt bewusste Ruhe. */
.service-hero-grid--text {
  display: block;
}
.service-hero-grid--text > div {
  max-width: 46rem;
}

.service-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.service-hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.service-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.meta-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.meta-box .num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.meta-box .lbl {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-hero-media {
  position: relative;
}

.service-hero-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.service-hero-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 280px;
}

/* Service Grid (Home) */
.services-section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.12rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line);
  transition: background 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.service-card:hover::before {
  background: var(--terra);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.service-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon .icon {
  width: 26px;
  height: 26px;
}

.service-card:hover .service-card-icon {
  background: var(--terra-soft);
  color: var(--terra);
}

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

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

.service-card-points {
  list-style: none;
  margin-bottom: 1.6rem;
  border-top: 1px dashed var(--line);
  padding-top: 1.1rem;
}

.service-card-points li {
  font-size: 0.88rem;
  color: var(--ink-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-card-points .icon {
  color: var(--green);
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
}

.service-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.service-card-footer .link-more {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card-footer .link-more:hover {
  color: var(--terra-dark);
}

/* Multi-Step Bedarfs-Check Formular (Version C Original & Erweitert) */
.form-section {
  padding: 3.5rem 0 5rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.form-head {
  background: var(--green);
  color: #FFFFFF;
  padding: 1.8rem 2.4rem;
}

.form-head h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
  color: #FFFFFF;
}

.form-head p {
  opacity: 0.88;
  font-size: 1rem;
}

.form-body {
  padding: 2.2rem 2.4rem 2.6rem;
}




.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.options-grid {
  display: grid;
  gap: 0.75rem;
}

.options-2col {
  grid-template-columns: 1fr 1fr;
}

.opt {
  position: relative;
}

.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.opt label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  background: #FFFFFF;
  transition: all 0.15s ease;
  user-select: none;
}

.opt label:hover {
  border-color: var(--green);
  background: var(--paper);
}

.opt input:checked + label {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--green);
}

.opt input:focus-visible + label {
  outline: 3px solid rgba(47, 93, 80, 0.35);
  outline-offset: 2px;
}

.opt .dot,
.opt .box {
  display: none !important;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fields .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--shadow-focus);
}

.form-error {
  background: var(--terra-soft);
  color: #8A3A1B;
  border-radius: 9px;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  border: 1px solid #E8B9A7;
}

.form-nav {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.form-nav .btn-terra, .form-nav .btn-submit {
  flex: 1;
}

.form-note {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.form-note .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.success {
  padding: 3.5rem 2rem;
  text-align: center;
}

.success .icon {
  width: 60px;
  height: 60px;
  color: var(--green);
  stroke-width: 1.6;
  margin: 0 auto 1.3rem;
}

.success h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.success p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.success .demo {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--paper);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
}

/* Article / Editorial Content Column */
.article {
  padding: 2rem 0 4rem;
}

.col {
  max-width: 48rem;
  margin: 0 auto;
}

.col h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin: 3.2rem 0 1.1rem;
  scroll-margin-top: 80px;
}

.col h3 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
}

.col p {
  margin-bottom: 1.25rem;
  color: var(--ink-light);
}

.col figure {
  margin: 2.2rem 0;
}

.col figure img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.col figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

.note {
  background: var(--terra-soft-light);
  border: 1px solid var(--terra-soft);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}

.note b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.note p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.note-green {
  background: var(--green-soft-alt);
  border-color: var(--green-soft);
}

.pull {
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1.45;
  color: var(--green);
  text-align: center;
  margin: 2.8rem auto;
  max-width: 32ch;
  position: relative;
  font-style: italic;
}

.pull::before {
  content: "„";
  font-size: 2.4rem;
  line-height: 0;
  position: relative;
  top: 0.4rem;
  margin-right: 0.2rem;
}

.pull::after {
  content: "“";
  font-size: 2.4rem;
  line-height: 0;
  position: relative;
  top: 0.4rem;
  margin-left: 0.2rem;
}

/* Steps / Etappen Timeline */
.steps-timeline {
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0;
}

.step-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.step-box:hover {
  transform: translateX(4px);
  border-color: var(--green);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.step-content p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

/* Feature Grid 2 Spalten */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.svc .icon,
.feature-card .icon {
  width: 28px;
  height: 28px;
  color: var(--terra);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.svc h3, .svc h4,
.feature-card h3, .feature-card h4 {
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.svc p,
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

/* Tables */
table.editorial-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0 0.8rem;
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

table.editorial-table th, table.editorial-table td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
}

table.editorial-table thead th {
  background: var(--green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
}

table.editorial-table tbody tr:nth-child(even) {
  background: var(--green-soft-alt);
}

table.editorial-table tbody tr:hover {
  background: var(--paper);
}

table.editorial-table td:last-child {
  font-weight: 700;
  white-space: nowrap;
  color: var(--green-dark);
}

.tbl-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* FAQ Accordion */
.faq-section,
.service-faq-section {
  padding: 5rem 0 5.5rem;
}

.faq-list {
  max-width: 800px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1.2rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.3rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--terra);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Aufklappen ueber grid-template-rows 0fr -> 1fr: animiert die echte Hoehe.
   Vorher max-height: 350px, das schnitt laengere Antworten am Handy ab. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq-answer > * {
  min-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer > * {
  padding-bottom: 1.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none;
  }
}

/* Related Services Strip */
.related-services {
  padding: 3.5rem 0;
  background: var(--green-soft-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.related-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.related-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  flex: 1;
}

.related-card .more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* CTA Block */
.cta {
  background: var(--green);
  color: #FFFFFF;
  padding: 4.8rem 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  margin-bottom: 0.9rem;
  color: #FFFFFF;
}

.cta p {
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cta .btn-terra {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.cta .btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  background: transparent;
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

/* Footer */
footer {
  background: var(--green-dark);
  color: #BFD3CB;
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .wordmark {
  color: #FFFFFF;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer-links a {
  color: #BFD3CB;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  opacity: 0.8;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
  }
  .service-hero-media {
    order: -1;
  }
  .phone-link {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0 1rem;
    min-width: 0;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid, .related-grid {
    grid-template-columns: 1fr;
  }
  .service-meta-strip {
    grid-template-columns: 1fr;
  }
  .form-body {
    padding: 1.6rem 1.3rem 2rem;
  }
  .fields, .options-2col {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* ---------- Referenzen & KI-Projekte ---------- */
.projects-section {
  padding: 4.5rem 0 5rem;
}

.projects-intro {
  max-width: 820px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.projects-intro .eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.projects-intro h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.projects-intro p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  grid-template-columns: 1fr;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 93, 80, 0.25);
}

.project-card.with-media {
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
}

.project-media {
  background: #EDE8DE;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  position: relative;
}

.project-window {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  background: #FFF;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.project-window-bar {
  height: 24px;
  background: #F3EEE5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}

.project-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D8D1C6;
  display: inline-block;
}

.project-window img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-body {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  margin-bottom: 1.2rem;
}

.project-tag-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.project-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--terra);
}

.project-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.09);
  color: var(--green);
  border: 1px solid rgba(47, 93, 80, 0.18);
}

.project-card h3 {
  font-size: 1.45rem;
  margin: 0 0 0.8rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.project-highlights li {
  font-size: 0.93rem;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}

.project-highlights li .icon {
  width: 17px;
  height: 17px;
  color: var(--terra);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.project-learning {
  background: rgba(196, 85, 45, 0.05);
  border: 1px solid var(--terra-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-top: auto;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.project-learning strong {
  color: var(--ink);
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.manifesto-box {
  background: var(--green-dark);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  margin: 4rem auto 0;
  max-width: 1080px;
}

.manifesto-box h3 {
  color: #FFFFFF;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.manifesto-box p.lead-manifesto {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 48rem;
  line-height: 1.6;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

.manifesto-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.manifesto-item h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.manifesto-item h4 .icon {
  width: 18px;
  height: 18px;
  color: var(--terra-light, #E87A54);
}

.manifesto-item p {
  color: #BFD3CB;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .project-card.with-media {
    grid-template-columns: 1fr;
  }
  .project-media {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1rem;
  }
  .project-body {
    padding: 1.8rem 1.4rem;
  }
  .manifesto-box {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   Split-Layout mit Tech-Spec & Kennzahlen-Panel (Waldmoos Mid)
   ========================================================================== */
.split-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: min(1380px, 98%);
  margin: 0 auto 3rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.split-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 93, 80, 0.28);
}

.split-media-pane {
  background: linear-gradient(145deg, #BFD7CB 0%, #ABC7B9 100%);
  padding: 1.8rem;
  border-right: 1px solid #97B7A6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.3rem;
}

.split-window {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #8CAFA0;
  box-shadow: 0 14px 30px rgba(26, 61, 51, 0.16);
  background: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.split-window:hover {
  transform: scale(1.015);
}

.split-window-bar {
  height: 22px;
  background: #E8EFEA;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-bottom: 1px solid #C4D7CC;
}

.split-window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9DBBB0;
}

/* Beschriftung in der Fensterleiste: klein wie beim Terminal, eine Zeile.
   Ohne diese Regel rendert ein <b> in voller Textgroesse und bricht am
   Handy auf zwei Zeilen in die 22px-Leiste (festgestellt 05.10.2026). */
.split-window-bar { overflow: hidden; }
.split-window-bar b {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.split-window img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* 100% Original-Farbtreue: keine Filter, keine Tönung, exakt wie das Original */
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.split-terminal {
  width: 100%;
  background: #101F1A;
  border-radius: 8px;
  border: 1px solid rgba(140, 190, 170, 0.3);
  box-shadow: 0 12px 28px rgba(16, 31, 26, 0.35);
  color: #A3E0C6;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.split-terminal-bar {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.split-terminal-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.split-terminal-bar b {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  margin-left: 0.5rem;
}

.split-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.split-spec-item {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(47, 93, 80, 0.22);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.split-spec-item .icon {
  width: 18px;
  height: 18px;
  color: #1E4D3E;
  flex-shrink: 0;
}

.split-spec-item div strong {
  display: block;
  font-size: 0.82rem;
  color: #102B22;
  line-height: 1.2;
}

.split-spec-item div span {
  display: block;
  font-size: 0.72rem;
  color: #4B6359;
  line-height: 1.2;
}

.split-body {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split-body h3 {
  font-size: 1.5rem;
  margin: 0.4rem 0 0.8rem;
  line-height: 1.3;
}

.split-body p.desc {
  font-size: 0.98rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.split-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: grid;
  gap: 0.55rem;
}

.split-highlights li {
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}

.split-highlights li .icon {
  width: 16px;
  height: 16px;
  color: var(--terra);
  flex-shrink: 0;
  margin-top: 0.18rem;
}

.split-learning {
  background: rgba(196, 85, 45, 0.06);
  border: 1px solid var(--terra-soft);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: auto;
  margin-bottom: 1.3rem;
  line-height: 1.48;
}

.split-learning strong {
  color: var(--ink);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

@media (max-width: 1024px) {
  .split-card {
    grid-template-columns: 1fr;
  }
  .split-media-pane {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1rem;
  }
  .split-body {
    padding: 1.8rem 1.4rem;
  }
}




/* ==========================================================================
   Ergaenzungen 2026-10-04: Ich-Form-Auftritt (Portraet, Preise, Rechtstexte)
   ========================================================================== */

/* Aktiver Menuepunkt (setzt werkzeuge/bauen.js per aria-current) */
.nav-link[aria-current="page"] {
  color: var(--terra);
}

/* Portraet: hochkant, darf nicht auf 4:3 beschnitten werden */
.service-hero-media img.portrait,
.portrait {
  aspect-ratio: 3 / 4;
  object-position: center top;
  max-width: 300px;   /* war 420 px: hoeher als der Textblock daneben (Ralf, 2026-10-04) */
  margin-inline: auto;
}
@media (max-width: 960px) {
  /* Am Handy steht das Foto ueber der Ueberschrift und soll den Namen nicht verdraengen */
  .service-hero-media img.portrait,
  .portrait {
    max-width: 200px;
  }
}

/* Startseite: "Wer hier arbeitet" */
.about-teaser {
  padding: 4.5rem 0;
  background: var(--green-soft-alt);
  border-block: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
.about-grid h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
}
.about-grid p {
  color: var(--ink-light);
  margin-bottom: 1rem;
}
@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .about-grid img {
    max-width: 260px;
  }
}

/* Werdegang auf "Ueber mich" */
.timeline {
  list-style: none;
  border-left: 2px solid var(--line-strong);
  margin: 1.5rem 0 2rem;
  padding-left: 1.4rem;
}
.timeline li {
  margin-bottom: 1.2rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 6px);
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terra);
}
.timeline .zeit {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.timeline strong {
  display: block;
  color: var(--ink);
}

/* Preistabelle: rechte Spalte nicht umbrechen */
table.editorial-table td.preis {
  white-space: nowrap;
}

/* Rechtstexte */
.legal h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.7rem;
}
.legal h3 {
  font-size: 1.12rem;
  margin: 1.6rem 0 0.5rem;
}
.legal address {
  font-style: normal;
  margin-bottom: 1.25rem;
  color: var(--ink-light);
}
.legal ul {
  margin: 0 0 1.25rem 1.2rem;
  color: var(--ink-light);
}

/* Formular: Feld gegen Spam-Bots, fuer Menschen unsichtbar */
.hp-feld {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Vier Leistungen: 2 x 2 statt 3 + 1 */
.services-grid.vier {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .services-grid.vier {
    grid-template-columns: 1fr;
  }
}

/* Sprunglink fuer Tastatur und Screenreader: erst beim Fokus sichtbar */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Fussnote unter Tabellen: Zeilen nicht laenger als ~75 Zeichen */
.tbl-note {
  max-width: 40rem;
}

/* ---------- Handy: Befunde aus pruefe-darstellung.ps1 vom 2026-10-04 ---------- */
@media (max-width: 640px) {
  /* Schwebende Karte am Foto ragte 5-6 px ueber den Rand */
  .service-hero-card {
    position: static;
    max-width: none;
    margin-top: 0.8rem;
  }
  /* Preistabelle: Preise duerfen umbrechen, sonst 34 px zu breit bei 360 px */
  table.editorial-table td.preis {
    white-space: normal;
  }
  table.editorial-table th,
  table.editorial-table td {
    padding-left: 0.55rem;   /* 0.7rem war bei 360 px 2 px zu breit ("ab 1.490,00 €" bricht nicht) */
    padding-right: 0.55rem;
  }
  /* Antippflaechen mindestens 44 px hoch */
  .wordmark,
  .btn-sm,
  .link-more,
  .breadcrumbs a,
  .footer-links a,
  .meta-box a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Lange deutsche Woerter ("Datenschutzerklaerung") passen bei 32 px nicht
   in 345 px Breite und liefen 9 px aus dem Bild. Trennen statt ueberlaufen. */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  h1, h2 {
    hyphens: auto;
  }
  /* Links in der Preistabelle waren 19 px hoch */
  table.editorial-table td a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Sehr schmale Handys (320 px): Logo, Anfrage-Knopf und Menuknopf passen nicht
   nebeneinander, der Menuknopf ragte 34 px hinaus. Kontakt bleibt im Menue. */
@media (max-width: 400px) {
  .nav-actions .btn-sm {
    display: none;
  }
}

/* Preistabelle unter 480 px: Zeilen untereinander statt zwei Spalten.
   Bei 320 px war sie mit zwei Spalten 31 px zu breit. */
@media (max-width: 480px) {
  table.editorial-table thead {
    display: none;
  }
  table.editorial-table,
  table.editorial-table tbody,
  table.editorial-table tr,
  table.editorial-table td {
    display: block;
    width: 100%;
  }
  table.editorial-table td.preis {
    padding-top: 0;
    font-weight: 700;
    color: var(--ink);
  }
}

/* Eingebettete Diagramme im Fliesstext (z. B. JEA-Skizze auf Ueber-mich).
   figure.inline-diagram ueberschreibt bewusst .col figure img (16/9, cover),
   sonst wird die hohe Skizze oben und unten abgeschnitten. */
.inline-diagram { max-width: 460px; margin: 1.6rem auto 2.2rem; }
figure.inline-diagram img {
  width: 100%; height: auto; display: block;
  aspect-ratio: auto; object-fit: contain;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); background: #FFFFFF;
}
.inline-diagram figcaption {
  margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); text-align: center;
}

/* --------------------------------------------------------------------------
   Breite Projektkarte (2026-10-14, Werkbank): Bild ueber die volle Kartenbreite.
   Ein ganzes Programmfenster ist in der halben Karte (~490 px) unlesbar - Ralf:
   "zeigt zu wenig von dem tollen Programm". Darunter zwei Nebenansichten und der
   Text in zwei Spalten, damit die Zeilen nicht ueber die ganze Breite laufen.
   -------------------------------------------------------------------------- */
/* minmax(0, 1fr) statt 1fr: sonst nimmt die Spalte die volle Bildbreite (1424 px) der
   Bildfolge als Mindestbreite, und am Handy laeuft die Karte rechts hinaus (14.10. gemessen). */
.split-card--breit { grid-template-columns: minmax(0, 1fr); }
/* Ralf 14.10.: Text oben, Bildfolge unten -> Trennlinie ueber der Bildfolge */
.split-card--breit .split-media-pane {
  border-right: none;
  border-bottom: none;
  border-top: 1px solid #97B7A6;
  padding: 2rem 2.2rem;
  min-width: 0;
}
.split-window-link { display: block; color: inherit; text-decoration: none; }
.split-window-link:focus-visible { outline: 3px solid var(--terra); outline-offset: 4px; border-radius: 8px; }
.split-nebenansichten {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.split-nebenansichten figure { margin: 0; }
.split-nebenansichten figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #2E4A3F;
  line-height: 1.35;
}
.split-card--breit .split-spec-grid { grid-template-columns: repeat(4, 1fr); }
.split-card--breit .split-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: 2.6rem;
  align-items: start;
}
.split-card--breit .split-body > .project-header { grid-column: 1 / -1; }
/* links Beschreibung und Lehre, rechts die Aufzaehlung ueber beide Zeilen */
.split-card--breit .split-body > .split-highlights { grid-column: 2; grid-row: 2 / span 2; }

@media (max-width: 1024px) {
  .split-card--breit .split-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .split-card--breit .split-body { grid-template-columns: 1fr; }
  .split-card--breit .split-body > .split-highlights { grid-column: auto; grid-row: auto; }
}
@media (max-width: 640px) {
  .split-card--breit .split-media-pane { padding: 1.2rem 0.9rem; }
  .split-nebenansichten { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Bildfolge (Diaschau), 2026-10-14. Ohne JavaScript ein seitlich scrollbares
   Band mit Einrasten; main.js blendet Pfeile und Punkte ein. Keine automatische
   Weiterschaltung (WCAG 2.2.2), kein Gleiten bei "weniger Bewegung".
   -------------------------------------------------------------------------- */
.diaschau { min-width: 0; }
.diaschau .split-window:hover { transform: none; }      /* Wackeln stoert beim Lesen */
.diaschau-band {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.diaschau-band::-webkit-scrollbar { display: none; }
.diaschau-band:focus-visible { outline: 3px solid var(--terra); outline-offset: -3px; }
.diaschau-bild {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  background: #FFFFFF;
}
/* Alle Bilder gleich hoch (sonst springt die Hoehe beim Blaettern); das Schwarm-Bild
   (650x550) steht mit schwarzem Rand in derselben Flaeche. Selektor bewusst mit
   .split-window, damit er die allgemeine .split-window-img-Regel sicher uebertrifft. */
.diaschau .split-window .diaschau-bild img {
  width: 100%;
  height: auto;
  aspect-ratio: 1424 / 861;
  object-fit: contain;
  display: block;
}
.diaschau-bild figcaption {
  padding: 0.85rem 1.1rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-light);
  border-top: 1px solid #C4D7CC;
  max-width: 62rem;
}
.diaschau-bild figcaption strong { color: var(--ink); }
.diaschau-steuerung {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.diaschau-steuerung[hidden] { display: none; }
.diaschau-pfeil {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(47, 93, 80, 0.35);
  background: rgba(255, 255, 255, 0.94);
  color: #1E4D3E;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.diaschau-pfeil:hover { background: #FFFFFF; border-color: #1E4D3E; }
.diaschau-pfeil:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.diaschau-pfeil:disabled { opacity: 0.4; cursor: default; }
.diaschau-pfeil .icon { width: 20px; height: 20px; }
.diaschau-pfeil[data-diaschau-zurueck] .icon { transform: rotate(180deg); }
.diaschau-punkte { display: flex; gap: 0.15rem; }
.diaschau-punkte button {
  width: 44px;                       /* Tippziel 44 px, sichtbar ist nur der Punkt */
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.diaschau-punkte button::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(30, 77, 62, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}
.diaschau-punkte button[aria-current="true"]::before { background: var(--terra); transform: scale(1.25); }
.diaschau-punkte button:focus-visible { outline: 3px solid var(--terra); outline-offset: -6px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .diaschau-band { scroll-behavior: auto; }
  .diaschau-punkte button::before { transition: none; }
}
@media (max-width: 640px) {
  .diaschau-bild figcaption { font-size: 0.86rem; padding: 0.7rem 0.8rem 0.85rem; }
  .diaschau-punkte { gap: 0; }
  .diaschau-punkte button { width: 32px; }
}

/* ==========================================================================
   Profilseite (Portfolio, 21.10.2026): Projektkarten mit Bild, Projektseiten
   Alles Folgende baut nur auf Wiebkes Bausteinen auf, nichts davon aendert sie.
   ========================================================================== */

/* Projektkarten auf der Startseite: Bild oben, Text unten, ganze Karte ist der Link */
.projekt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.projekt-karte { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.projekt-karte:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green); }
.projekt-karte:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.projekt-karte-bild { aspect-ratio: 16 / 10; background: linear-gradient(145deg, #BFD7CB 0%, #ABC7B9 100%);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.projekt-karte-bild img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.projekt-karte-bild .icon { width: 56px; height: 56px; color: #1E4D3E; stroke-width: 1.4; }
/* Symbolkarten in eigenen, gedaempften Farben (Ralf, 21.10.2026: "etwas bunter mit der Hintergrundfarbe").
   Je Karte Verlauf + passende dunkle Symbolfarbe, abgeleitet aus Salbei und Terrakotta der Palette. */
.projekt-karte-bild.farbe-salbei  { background: linear-gradient(145deg, #C9E0D3 0%, #A9C9B8 100%); }
.projekt-karte-bild.farbe-terra   { background: linear-gradient(145deg, #F6DACB 0%, #EBB99F 100%); }
.projekt-karte-bild.farbe-terra .icon   { color: #93391A; }
.projekt-karte-bild.farbe-rose    { background: linear-gradient(145deg, #F5DCDF 0%, #E6B9C0 100%); }
.projekt-karte-bild.farbe-rose .icon    { color: #7A2E3B; }
.projekt-karte-bild.farbe-flieder { background: linear-gradient(145deg, #E4DCF0 0%, #C9BBE0 100%); }
.projekt-karte-bild.farbe-flieder .icon { color: #4B3A72; }
.projekt-karte-bild.farbe-gold    { background: linear-gradient(145deg, #F8EBC0 0%, #EDD488 100%); }
.projekt-karte-bild.farbe-gold .icon    { color: #6B4F05; }
.projekt-karte-bild.farbe-blau    { background: linear-gradient(145deg, #D6E3EF 0%, #B3C9DF 100%); }
.projekt-karte-bild.farbe-blau .icon    { color: #23466B; }
.projekt-karte-bild.farbe-tuerkis { background: linear-gradient(145deg, #CDE7E3 0%, #A6D0CA 100%); }
.projekt-karte-bild.farbe-tuerkis .icon { color: #1A524C; }
.projekt-karte-bild.farbe-schiefer { background: linear-gradient(145deg, #DCE1E7 0%, #B9C3CF 100%); }
.projekt-karte-bild.farbe-schiefer .icon { color: #2E3B4C; }
.projekt-karte-bild.farbe-oliv    { background: linear-gradient(145deg, #E4E8CC 0%, #C8D09C 100%); }
.projekt-karte-bild.farbe-oliv .icon    { color: #4A5319; }
.projekt-karte-text { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.projekt-karte-text .project-tag-strip { margin-bottom: .55rem; }
.projekt-karte h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .45rem; }
.projekt-karte p { font-size: .92rem; color: var(--muted); margin-bottom: .9rem; flex: 1; }
.projekt-karte .more { font-size: .88rem; font-weight: 700; color: var(--terra); }

/* Technik-Gruppen auf der Startseite */
.koennen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.koennen-gruppe { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.3rem; }
.koennen-gruppe h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.koennen-gruppe ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.koennen-gruppe li { font-size: .82rem; background: var(--green-soft-alt); border: 1px solid var(--green-soft);
  color: var(--ink-light); border-radius: var(--radius-pill); padding: .2rem .65rem; }

/* Projektseite: Bildschirmfoto im Fenster, ungeschnitten (die allgemeine .col-figure-Regel schneidet auf 16:9) */
.col figure.fenster { margin: 2.2rem 0; }
.col figure.fenster .split-window:hover { transform: none; }
.col figure.fenster img { aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.col figure.fenster figcaption { text-align: left; }
.service-hero-media .split-window:hover { transform: none; }
/* Wiebkes Hero-Bildregel schneidet auf 4:3 (fuer Fotos gedacht). Ein Fenster mit Diagramm zeigt alles. */
.service-hero-media .split-window { max-width: 430px; margin: 0 auto; }
.service-hero-media .split-window img { aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.projekt-fakten { margin-top: 1.4rem; }
.col .split-highlights li { font-size: 1rem; color: var(--ink-light); }
.col table.fakten { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .95rem; }
.col table.fakten th, .col table.fakten td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.col table.fakten th { background: var(--green-soft-alt); color: var(--ink); font-weight: 700; }
.col table.fakten td { color: var(--ink-light); }
.col .split-terminal { margin: 1.6rem 0 2rem; font-size: .86rem; overflow-x: auto; }
.col .split-terminal code { white-space: pre; font-family: inherit; color: inherit; background: none; }
.fehlerliste { counter-reset: fehler; list-style: none; margin: 1.2rem 0 1.6rem; display: grid; gap: .8rem; }
.fehlerliste li { counter-increment: fehler; position: relative; padding: .9rem 1.1rem .9rem 3.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-light); }
.fehlerliste li::before { content: counter(fehler); position: absolute; left: 1rem; top: .85rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: var(--terra-soft); color: var(--terra-dark); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; }
.fehlerliste li strong { color: var(--ink); }

/* Kopfzeile am Handy (Ralf, 21.10.2026: "Burger-Menue zu sehr an den Rand gedraengt und nicht vollstaendig
   sichtbar"). Gemessen: 95 % Breite liessen nur 8-9 px Rand, und zwischen 401 und rund 500 px standen Schriftzug,
   E-Mail-Knopf und Menueknopf nebeneinander - bei 414 px ragte der Menueknopf 36 px hinaus. Der Schriftzug
   "IT-Systemadministrator" ist breiter als Wiebkes "IT-Services", ihre Grenze von 400 px reicht hier nicht.
   Der E-Mail-Knopf faellt am Handy weg, "Kontakt" steht im Menue. */
@media (max-width: 960px) {
  .main-header .container, .header-inner { width: 100%; padding-left: 16px; padding-right: 16px; }
  .nav-toggle { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  /* Geoeffnetes Menue: Eintraege waren zentriert, das Projekte-Untermenue breiter als das Menue und
     stand dadurch links und rechts ueber (bei 390 px lag "Projekte" 2 px vom Rand). Links ausrichten, umbrechen. */
  .nav-links { align-items: stretch; padding: 1rem 16px 1.5rem; gap: 0.25rem; }
  .nav-links > li { min-width: 0; }
  .nav-links .nav-link { display: flex; min-height: 44px; align-items: center; }
  .dropdown-item, .dropdown-item strong, .dropdown-item span { white-space: normal; min-width: 0; }
}
@media (max-width: 560px) {
  .nav-actions .btn-sm { display: none; }
}

/* Vor/Zurueck am Ende jeder Projektseite */
.projekt-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.projekt-nav a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.projekt-nav a:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.projekt-nav span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--terra); }
.projekt-nav strong { font-family: var(--font-head); font-size: 1.1rem; }
.projekt-nav .weiter { text-align: right; }

@media (max-width: 960px) {
  .projekt-grid, .koennen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .projekt-grid, .koennen-grid, .projekt-nav { grid-template-columns: 1fr; }
  .projekt-nav .weiter { text-align: left; }
  /* Am Handy brechen Terminalzeilen um, statt seitlich zu rollen; Tabellen werden enger und trennen */
  .col .split-terminal code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .col table.fakten { font-size: .86rem; }
  .col table.fakten th, .col table.fakten td { padding: .5rem .45rem; hyphens: auto; overflow-wrap: break-word; }
}
