/* Schriften lokal gehostet (keine externen Anfragen, DSGVO-konform) – Lizenz: SIL OFL 1.1 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page: #f7f4ef;
  --surface: #ffffff;
  --ink: #20262a;
  --muted: #66716f;
  --line: #ded7ca;
  --navy: #122f3b;
  --green: #315f54;
  --gold: #b6874d;
  --gold-soft: #f0dfc4;
  --shadow: 0 22px 55px rgba(28, 35, 36, 0.13);
  --max: 1180px;

  /* Typografie: zwei Schriften, eine feste Größenskala */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --fs-xs: 0.8125rem;   /* 13px – Überzeilen */
  --fs-sm: 0.9375rem;   /* 15px – Navigation, Kennzahl-Text */
  --fs-base: 1.0625rem; /* 17px – Fließtext */
  --fs-lead: 1.1875rem; /* 19px – Einleitungen */
  --fs-h3: 1.3125rem;   /* 21px – Karten-Titel */
  --fs-h2-card: clamp(1.4375rem, 1.25rem + 0.7vw, 1.75rem); /* 23–28px – Titel in Textkarten */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.7vw, 2.625rem);      /* 30–42px */
  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);          /* 36–56px */
  --fs-stat: 1.875rem;  /* 30px – Kennzahlen */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover,
a:focus {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 10px clamp(20px, 4vw, 50px);
  border-bottom: 1px solid rgba(222, 215, 202, 0.88);
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 142px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
  font-size: var(--fs-sm);
}

.site-nav a {
  position: relative;
  color: var(--navy);
  font-weight: 600;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  transform: scaleX(1);
}

/* Menü-Schalter (nur CSS, ohne JavaScript) – auf großen Bildschirmen ausgeblendet */
.nav-toggle-label {
  display: none;
}

.hero,
.section-inner,
.service-grid,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  padding: clamp(46px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}

#kontakte,
#service {
  scroll-margin-top: 104px;
}

.hero-media,
.image-panel {
  overflow: hidden;
  border: 1px solid rgba(222, 215, 202, 0.9);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media {
  aspect-ratio: 4 / 5;
  border-radius: 2px 34px 2px 34px;
}

.hero-media img,
.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy,
.section-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--green);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  font-size: var(--fs-h1);
}

h2 {
  max-width: 720px;
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 18px 0 0;
}

.lead {
  color: #39423f;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.facts div {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.facts strong,
.facts span {
  display: block;
}

.facts strong {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1;
}

.facts span {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.content-section {
  padding: clamp(58px, 8vw, 106px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.content-section:nth-of-type(odd) {
  background: #fbfaf7;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.section-inner.reverse {
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
}

.section-inner.single {
  display: block;
}

.image-panel {
  margin: 0;
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 34px 2px 34px 2px;
}

.landscape {
  aspect-ratio: 3 / 2;
  border-radius: 2px 34px 2px 34px;
}

.service-section {
  padding-bottom: clamp(68px, 9vw, 118px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 5vw, 62px);
}

.service-grid article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.service-grid article::before {
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--gold);
  content: "";
}

.service-grid p {
  color: var(--muted);
}

.page-hero,
.text-section,
.legal-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  padding: clamp(54px, 8vw, 106px) 0 clamp(34px, 5vw, 62px);
}

.page-hero.compact {
  padding-bottom: 26px;
}

.page-hero h1 {
  max-width: 880px;
}

.page-hero .lead {
  max-width: 780px;
}

.text-section {
  padding: 0 0 clamp(48px, 7vw, 88px);
}

.text-card,
.legal-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(28, 35, 36, 0.08);
}

.text-card {
  max-width: 960px;
  padding: clamp(26px, 4vw, 46px);
}

.highlight-card {
  background: #fffdf9;
}

.text-card h2 {
  margin-bottom: 18px;
  font-size: var(--fs-h2-card);
}

.legal-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 clamp(58px, 8vw, 106px);
}

