/* die-wundexpertin.de – Stylesheet
   Farben aus dem Logo, Schrift Archivo (lokal, SIL Open Font License). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-standard-italic.woff2") format("woff2-variations");
}

:root {
  --marine: #1e2433;
  --signal: #ca462a;
  --signal-dunkel: #a8371f;
  --taube: #758ac4;
  --taube-text: #4f639c;   /* Hervorhebung auf hellem Grund */
  --taube-hell: #aebcea;   /* Hervorhebung auf Marine */
  --gaze: #f2f4f9;
  --text: #1e2433;
  --text-leise: #4b536a;
  --linie: #d6dbe8;

  --breite: 1180px;
  --rand: clamp(20px, 5vw, 48px);
  --abstand: clamp(72px, 10vw, 136px);
  --schnitt: 7deg;           /* Winkel des "Verbandschnitts" */
  --kopf: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--taube); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }

/* ---------- Überschriften ---------- */

.titel {
  margin: 0;
  font-stretch: 125%;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}
.titel em { font-style: normal; color: var(--taube-text); }
.dunkel .titel em, .hero .titel em { color: var(--taube-hell); }
.preise__liste { margin-top: 1.2em; }

.titel--gross { font-size: clamp(2.1rem, 4.7vw, 4rem); }
.hero__titel { text-wrap: pretty; }
.titel--mittel { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.titel--klein { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.4em;
  border-radius: 3px;
  background: var(--signal);
  color: #fff;
  font-weight: 650;
  font-stretch: 110%;
  text-decoration: none;
  transition: background-color .15s ease;
}
.knopf:hover { background: var(--signal-dunkel); }

/* ---------- Sechseck-Aufzählung (wie im Logo) ---------- */

.sechsecke { list-style: none; margin: 0; padding: 0; }
.sechsecke li { position: relative; padding-left: 1.6em; margin-bottom: .7em; }
.sechsecke li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: .7em;
  height: .8em;
  background: var(--signal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- Schräger Schnitt für Fotos ---------- */

.schnitt { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner { display: flex; align-items: center; gap: 24px; height: var(--kopf); }
.kopf__logo img { height: 44px; width: auto; }
.kopf__menue { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.kopf__menue a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--text-leise); }
.kopf__menue a:hover, .kopf__menue a.aktiv { color: var(--marine); }
.kopf__menue a.aktiv { box-shadow: inset 0 -2px 0 var(--signal); }
.kopf__menue a.kopf__anrufen { padding: .6em 1.1em; color: #fff; font-weight: 650; }
.kopf__knopf {
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--marine);
  cursor: pointer;
}
.kopf__knopf svg { display: block; }

@media (max-width: 900px) {
  .kopf__knopf { display: block; }
  .kopf__menue {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--rand) 24px;
    background: #fff;
    border-bottom: 1px solid var(--linie);
  }
  .kopf__menue.ist-offen { display: flex; }
  .kopf__menue a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--linie); }
  .kopf__menue a.aktiv { box-shadow: none; color: var(--signal); }
  .kopf__menue .kopf__anrufen { margin-top: 16px; justify-content: center; border: 0; color: #fff; }
}

/* ---------- Bereiche ---------- */

