/* Fonts (lokal gehostet, DSGVO-konform) */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-v31-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-v31-latin_latin-ext-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-v31-latin_latin-ext-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-v31-latin_latin-ext-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 300; font-display: swap; src: url("../fonts/nunito-sans-v19-latin_latin-ext-300.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-v19-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-v19-latin_latin-ext-700.woff2") format("woff2"); }

:root {
  --accent: #c2274b;
  --accent-dark: #a01e3c;
  --rose: #f0dfdf;
  --dark: #282936;
  --text: #5e5f68;
  --light: #f9f9f9;
  --white: #fff;
  --container: 980px;
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; color: var(--dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--accent); margin: 0 0 .6em; line-height: 1.25; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Header */
.site-header { background: var(--light); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 132px; position: relative; }
.logo { text-decoration: none; color: var(--dark); font-family: var(--font-head); line-height: 1.2; }
.logo .l1 { display: block; font-weight: 700; font-size: 1.95rem; }
.logo .l2 { display: block; font-weight: 400; font-size: 1.95rem; }
.main-nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.main-nav li + li { border-left: 1px solid #b4c8dc; }
.main-nav a { display: block; padding: 8px 40px; text-decoration: none; font-family: var(--font-head); font-size: 1.05rem; color: var(--dark); transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #94949b; }
.main-nav li:last-child a { padding-right: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--dark); margin: 6px 0; transition: .3s; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: center/cover no-repeat; padding: 40px 20px; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); }
.hero > * { position: relative; }
.hero h1 { color: #fff; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .1em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero .sub { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 1.6em; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.hero .intro { font-family: var(--font-body); font-size: 1.2rem; line-height: 1.8; max-width: 500px; margin: 0 auto; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.page-hero { height: 720px; max-height: 70vh; min-height: 320px; background: center/cover no-repeat; }
.page-hero.short { height: 600px; }

/* Sections */
.section { padding: 90px 0; }
.section.rose { background: var(--rose); }
.section.light { background: var(--light); }
.section.white { background: var(--white); }
.section.grey { background: #f4f4f4; }
.lead { max-width: 820px; margin: 0 auto; font-size: 1.05rem; }

.gallery { display: grid; grid-template-columns: 253fr 455fr 253fr; gap: 8px; margin-top: 60px; }
.gallery img { width: 100%; height: 335px; object-fit: cover; }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 6px 18px; font-family: var(--font-body); font-size: 1rem; transition: background .2s; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }

.person { display: grid; grid-template-columns: 363px 1fr; gap: 54px; align-items: start; max-width: 940px; margin: 0 auto; }
.person img { width: 100%; height: 423px; object-fit: cover; object-position: center top; }
.person h2 { margin-top: 20px; }

/* Kompetenz-Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 50px; }
.card { position: relative; display: block; text-decoration: none; overflow: hidden; }
.card img { width: 100%; height: 300px; object-fit: cover; transition: transform .5s; }
.card:hover img { transform: scale(1.05); }
.card span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); color: #fff; text-align: center; padding: 14px 10px; font-family: var(--font-body); font-size: 1rem; transition: background .2s; }
.card:hover span { background: var(--accent-dark); }
.cards.raised { margin-bottom: 35px; gap: 24px; }
.cards.raised .card { overflow: visible; }
.cards.raised .card .img-wrap { overflow: hidden; }
.cards.raised .card img { height: 260px; }
.cards.raised .card span { left: 7%; right: 7%; bottom: -35px; padding: 22px 10px; font-family: var(--font-head); }

/* Kompetenzen Detail */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.split img { width: 100%; object-fit: cover; }
.split .img-square { aspect-ratio: 1 / 1; max-width: 400px; margin-left: auto; }
.split .img-portrait { aspect-ratio: 3 / 4; max-width: 400px; }
.split .img-landscape { aspect-ratio: 1 / 1; max-width: 400px; margin-left: auto; }
.split p { margin: 0 0 1.2em; }
.check-list { padding-left: 1.2em; margin: 0; }
.check-list li { margin-bottom: 2px; }
.anchor { scroll-margin-top: 140px; }

details.more { margin-top: 40px; }
details.more summary { list-style: none; cursor: pointer; color: var(--text); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .title { display: block; font-size: 1rem; }
details.more summary .toggle { display: inline-block; margin-top: 8px; color: var(--dark); font-weight: 400; font-size: .92rem; }
details.more summary .toggle::after { content: "mehr erfahren"; }
details.more[open] summary .toggle::after { content: "weniger anzeigen"; }
details.more ul { margin: 16px 0 0; padding-left: 1.2em; }
details.more li { margin-bottom: 6px; }

/* Kontakt */
.contact-box { max-width: 800px; margin: 60px auto 0; font-family: var(--font-head); color: var(--dark); font-size: 1.3rem; line-height: 1.55; }
.contact-box p { margin: 0 0 1.4em; }
.contact-box .small { font-family: var(--font-body); font-weight: 400; font-size: 1.25rem; }
.contact-box a { text-decoration: none; }
.contact-box a:hover { color: var(--accent); }

/* Rechtstexte */
.legal { max-width: 860px; margin: 0 auto; font-size: 1.1rem; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: .6em; }
.legal h3 { font-family: var(--font-head); color: var(--dark); font-size: 1.3rem; font-weight: 500; }
.legal h4 { font-family: var(--font-body); color: var(--dark); font-weight: 700; font-size: 1.1rem; margin: 1.5em 0 0; }
.legal p { margin: 0 0 1.2em; }

/* Back to top + Footer */
.to-top { display: block; width: 70px; margin: 40px auto 30px; opacity: .8; transition: opacity .2s, transform .2s; }
.to-top:hover { opacity: 1; transform: translateY(-3px); }
.to-top svg { display: block; width: 70px; height: 36px; }
.site-footer { background: var(--accent); color: #fff; text-align: center; padding: 45px 20px 30px; font-size: 1.05rem; }
.site-footer p { margin: 0 0 30px; line-height: 1.5; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; font-size: .95rem; }
.footer-links li { padding: 0 38px; }
.footer-links li + li { border-left: 1px solid #fff; }

/* Responsive */
@media (max-width: 900px) {
  .site-header .container { min-height: 90px; }
  .logo .l1, .logo .l2 { font-size: 1.4rem; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--light); box-shadow: 0 8px 16px rgba(0,0,0,.08); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .main-nav.open { max-height: 300px; }
  .main-nav ul { flex-direction: column; padding: 10px 0; }
  .main-nav li + li { border-left: 0; border-top: 1px solid #eee; }
  .main-nav a, .main-nav li:last-child a { padding: 14px 20px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { min-height: 480px; }
  .section { padding: 60px 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .gallery img { height: 260px; }
  .person, .split { grid-template-columns: 1fr; gap: 30px; }
  .person img { max-width: 363px; }
  .split .img-square, .split .img-landscape, .split .img-portrait { margin: 0; max-width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .cards.raised { gap: 60px; }
  .page-hero, .page-hero.short { height: 360px; }
  .contact-box { font-size: 1.15rem; }
  .footer-links { flex-direction: column; gap: 8px; }
  .footer-links li + li { border-left: 0; }
}
