:root {
  --ink: #14241e;
  --ink-soft: #2a3d35;
  --paper: #f3efe6;
  --paper-soft: #faf7f0;
  --muted: #6e7a73;
  --line: rgba(20, 36, 30, 0.14);
  --rule: rgba(20, 36, 30, 0.22);
  --accent: #a07a3a;
  --accent-deep: #7e5e25;
  --link-blue: #2f5bd3;
  --link-blue-hover: #1f43aa;
  --max: 1100px;
  --serif: ui-serif, "Iowan Old Style", "Cambria", "Charter", Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(160, 122, 58, 0.28);
}

/* ===== Grundgerüst ===== */
.site {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.95vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  transition: color .25s ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent-deep);
  outline: none;
}

/* ===== Sektion-Grundlagen ===== */
.section-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 36px;
  text-wrap: balance;
}

.section-heading--display {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 56px;
  text-align: center;
}

/* ===== Intro (Titel + Schaubild + Zertifikat) ===== */
.intro {
  padding: 80px 0 88px;
}

/* ===== Schaubild ===== */
.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
}

.diagram-box {
  padding: 30px 30px 32px;
  background: var(--paper-soft);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diagram-title {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.diagram-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diagram-list li {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.3;
}

.diagram-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  min-width: 64px;
}

.diagram-arrow svg {
  width: 64px;
  height: 24px;
  display: block;
}

/* ===== Zertifikat-Kasten ===== */
.certification {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ===== Schwerpunkte ===== */
.focus {
  padding: 72px 0 88px;
  border-top: 1px solid var(--line);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.focus-item-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.focus-item-text {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Kontakt ===== */
.contact {
  padding: 72px 0 96px;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 28px 60px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.005em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s ease;
}

.contact-value:hover,
.contact-value:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

/* ===== Footer ===== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  gap: 28px;
}

.site-footer nav a {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
  outline: none;
}

/* ===== Rechtstexte (Impressum + Datenschutz) ===== */
.legal main {
  flex: 1;
  padding: 80px 0 96px;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 36px;
  color: var(--ink);
  text-wrap: balance;
}

.text-content,
.legal-copy {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.text-content section,
.legal-copy section {
  margin-bottom: 28px;
}

.text-content section:last-child,
.legal-copy section:last-child {
  margin-bottom: 0;
}

.text-content h2,
.legal-copy h2 {
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 10px;
}

.text-content h3,
.legal-copy h3 {
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 8px;
}

.text-content p,
.legal-copy p {
  margin: 0 0 10px;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.text-content li,
.legal-copy li {
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.text-content ul,
.legal-copy ul {
  padding-left: 1.1rem;
  margin: 8px 0 14px;
}

.legal-copy .plain-lines p,
.legal-copy .meta-lines p,
.text-content .address-block p {
  margin-bottom: 2px;
}

.legal-copy .spacer {
  height: 8px;
}

.text-content .muted-label,
.legal-copy .muted-label {
  font-weight: 700;
  color: var(--ink);
}

.text-content a,
.text-content a:visited,
.legal-copy a,
.legal-copy a:visited {
  color: var(--link-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.text-content a:hover,
.text-content a:focus-visible,
.legal-copy a:hover,
.legal-copy a:focus-visible {
  color: var(--link-blue-hover);
  border-bottom-color: currentColor;
  outline: none;
}

/* ===== Responsives Verhalten ===== */
@media (max-width: 820px) {
  .intro {
    padding: 56px 0 64px;
  }
  .section-heading--display {
    margin-bottom: 44px;
  }
  .diagram {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .diagram-arrow {
    min-width: 0;
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .focus {
    padding: 56px 0 64px;
  }
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact {
    padding: 56px 0 72px;
  }
}

@media (max-width: 640px) {
  .site {
    width: min(100% - 28px, var(--max));
  }
  .site-header {
    padding: 24px 0 16px;
  }
  .tag {
    padding: 9px 12px;
    font-size: .66rem;
  }
  .diagram-box {
    padding: 22px 22px 24px;
  }
  .diagram-list li {
    font-size: 1.05rem;
  }
  .focus-item-title {
    font-size: 1.2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact-value {
    font-size: 1.1rem;
  }
  .legal main {
    padding: 48px 0 72px;
  }
  .site-footer nav {
    gap: 18px;
  }
}