.bereich { padding-block: var(--abstand); }
.bereich--gaze { background: var(--gaze); }
.dunkel { background: var(--marine); color: #fff; }

/* ---------- Kopfbereich (Hero) ---------- */

.hero { position: relative; background: var(--marine); color: #fff; overflow: hidden; }
.hero__text { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); }
.hero__marke { width: clamp(150px, 18vw, 220px); margin-bottom: clamp(32px, 5vw, 56px); }
.hero__titel { max-width: 15em; }
.hero__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 901px) {
  .hero__text {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "titel marke" "aktion marke";
    column-gap: 48px;
    align-items: start;
  }
  .hero__marke { grid-area: marke; width: clamp(200px, 22vw, 300px); margin: .4em 0 0; }
  .hero__titel { grid-area: titel; }
  .hero__aktion { grid-area: aktion; }
}
.hero__telefon { color: #fff; text-decoration: none; font-weight: 600; font-stretch: 110%; }
.hero__telefon:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Das Verbandsband: Foto mit schräger Oberkante und Farbstreifen am Schnitt */
.band { position: relative; height: clamp(150px, 26vw, 360px); margin-top: calc(-1 * clamp(20px, 6vw, 90px)); }
.band__streifen,
.band__foto { position: absolute; inset: 0; }
.band__streifen {
  background: linear-gradient(100deg, var(--marine) 0%, var(--taube) 45%, var(--signal) 100%);
  clip-path: polygon(0 calc(55% - 10px), 100% calc(0% - 10px), 100% 100%, 0 100%);
}
.band__foto { clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%); }
.band__foto img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .band__streifen { animation: streifen 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .band__foto { animation: verband 1.1s cubic-bezier(.2, .7, .2, 1) .3s both; }
  @keyframes streifen { from { clip-path: polygon(0 calc(55% - 10px), 0 calc(55% - 10px), 0 100%, 0 100%); } }
  @keyframes verband { from { clip-path: polygon(0 55%, 0 55%, 0 100%, 0 100%); } }
}

/* ---------- Probleme (Text unter der Hauptüberschrift) ---------- */

