/* Hechtl Water Solutions – Onepager · NGM-Development */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0e2a47;
  --navy-tief: #091d33;
  --tinte: #13283d;
  --text-2: #475a6d;
  --blau: #1d6aab;
  --blau-hell: #e8f1f9;
  --sand: #f6f1e8;
  --linie: #d9e4ee;
  --weiss: #fff;
  --fokus: #f2b705;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rand: clamp(16px, 4vw, 40px);
  --abstand: clamp(72px, 10vw, 128px);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--rand); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--weiss); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blau); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.eyebrow--hell { color: #9fd0f5; }

.marke {
  display: inline-block; font-size: .72rem; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px;
  background: var(--sand); color: #7a5b24;
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border-radius: 99px; background: var(--weiss); color: var(--navy); font-weight: 600; text-decoration: none;
  border: 2px solid var(--weiss); transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--blau-hell); border-color: var(--blau-hell); color: var(--navy); }
.btn--linie { background: transparent; color: var(--weiss); border-color: rgba(255, 255, 255, .55); }
.btn--linie:hover { background: rgba(255, 255, 255, .12); color: var(--weiss); border-color: var(--weiss); }
.btn--klein { min-height: 40px; padding: 8px 18px; background: var(--navy); color: var(--weiss); border-color: var(--navy); }
.btn--klein:hover { background: var(--blau); border-color: var(--blau); color: var(--weiss); }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.kopf__logo img { width: auto; height: 48px; }
.kopf__nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.kopf__nav a:not(.btn) { color: var(--tinte); text-decoration: none; font-weight: 600; font-size: .95rem; }
.kopf__nav a:not(.btn):hover { color: var(--blau); }
@media (max-width: 640px) {
  .kopf__nav a:not(.btn) { display: none; }
  .kopf__inner { min-height: 64px; }
  .kopf__logo img { height: 36px; }
}

/* Kopfbereich */
.hero { position: relative; isolation: isolate; color: var(--weiss); min-height: min(86vh, 780px); display: flex; align-items: center; overflow: hidden; }
.hero__bild, .hero__bild img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bild img { object-fit: cover; object-position: 50% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(9, 29, 51, .92) 0%, rgba(14, 42, 71, .78) 42%, rgba(14, 42, 71, .28) 100%);
}
.hero__inhalt { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: var(--weiss); max-width: 15ch; margin-bottom: 24px; }
.hero__text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 38ch; color: rgba(255, 255, 255, .9); margin-bottom: 36px; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(9, 29, 51, .78) 0%, rgba(14, 42, 71, .9) 100%); }
  .hero__inhalt { padding-top: 72px; padding-bottom: 64px; }
  .hero__knoepfe .btn { flex: 1 1 100%; }
}

/* Abschnittsköpfe */
.abschnitt-kopf { max-width: 720px; margin-bottom: clamp(48px, 7vw, 88px); }
.abschnitt-kopf h2 { margin-bottom: 18px; }
.abschnitt-kopf p:last-child { color: var(--text-2); font-size: 1.125rem; margin: 0; }

/* Leistungen */
.leistungen { padding: var(--abstand) 0; }
.thema {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center;
}
.thema + .thema { margin-top: clamp(64px, 9vw, 120px); }
.thema--gedreht .thema__bild { order: 2; }
.thema__bild img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(14, 42, 71, .45);
}
.thema__bild--hell img { background: var(--weiss); box-shadow: none; border: 1px solid var(--linie); }
.thema__bild--flasche img { object-fit: contain; padding: 24px 0; }
.thema__text { max-width: 560px; }
.thema__text h3 { margin-bottom: 14px; }
.thema__unterzeile { font-family: var(--serif); font-size: 1.2rem; color: var(--blau); margin-bottom: 18px; }
.thema__text h3 + p:not(.thema__unterzeile) { margin-top: 18px; }
.thema__hinweis { font-size: .95rem; color: var(--text-2); margin: 0; }

.chips { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 99px;
  background: var(--blau-hell); color: var(--navy); font-weight: 600; font-size: .92rem;
}
.chips li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--blau);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.6 11 12 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat,
                linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

@media (max-width: 860px) {
  .thema { grid-template-columns: 1fr; gap: 28px; }
  .thema--gedreht .thema__bild { order: 0; }
  .thema__bild img { aspect-ratio: 4 / 3; }
  .thema__text { max-width: none; }
}

/* Prof. Hechtl */
.person { background: var(--sand); padding: var(--abstand) 0; overflow: hidden; }
.person__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.person__bild img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(14, 42, 71, .45);
}
.person__text h2 { margin-bottom: 22px; }
.person__text > p:not(.eyebrow) { font-size: 1.125rem; }
.fakten { margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(14, 42, 71, .15); }
.fakten div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(14, 42, 71, .15); }
.fakten dt { font-weight: 600; color: var(--navy); }
.fakten dd { margin: 0; color: var(--text-2); }
@media (max-width: 860px) {
  .person__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .fakten div { grid-template-columns: 1fr; gap: 2px; } }

/* Kontakt */
.kontakt {
  background: linear-gradient(135deg, var(--blau) 0%, var(--navy) 100%);
  color: var(--weiss); padding: var(--abstand) 0; text-align: center;
}
.kontakt__inner { max-width: 860px; }
.kontakt .eyebrow { justify-content: center; }
.kontakt h2 { color: var(--weiss); margin-bottom: 18px; }
.kontakt p:not(.eyebrow) { font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.kontakt__mail { margin: 28px 0 0; }
.kontakt__mail a {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 4.4vw, 2.6rem); color: var(--weiss);
  text-decoration-thickness: 2px; text-underline-offset: .22em; overflow-wrap: anywhere;
}
.kontakt__mail a:hover { color: #cfe7fa; }

/* Fußbereich */
.fuss { background: var(--navy-tief); color: rgba(255, 255, 255, .78); padding: 64px 0 40px; font-size: .95rem; }
.fuss a { color: #bfe0fa; }
.fuss a:hover { color: var(--weiss); }
.fuss__kopf { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.fuss__kopf img { width: 112px; height: auto; }
.fuss__kopf p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .9); }
.recht { border-top: 1px solid rgba(255, 255, 255, .14); }
.recht:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.recht summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--weiss);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.recht summary::-webkit-details-marker { display: none; }
.recht summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: #9fd0f5; }
.recht[open] summary::after { content: "–"; }
.recht__inhalt { padding: 0 0 24px; max-width: 760px; }
.recht__inhalt h3 { font-family: var(--sans); font-size: 1rem; color: var(--weiss); margin: 18px 0 6px; letter-spacing: 0; }
.recht__inhalt p { margin: 0 0 .8em; }
.recht__stand { color: rgba(255, 255, 255, .55); }
.fuss__copy { margin: 28px 0 0; color: rgba(255, 255, 255, .5); font-size: .875rem; }

/* Fehlerseite */
.fehler { min-height: 70vh; display: flex; align-items: center; padding: var(--abstand) 0; }
.fehler h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
