/* ==========================================================================
   RheinMembran GmbH — main.css (FULL)
   - Fonts: Contrail One (headings), Source Sans 3 (everything else)
   - Modern light corporate UI, navy/petrol accents
   - Hero header with integrated navigation overlay
   ========================================================================== */

/* =========================
   1) Fonts
========================= */

/* Contrail One — headings */
@font-face {
  font-family: "Contrail One";
  src: url("../fonts/ContrailOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Source Sans 3 — body (all weights + italics) */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* =========================
   2) Design Tokens
========================= */

:root {
  --navy: #0b2d4d;
  --petrol: #0d6f78;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f2f6fa;

  --text: #112033;
  --muted: #5b6a7a;

  --line: #e5edf5;

  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-sm: 0 6px 18px rgba(10, 30, 50, 0.08);
  --shadow-xs: 0 3px 10px rgba(10, 30, 50, 0.06);

  --maxw: 1200px;
}

/* =========================
   3) Base Reset / Defaults
========================= */

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--petrol);
}

a:hover {
  color: #0a5e66;
}

strong {
  font-weight: 700;
}

/* =========================
   4) Typography
========================= */

h1, h2, h3 {
  font-family: "Contrail One", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 0.65rem 0;
  letter-spacing: 0.2px;
}

h1 {
  font-size: 2.0rem;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 0.9rem 0;
}

.muted {
  color: var(--muted);
}

/* =========================
   5) Layout Container
========================= */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 1.6rem 1.7rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.5rem;
}

@media (max-width: 980px) {
  .page {
    padding: 1.25rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 1.25rem;
  }
}

/* =========================
   6) Components
========================= */

/* Infobox */
.infobox {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  position: relative;
}

.infobox::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 4px;
  background: var(--petrol);
  border-radius: 999px;
}

.infobox-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(0,0,0,0);
  border-radius: 999px;

  padding: 0.7rem 1.05rem;
  font-weight: 600;
  text-decoration: none;

  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: #093056;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(11,45,77,0.06);
  box-shadow: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Lists */
ul {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
}

li {
  margin: 0.35rem 0;
}

/* Forms */
.form {
  display: grid;
  gap: 0.9rem;
}

.label {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  display: inline-block;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  border-color: rgba(13,111,120,0.45);
  box-shadow: 0 0 0 4px rgba(13,111,120,0.12);
}

.help {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Alerts */
.alert {
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.alert.error {
  border-color: rgba(190, 40, 40, 0.25);
  background: rgba(190, 40, 40, 0.06);
}

.alert.success {
  border-color: rgba(20, 120, 80, 0.25);
  background: rgba(20, 120, 80, 0.07);
}

/* =========================
   7) Footer
========================= */

.site-footer {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 2rem 1.6rem 2rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--petrol);
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   8) HERO HEADER (Nav in Headerbild integriert)
========================= */

.hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #000;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* leichte Abdunklung/Aufhellung oben für Lesbarkeit */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.74) 0%,
    rgba(255,255,255,0.40) 28%,
    rgba(255,255,255,0.00) 60%
  );
  pointer-events: none;
}

/* Logo Overlay */
.hero-logo {
  position: absolute;
  top: 28px;
  right: 40px;
  z-index: 3;

  display: inline-flex;
  text-decoration: none;

  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-logo img {
  height: 68px;
  width: auto;
  display: block;

  /* dezente Lesbarkeitsoptimierung */
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}

/* Navigation Overlay */
.hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  z-index: 2;
  padding: 0 2rem;
}

.hero-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.hero-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  transition: 0.2s ease;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}

.hero-nav a:hover {
  color: var(--petrol);
  background: rgba(255,255,255,0.78);
}

/* Claim-Leiste unter dem Header */
.header-claim {
  background: rgba(11,45,77,0.04);
  border-bottom: 1px solid var(--line);
  padding: 10px 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero {
    height: 230px;
  }

  .hero-nav {
    top: 16px;
    padding: 0 1.25rem;
  }

  .hero-nav-inner {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero-logo {
    top: 16px;
    right: 16px;
    padding: 10px 14px;
  }

  .hero-logo img {
    height: 52px;
  }
}

@media (max-width: 560px) {
  .hero {
    height: 210px;
  }

  .header-claim {
    padding: 10px 1.25rem;
  }

  .hero-nav a {
    padding: 0.38rem 0.3rem;
  }
}