/* ============================================================
   ISOTEC Landingpage – Nachbarschaftsaktion (Lokalkampagne)
   Design-Tokens siehe design_handoff_landingpage/README.md
   Fonts lokal eingebunden (DSGVO) – keine Google-Server.
   ============================================================ */

/* ---------- Lokale Schriften (Barlow, Barlow Semi Condensed – latin) ---------- */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-400.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: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-600.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: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/barlow-semi-condensed-500.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: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-semi-condensed-600.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: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-semi-condensed-700.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 {
  --isotec-red: #D51317;
  --isotec-red-dark: #B01013;
  --isotec-brown: #564A44;
  --gray-light: #F4F4F4;
  --gray-border: #E0E0E0;
  --white: #ffffff;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--isotec-brown);
  background: var(--white);
}

p { margin: 0; }
h1, h2, h3 { margin: 0; }

a { color: var(--isotec-red); text-decoration: none; }
a:hover { color: var(--isotec-brown); text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
}

.btn--phone {
  background: var(--isotec-red);
  color: var(--white);
  font-size: 17px;
  padding: 10px 18px;
  white-space: nowrap;
}
.btn--phone:hover { background: var(--isotec-red-dark); color: var(--white); text-decoration: none; }

.btn--cta-inverse {
  margin-top: 14px;
  background: var(--white);
  color: var(--isotec-red);
  font-size: 19px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 13px 24px;
}
.btn--cta-inverse:hover { background: var(--isotec-red); color: var(--white); text-decoration: none; }

.btn--submit {
  background: var(--isotec-red);
  color: var(--white);
  border: none;
  font-size: 18px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 14px 28px;
}
.btn--submit:hover { background: var(--isotec-red-dark); }
.btn--submit:disabled { opacity: 0.65; cursor: default; }

/* ---------- Headline-Balken (ISOTEC CI) ---------- */

.bar {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
}
.bar--red { background: var(--isotec-red); }
.bar--brown { background: var(--isotec-brown); }
.bar--h1 { font-size: 46px; line-height: 1.1; padding: 10px 20px; }
.bar--h2 { font-size: 28px; line-height: 1.15; font-weight: 600; padding: 8px 20px; }
.bar--section { font-size: 24px; padding: 7px 16px; }

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

.site-header { background: var(--white); border-bottom: 1px solid var(--gray-border); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo { height: 52px; width: auto; }
.site-header__contact { display: flex; align-items: center; gap: 16px; }
.site-header__firm { text-align: right; font-size: 12.5px; line-height: 1.4; }

/* ---------- Hero ---------- */
/* Das Hero-Bild wird pro Ort per Inline-Style (background-image) gesetzt. */

.hero {
  position: relative;
  height: 520px;
  background-color: var(--isotec-brown);
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}
.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 44px;
}

/* ---------- Aktionsband ---------- */

.promo { background: var(--isotec-red); color: var(--white); }
.promo__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
}
.promo__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 104px;
  line-height: 1;
}
.promo__number span { font-size: 58px; }
.promo__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
}
.promo__text { font-size: 16px; line-height: 1.55; max-width: 640px; }

.promo__steps {
  list-style: none;
  margin: 0 auto; /* auto noetig: ueberschreibt sonst das Zentrieren der .container-Regel */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.promo-step { display: flex; gap: 14px; align-items: flex-start; }
.promo-step p { font-size: 14.5px; line-height: 1.5; }
.promo-step__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--isotec-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  flex: none;
}

/* ---------- Leistungen ---------- */

.services { background: var(--gray-light); padding: 52px 0 56px 0; }
.services .bar--section { margin-bottom: 28px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card { background: var(--white); display: flex; flex-direction: column; }
.service-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.service-card__body { padding: 18px 20px 22px 20px; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--isotec-red);
  margin-bottom: 8px;
}
.service-card p { font-size: 14px; line-height: 1.55; }
.services__more { margin-top: 24px; font-size: 14px; line-height: 1.55; }

/* ---------- Rückruf-Formular ---------- */

.callback { background: var(--white); }
.callback__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 64px;
}
.callback__intro > p { font-size: 15px; line-height: 1.6; margin-top: 18px; }

.contact-person { margin-top: 26px; display: flex; align-items: flex-end; gap: 16px; }
.contact-person img {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  /* kein CSS-Ring mehr: das Foto bringt seinen roten Ring selbst mit */
  flex: none;
}
.contact-person > div { padding-bottom: 8px; }
.contact-person__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--isotec-red);
}
.contact-person__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 2px 0 4px 0; }
.contact-person__note { font-size: 13.5px; line-height: 1.5; }

.callback__form-wrap { background: var(--gray-light); padding: 28px; }

.callback-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }

.callback-form input[type="text"],
.callback-form input[type="tel"],
.callback-form input[type="email"],
.callback-form select,
.callback-form textarea {
  padding: 11px 12px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--isotec-brown);
  width: 100%;
}
.callback-form textarea { resize: vertical; }
.callback-form ::placeholder { color: #A99F98; opacity: 1; }

/* Honeypot-Feld (Spam-Schutz): für Menschen unsichtbar, Bots füllen es aus. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  cursor: pointer;
}
.consent input { margin-top: 2px; accent-color: var(--isotec-red); }
.consent a { text-decoration: underline; }

.form-error { color: var(--isotec-red); font-size: 13.5px; font-weight: 600; }

.form-success { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 12px 0; }
.form-success__check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--isotec-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
}
.form-success__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-success > p:last-child { font-size: 15px; line-height: 1.6; max-width: 480px; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.legal { background: var(--white); padding: 48px 0 64px 0; }
.legal .bar--section { margin-bottom: 28px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--isotec-red);
  margin: 30px 0 8px 0;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal ul { font-size: 15px; line-height: 1.6; max-width: 760px; margin: 0 0 12px 0; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }

/* Platzhalter für ungeprüfte Angaben – vor Livegang ersetzen! */
.check-note { background: #FFE9A8; padding: 1px 4px; font-weight: 600; }

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

.site-footer { background: var(--isotec-brown); color: var(--white); }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 30px;
  padding-bottom: 30px;
}
.site-footer img { height: 46px; width: auto; }
.site-footer__text { font-size: 13px; line-height: 1.6; text-align: right; }
.site-footer__text a { color: var(--white); text-decoration: underline; }
.site-footer__text a:hover { color: var(--white); }
.site-footer__legal { opacity: 0.75; }
.site-footer__links { opacity: 0.75; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .callback__inner { grid-template-columns: 1fr; gap: 32px; }
  .services__grid { grid-template-columns: 1fr; }
  .promo__steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bar--h1 { font-size: 32px; }
  .bar--h2 { font-size: 20px; }
  .hero { height: 420px; }
  .promo__head { grid-template-columns: 1fr; gap: 12px; }
  .promo__number { font-size: 72px; }
  .callback-form { grid-template-columns: 1fr; }
  .site-header__firm { display: none; }
  .site-footer__inner { justify-content: center; }
  .site-footer__text { text-align: center; }
}

/* hidden-Attribut muss auch gegen display-Regeln (z.B. .callback-form{display:grid}) gewinnen */
[hidden] { display: none !important; }
