/* ==========================================================================
   IPS – Ingenieur- und Planungsbüro Schmidt · Entwurf 5
   Schlicht, im Stil von Logo und Visitenkarte
   ========================================================================== */

/* Schriften lokal eingebunden – keine Verbindung zu Google */
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/merriweather-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: "Merriweather Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/merriweather-sans-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;
}

:root {
  --navy: #132e50;          /* Logofarbe */
  --navy-deep: #0f2644;
  --paper: #f7f6f2;
  --white: #ffffff;
  --text: #132e50;
  --text-2: #3e5171;
  --muted: #6b7a8f;
  --line: rgba(19, 46, 80, .14);
  --on-navy-2: rgba(255, 255, 255, .72);

  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Merriweather Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1080px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 11vw, 150px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(16px, .3vw + 15px, 18px);
  line-height: 1.7;
}

a { color: inherit; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Logo (nachgebaut in Merriweather) ----------
   Die Schriftgröße des Logos steuert alle Maße: 1em = Größe von „IPS“. */
.logo {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1;
  color: var(--white);
}
.logo__ips { font-weight: 600; letter-spacing: .06em; }
.logo__rule {
  flex: none;
  width: max(1px, .029em);
  height: 1.166em;
  margin: 0 .47em 0 .46em;
  background: currentColor;
}
.logo__text { display: flex; flex-direction: column; text-align: left; white-space: nowrap; }
.logo__line { font-size: .275em; font-weight: 500; line-height: 1.2; letter-spacing: .04em; }
.logo__name { margin-top: .11em; font-size: .5em; font-weight: 700; line-height: 1.2; }

/* ---------- Vorderseite ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(28px, 4vw, 44px);
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px var(--gutter);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.logo--hero { font-size: clamp(44px, 8vw, 100px); }

.hero__claim {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding-left: .28em;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--on-navy-2);
}
.hero__claim::before,
.hero__claim::after { content: ""; width: 36px; height: 1px; background: rgba(255, 255, 255, .35); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
  transform: translateX(-50%);
}
.hero__scroll span {
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: scroll-line 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Logo baut sich beim Laden auf */
.js .logo--hero .logo__ips { opacity: 0; transform: translateX(-16px); }
.js .logo--hero .logo__rule { transform: scaleY(0); }
.js .logo--hero .logo__text { opacity: 0; transform: translateX(16px); }
.js .hero__claim,
.js .hero__scroll { opacity: 0; }
.js .logo--hero .logo__ips,
.js .logo--hero .logo__text { transition: opacity 1.1s var(--ease) .35s, transform 1.3s var(--ease) .35s; }
.js .logo--hero .logo__rule { transition: transform 1s var(--ease) .1s; }
.js .hero__claim,
.js .hero__scroll { transition: opacity 1s ease 1s; }
.is-loaded .logo--hero .logo__ips,
.is-loaded .logo--hero .logo__text,
.is-loaded .logo--hero .logo__rule { opacity: 1; transform: none; }
.is-loaded .hero__claim,
.is-loaded .hero__scroll { opacity: 1; }

/* ---------- Inhalte ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(20px, 6vw, 96px);
  align-items: start;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: .9em 0 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--navy); opacity: .45; }

.h2 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy);
}

p { max-width: 38em; margin: 0 0 16px; color: var(--text-2); }
.phases { font-size: .92rem; color: var(--muted); }
.h2__sub {
  display: block;
  margin-top: .4em;
  font-size: .5em;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text-2);
}
.contact__cta {
  margin: 32px 0 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
}
.contact__cta + .contact { margin-top: 20px; }
.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, .9vw + .85rem, 1.4rem);
  line-height: 1.6;
  color: var(--navy);
}

/* Kontakt */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 36px 0 28px;
  padding: 28px 0;
  border-block: 1px solid var(--line);
}
.contact dt {
  margin-bottom: 8px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--navy);
}
.contact > div { flex: 1 1 auto; }
.contact a { white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact a:hover { border-color: var(--navy); }

.contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  transition: background-color .3s, color .3s;
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn:hover { background: var(--navy); color: var(--white); }

/* ---------- Footer ---------- */
.footer { padding: 44px 0; background: var(--navy); color: var(--white); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.logo--small { font-size: 44px; }
.footer__links { display: flex; gap: 28px; font-size: .88rem; }
.footer__links a { text-decoration: none; color: var(--on-navy-2); transition: color .3s; }
.footer__links a:hover { color: var(--white); }
.footer__copy { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* ---------- Einblenden beim Scrollen ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 12px; }
  .label { margin-top: 0; }
  .contact { flex-direction: column; gap: 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Auf dem Handy steht das Logo untereinander, damit die kleine Zeile lesbar bleibt */
@media (max-width: 600px) {
  .logo--hero { flex-direction: column; font-size: 76px; }
  .logo--hero .logo__rule { width: 1.1em; height: max(1px, .026em); margin: .34em 0 .3em; }
  .logo--hero .logo__text { align-items: center; text-align: center; }
  .logo--hero .logo__line { font-size: .27em; }
  .logo--hero .logo__name { font-size: .44em; }
  .js .logo--hero .logo__rule { transform: scaleX(0); }
  .js .logo--hero .logo__ips { transform: translateY(-12px); }
  .js .logo--hero .logo__text { transform: translateY(12px); }
  .is-loaded .logo--hero .logo__ips,
  .is-loaded .logo--hero .logo__text,
  .is-loaded .logo--hero .logo__rule { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal],
  .js .logo--hero .logo__ips,
  .js .logo--hero .logo__text,
  .js .logo--hero .logo__rule,
  .js .hero__claim,
  .js .hero__scroll { opacity: 1; transform: none; }
}

/* ---------- Impressum & Datenschutz ---------- */
a.logo { text-decoration: none; }
.page-head { padding: 22px 0; background: var(--navy); color: var(--white); }
.page-head__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.page-head__back { font-size: .88rem; text-decoration: none; color: var(--on-navy-2); transition: color .3s; }
.page-head__back:hover { color: var(--white); }

.legal { padding: clamp(56px, 8vw, 104px) 0; }
.legal .container { max-width: 760px; }
.legal h1 {
  margin: 0 0 36px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  hyphens: auto;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.legal h2 {
  margin: 44px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}
.legal address { margin: 0 0 14px; font-style: normal; color: var(--text-2); }
.legal a { color: var(--navy); }
.legal__stand { margin-top: 56px; font-size: .88rem; color: var(--muted); }
.footer__links a[aria-current="page"] { color: var(--white); }
