/* Trendhouse – statische Website (Nachbau des Salient-Designs von 2021) */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/poppins-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Grundwerte (aus den Theme-Einstellungen übernommen) ---------- */
:root {
  --navy: #2f4b72;        /* Akzentfarbe, Header, Footer, CTA-Bänder */
  --blue: #2850ff;        /* Logo-Blau, Buttons, Hervorhebungen */
  --yellow: #fcea10;      /* Logo-Gelb, Hervorhebung auf dunklem Grund */
  --sky: #e2eaff;         /* helle Flächen */
  --sky-2: #eaf1fd;
  --text: #111;
  --muted: rgba(0, 0, 0, .72);
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 18px/32px var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.13; font-weight: 700; }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.3; font-weight: 700; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 18px; line-height: 26px; font-weight: 500; }
h5 { font-size: 14px; line-height: 25px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }
.eyebrow { font: 600 14px/25px var(--font-head); color: rgba(0, 0, 0, .78); margin-bottom: 10px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Hervorgehobener Text (Salient „half_text“) ---------- */
.hl em, .hl i {
  font-style: normal;
  background-image: linear-gradient(var(--hl, var(--navy)), var(--hl, var(--navy)));
  background-repeat: no-repeat;
  background-position: left 88%;
  background-size: 0% 28%;
  transition: background-size 1s cubic-bezier(.25, .8, .25, 1);
}
.hl.is-in em, .hl.is-in i, .no-js .hl em, .no-js .hl i { background-size: 100% 28%; }
.hl--blue { --hl: var(--blue); }
.hl--yellow { --hl: var(--yellow); }
.hl--soft { --hl: rgba(52, 82, 255, .43); }
@media (prefers-reduced-motion: reduce) { .hl em, .hl i { transition: none; background-size: 100% 28%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border-radius: var(--radius);
  background: var(--navy); color: #fff; text-decoration: none;
  font: 600 16px/1.2 var(--font-head);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transition: transform .25s, box-shadow .25s, background-color .25s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.btn--blue { background: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { color: var(--navy); }
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }

.cta-link { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1.4 var(--font-head); color: var(--text); text-decoration: none; }
.cta-link svg { width: 18px; height: 18px; transition: transform .25s; }
.cta-link:hover svg { transform: translateX(5px); }
.cta-link--blue { color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 22px; }
.header-contact { display: flex; gap: 14px; }
.header-contact a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--navy); background: var(--sky); transition: background-color .2s, color .2s; }
.header-contact a:hover { background: var(--navy); color: #fff; }
.header-contact svg { width: 17px; height: 17px; }
.logo img { width: clamp(220px, 30vw, 420px); height: auto; }
.menu-toggle { justify-self: end; display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }

.main-nav { background: var(--navy); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.main-nav a {
  position: relative; display: block; padding: 18px 12.5px;
  font: 500 16px/16px var(--font-head); color: #fff; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12.5px; right: 12.5px; bottom: 12px; height: 2px;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 999px) {
  .header-top { grid-template-columns: auto 1fr auto; padding-block: 14px; }
  .header-contact { order: 3; justify-self: end; }
  .logo { order: 1; }
  .logo img { width: 190px; }
  .menu-toggle { display: block; order: 4; }
  .header-top { grid-template-columns: auto 1fr auto auto; gap: 8px; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 0 16px; }
  .main-nav a { padding: 14px var(--gutter); font-size: 18px; }
  .main-nav a::after { left: var(--gutter); right: auto; width: 40px; bottom: 6px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 420px) {
  .header-contact a { width: 34px; height: 34px; }
  .logo img { width: 160px; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 70px); }
.section--navy { background: var(--navy); color: #fff; }
.section--sky { background: var(--sky); }
.section--sky2 { background: var(--sky-2); }

/* Hero */
.hero {
  position: relative; color: #fff; min-height: min(92vh, 860px);
  display: flex; align-items: center; isolation: isolate; overflow: hidden;
  padding-block: clamp(90px, 14vw, 180px);
}
.hero__bg { position: absolute; inset: -8% 0; z-index: -2; background: url("../img/hero.webp") center / cover no-repeat; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(198, 198, 198, .64) 0%, rgba(0, 8, 40, .8) 100%); }
.hero__inner { text-align: center; max-width: 900px; margin-inline: auto; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { display: inline-block; }
.hero .tagline { font-size: clamp(18px, 2vw, 21px); max-width: 550px; margin: 0 auto 2.2em; }
.hero .kicker { font: 500 16px/1.4 var(--font-head); letter-spacing: .02em; margin-bottom: 1.2em; opacity: .95; }

/* Kategorien (fancy boxes) */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.cat {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 22px; color: #fff;
  box-shadow: var(--shadow); isolation: isolate;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 10, 40, .72), rgba(0, 10, 40, .05) 65%); }
.cat:hover img { transform: scale(1.07); }
.cat h3 { margin: 0; text-align: right; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
@media (max-width: 999px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .cat { padding: 16px; } .cat h3 { font-size: 19px; } }

/* CTA-Band (dunkelblau) */
.band { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: center; }
.band > :last-child { grid-column: 3; }
.band h2 { margin: 0; }
.band h2 + h2 { margin-top: .2em; font-weight: 500; }
@media (max-width: 899px) { .band { grid-template-columns: 1fr; gap: 28px; } .band > :last-child { grid-column: auto; } }

/* Drei Zielgruppen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 3%; }
.feature .icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: rgba(47, 75, 114, .12); color: var(--navy); margin-bottom: 26px; }
.feature .icon svg { width: 34px; height: 34px; }
.feature h4 { margin-bottom: 8px; }
.feature p { color: var(--muted); }
@media (max-width: 899px) { .features { grid-template-columns: 1fr; gap: 40px; } }

/* Blaue Box mit Welle */
.curve-wrap { padding-top: 60px; background: #fff; }
.blue-box {
  background: var(--blue); color: #fff; border-radius: 0; text-align: center;
  padding: clamp(60px, 8vw, 110px) var(--gutter); position: relative;
}
.blue-box h2 { max-width: 760px; margin: 0 auto 1.2em; }
.curve { display: block; width: 100%; height: 60px; color: #fff; }

/* Nummerierte Liste */
.numlist { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numlist li { counter-increment: n; position: relative; padding-left: 70px; margin-bottom: 34px; color: var(--muted); }
.numlist li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15);
  display: grid; place-items: center; font: 600 16px/1 var(--font-head); color: var(--text);
}
.numlist--3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
@media (max-width: 999px) { .numlist--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .numlist--3 { grid-template-columns: 1fr; } }

/* Bild + Liste (Unterseiten) */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split--about { grid-template-columns: 2fr 1fr; }
@media (max-width: 899px) { .split, .split--about { grid-template-columns: 1fr; } }

.page-intro { padding-block: clamp(48px, 6vw, 80px) clamp(36px, 5vw, 64px); text-align: center; }
.page-intro h2, .page-intro h1 { margin-bottom: .6em; }
.page-intro .lead { font: 600 15px/1.7 var(--font-head); color: rgba(0, 0, 0, .78); max-width: 720px; margin: 0 auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); margin-top: 2em; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.logo-showcase { width: 100%; max-width: 800px; margin: 0 auto; }
.intro-half { max-width: 600px; margin-bottom: 6%; }

/* ---------- Kontakt ---------- */
.contact-hero { position: relative; color: #fff; isolation: isolate; padding-block: clamp(110px, 14vw, 170px) clamp(40px, 5vw, 70px); background: var(--navy); }
.contact-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/kontakt-hintergrund.webp") left top / cover no-repeat; opacity: .5; }
.contact-hero h1 { margin-bottom: 1em; }
.form-card { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 50px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font: 700 15px/1.4 var(--font-body); color: #333; margin-bottom: 8px; }
.field .req { color: #c00; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--text);
  padding: 13px 15px; border: 1px solid #cfd6e4; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 80, 255, .15); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; cursor: pointer; }
.radios input { accent-color: var(--blue); width: 18px; height: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions button { border: 0; cursor: pointer; }
.form-note { font-size: 14px; color: var(--muted); }
.notice { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; font-weight: 500; }
.notice--ok { background: #e7f7ee; color: #0d5c2c; }
.notice--err { background: #fdecec; color: #8a1010; }

.contact-info { padding-block: clamp(70px, 10vw, 130px) clamp(50px, 7vw, 90px); background: var(--sky); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 20px; }
.contact-grid h5 { margin: 0 0 2px; }
.contact-grid p { margin: 0 0 4px; }
.contact-grid .item { margin-bottom: 26px; }
.person img { width: 75%; max-width: 260px; border-radius: var(--radius); margin-bottom: 14px; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(48px, 7vw, 90px); }
.legal h1 { margin-bottom: .8em; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; margin-top: 1.8em; }
.legal h3 { font-size: 19px; line-height: 1.4; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }
.legal a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: #fff; isolation: isolate; background: var(--navy); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/footer-hintergrund.webp") center / cover no-repeat; opacity: .1; }
.footer-main { padding-block: 70px 60px; text-align: center; }
.footer-main h4 { font-size: 20px; line-height: 1.4; margin-bottom: 14px; }
.footer-main a { color: #fff; }
.footer-main p { font-weight: 700; }
.footer-person img { width: 150px; margin: 24px auto 10px; }
.footer-person figcaption { font-size: 16px; }
.footer-bottom { background: var(--sky); color: #000; text-align: center; font-size: 14px; line-height: 1.6; padding: 22px var(--gutter); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; }
.footer-bottom a { color: #000; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom .sep { opacity: .35; }
@media (max-width: 800px) { .footer-bottom { font-size: 12px; gap: 2px 8px; } }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero__bg { transform: none !important; } }

/* Hilfsklassen */
h1.as-h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.3; }
.flush-top { padding-top: 0; }
.flush-bottom { padding-bottom: 0; }
.cat--long h3 { font-size: clamp(17px, 1.7vw, 22px); }