.legal-wrap.privacy {
  display: block;
  max-width: 980px;
}

.legal-wrap.privacy .legal-card + .legal-card {
  margin-top: 18px;
}

.legal-card {
  padding: clamp(24px, 3vw, 34px);
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: var(--fs-h2-card);
}

.legal-card h3 {
  margin-top: 26px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.legal-card ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.site-footer {
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 42px;
  color: #dce5e1;
}

.footer-inner strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.footer-inner p {
  max-width: 560px;
  margin-top: 6px;
  color: #b9c6c2;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 30px;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 600;
}

.footer-inner a:hover,
.footer-inner a:focus {
  color: var(--gold-soft);
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  #kontakte,
  #service {
    scroll-margin-top: 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .section-inner,
  .section-inner.reverse {
    grid-template-columns: 1fr;
  }

  .section-inner.reverse .image-panel {
    order: 2;
  }

  /* Bilder im einspaltigen Layout zuschneiden statt in voller Höhe zeigen */
  .hero-media,
  .portrait {
    aspect-ratio: 4 / 3;
  }

  .hero-media img {
    object-position: 50% 28%;
  }

  .portrait img {
    object-position: 50% 22%;
  }

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

  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-base: 1rem;      /* 16px */
    --fs-lead: 1.0625rem; /* 17px */
    --fs-h3: 1.25rem;     /* 20px */
    --fs-stat: 1.75rem;   /* 28px */
    --fs-h2: clamp(1.625rem, 7.5vw, 1.875rem); /* 26–30px */
    --fs-h1: clamp(1.875rem, 8.5vw, 2.25rem);  /* 30–36px */
  }

  /* Kopfzeile: Logo links, Menü-Schalter rechts, Navigation aufklappbar */
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 10px 18px;
  }

  .brand img {
    width: 104px;
  }

  /* Das Menü öffnet sich über #site-nav:target. Jeder Klick auf einen
     Menüpunkt ändert das Ziel der Adresse und schließt das Menü dadurch. */
  .nav-toggle-label {
    display: inline-flex;
    order: 2;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 2px 14px 2px 14px;
    background: var(--surface);
    color: var(--navy);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
  }

  .nav-toggle-label:hover,
  .nav-toggle-label:focus {
    color: var(--navy);
  }

  .nav-toggle-label:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, background-color 160ms ease;
  }

  .nav-toggle-icon {
    position: relative;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .nav-toggle-icon::before {
    top: -6px;
  }

  .nav-toggle-icon::after {
    top: 6px;
  }

  .nav-close,
  #site-nav:target ~ .nav-open {
    display: none;
  }

  #site-nav:target ~ .nav-close {
    display: inline-flex;
  }

  .nav-close .nav-toggle-icon {
    background: transparent;
  }

  .nav-close .nav-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-close .nav-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    scroll-margin-top: 100vh; /* beim Öffnen nicht nach unten springen */
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    font-size: var(--fs-base);
  }

  #site-nav:target {
    display: flex;
  }

  .site-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .section-inner,
  .service-grid,
  .footer-inner,
  .page-hero,
  .text-section,
  .legal-wrap {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 34px;
  }


  .facts,
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* Kennzahlen als kompakte Zeilen */
  .facts {
    gap: 10px;
    margin-top: 26px;
  }

  .facts div {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 18px;
  }

  .facts strong {
    flex: 0 0 72px;
  }

  .facts span {
    margin-top: 0;
  }

  .hero-media,
  .portrait,
  .landscape {
    border-radius: 2px 24px 2px 24px;
  }

  .service-grid article {
    min-height: 0;
    padding: 22px;
  }

  .service-grid article::before {
    margin-bottom: 14px;
  }
}

.footer-address {
  margin-top: 10px;
  font-style: normal;
  color: #b9c6c2;
}

.footer-inner .footer-contact {
  margin-top: 4px;
}