.probleme { padding-block: clamp(56px, 8vw, 104px); }
.probleme__text { max-width: 40rem; margin-left: clamp(0px, 8vw, 96px); }
.probleme__text p {
  position: relative;
  margin: 0 0 1.4em;
  padding-left: 1.6em;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.45;
}
.probleme__text p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: .6em;
  height: .7em;
  background: var(--signal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- Hilfe ---------- */

.hilfe { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hilfe__text .titel { margin-bottom: .7em; }
.hilfe__text .inhalt { max-width: 34em; margin-bottom: 2em; }

/* ---------- Angebote & Preise ---------- */

.angebote { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 7vw, 104px); }
.angebote .titel { margin-bottom: 1.1em; }
.angebote__liste .sechsecke { columns: 2; column-gap: 40px; }
.angebote__liste .sechsecke li { break-inside: avoid; }

.hinweis { position: relative; border-left: 3px solid var(--signal); padding: 4px 0 4px 22px; margin-bottom: clamp(48px, 6vw, 72px); }
.hinweis__pfeil { position: absolute; left: -64px; top: -46px; width: 56px; }
.hinweis__titel { margin: 0 0 .35em; color: var(--signal); font-stretch: 125%; font-weight: 750; font-size: 1.1rem; }
.hinweis p { color: #dfe3ee; }

/* ---------- Über mich ---------- */

.ueber__kopf { display: flex; align-items: flex-end; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.ueber__kopf img { width: 64px; flex: none; transform: translateY(18px); }
.spalten { columns: 2; column-gap: clamp(32px, 6vw, 80px); color: var(--text-leise); }
.spalten p { break-inside: avoid; margin-bottom: 1.1em; }
.spalten strong { color: var(--text); }

/* ---------- Kontakt ---------- */

.kontakt { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.kontakt__name { margin: 1.4em 0 .8em; font-size: 1.1rem; font-weight: 650; }
.kontakt__wege { display: grid; gap: 10px; }
.kontakt__telefon {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-stretch: 112%;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  overflow-wrap: anywhere;
}
.kontakt__email { color: #dfe3ee; text-decoration-color: var(--taube); text-underline-offset: 4px; overflow-wrap: anywhere; }
.kontakt__telefon:hover, .kontakt__email:hover { color: var(--taube-hell); }
.kontakt__foto { margin-bottom: calc(-1 * var(--abstand)); }

/* ---------- Zitate ---------- */

.zitate { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 6vw, 80px); }
.zitate blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  font-stretch: 112%;
  font-weight: 600;
  color: var(--marine);
  text-wrap: balance;
}

/* ---------- Kundenstimmen ---------- */

.stimmen__kopf { margin-bottom: clamp(36px, 5vw, 64px); }
.stimmen { --luecke: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--luecke); }

/* Ab 2 Kundenstimmen: Karussell, immer eine Kundenstimme sichtbar */
.stimmen--karussell {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.stimmen--karussell::-webkit-scrollbar { display: none; }
.stimmen--karussell > .stimme { scroll-snap-align: start; }

/* Pfeile links und rechts, mittig auf Höhe der Fotos (--bildmitte setzt main.js) */
.karussell { position: relative; }
.karussell__knopf {
  position: absolute;
  top: var(--bildmitte, 120px);
  z-index: 2;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--marine);
  border-radius: 50%;
  background: #fff;
  color: var(--marine);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.karussell__knopf:hover { background: var(--marine); color: #fff; }
.karussell__knopf--zurueck { left: -24px; }
.karussell__knopf--weiter { right: -24px; }
@media (max-width: 640px) {
  .karussell__knopf { width: 42px; height: 42px; }
  .karussell__knopf--zurueck { left: -10px; }
  .karussell__knopf--weiter { right: -10px; }
}

/* Punktleiste unter dem Karussell */
.karussell__punkte { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 32px; }
.karussell__punkt {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.karussell__punkt::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background: var(--linie);
  transition: background-color .15s ease, transform .15s ease;
}
.karussell__punkt:hover::before { background: var(--taube); }
.karussell__punkt[aria-current="true"]::before { background: var(--signal); transform: scale(1.2); }
/* Eine Kundenstimme: Foto links, Zitat und Name rechts, vertikal zum Foto zentriert */
.stimme {
  margin: 0;
  display: grid;
  grid-template-columns: 11fr 9fr;
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(32px, 5vw, 72px);
}
.stimme img { grid-column: 1; grid-row: 1 / -1; align-self: center; width: 100%; aspect-ratio: 1000 / 734; object-fit: cover; }
.stimme blockquote {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 24px;
  padding-right: 48px;  /* Platz für den rechten Pfeil */
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-leise);
}
.stimme figcaption {
  grid-column: 2;
  grid-row: 3;
  margin-right: 48px;
  padding-top: 12px;
  border-top: 2px solid var(--marine);
  font-weight: 650;
  font-stretch: 110%;
}
@media (max-width: 760px) {
  .stimme { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .stimme img { grid-row: 1; margin-bottom: 24px; }
  .stimme blockquote { grid-column: 1; grid-row: 2; padding-right: 0; }
  .stimme figcaption { grid-column: 1; grid-row: 3; align-self: start; margin-right: 0; }
}

/* ---------- Fußzeile ---------- */

.fuss { background: var(--marine); color: #dfe3ee; padding-block: 56px 40px; }
.fuss__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.fuss__marke { width: 170px; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .95rem; }
.fuss__links a { color: #fff; text-underline-offset: 4px; }

/* ---------- Impressum / Datenschutz ---------- */

.rechtstext { padding-block: clamp(48px, 7vw, 96px); }
.rechtstext .wrap { max-width: calc(46rem + 2 * var(--rand)); }
.rechtstext .titel { margin-bottom: .8em; }
.rechtstext h2 { margin: 2.2em 0 .6em; font-size: 1.2rem; font-stretch: 112%; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext a { color: var(--signal-dunkel); overflow-wrap: anywhere; }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 900px) {
  .hilfe, .angebote, .kontakt { grid-template-columns: 1fr; }
  .hilfe__foto { max-width: 520px; }
  .hinweis__pfeil { display: none; }
  .kontakt__foto { max-width: 480px; }
}

@media (max-width: 640px) {
  .angebote__liste .sechsecke, .spalten { columns: 1; }
  .probleme__text { margin-left: 0; }
  .ueber__kopf img { width: 44px; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
