/* ============================================================
   INFRAPLAN — main.css
   Mobile-first. Dark theme. Orange accents.
   Breakpoints: 640 / 768 / 1024 / 1280
   ============================================================ */

/* --- Design tokens --- */
:root {
  --orange:      #E8720C;
  --orange-dark: #C55E08;
  --dark:        #0F0F0F;
  --dark-2:      #181818;
  --dark-3:      #222222;
  --border:      #2C2C2C;
  --text:        #F0F0F0;
  --muted:       #999999;
  --white:       #FFFFFF;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --max-w: 1200px;
  --nav-h: 64px;
  --section-py: 5rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.badge--orange { color: var(--orange); }

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn--orange {
  background: var(--orange);
  color: var(--white);
}
.btn--orange:hover { background: var(--orange-dark); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline:hover { border-color: var(--white); }
.btn--full { width: 100%; justify-content: center; }

/* ==============================================================
   NAV
   ============================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #000;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo img {
  height: 40px;
  width: auto;
  mix-blend-mode: screen;
}

/* Mobile menu — hidden by default */
.nav__menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #000;
  padding: 2rem 1.5rem;
  gap: 0;
  overflow-y: auto;
}
.nav__menu.is-open { display: flex; }

.nav__link {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav__link:hover,
.nav__link.active { color: var(--orange); }

.nav__cta {
  margin-top: 1.5rem;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* Hamburger */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav__burger { display: none; }

  .nav__menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    align-items: center;
    gap: 2rem;
  }

  .nav__link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    padding: 0;
    border: none;
  }

  .nav__cta {
    margin-top: 0;
    align-self: auto;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ==============================================================
   HERO
   ============================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.85) 80%,
    rgba(0,0,0,1) 100%
  );
  z-index: 1;
}

/* When no hero image: show gradient background */
.hero:not(:has(.hero__bg)) {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1209 50%, #0f0f0f 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__subline {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* Stats bar */
.stats {
  position: relative;
  z-index: 2;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1.5rem;
  flex: 1;
  min-width: 100px;
}

.stats__zahl {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.stats__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.stats__divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}

/* ==============================================================
   LEISTUNGEN
   ============================================================== */
.leistungen {
  padding: var(--section-py) 0;
  background: var(--dark);
}

.leistungen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.leistungs-karte {
  background: var(--dark-2);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.leistungs-karte:hover { background: var(--dark-3); }

.leistungs-karte__icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 114, 12, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.leistungs-karte__icon .material-symbols-outlined {
  color: var(--orange);
  font-size: 1.5rem;
}

.leistungs-karte__titel {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.leistungs-karte__text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.leistungs-karte__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.15s;
}
.leistungs-karte__link:hover { opacity: 0.8; }

@media (min-width: 768px) {
  .leistungen__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==============================================================
   ÜBER UNS
   ============================================================== */
.ueber-uns {
  padding: var(--section-py) 0;
  background: var(--dark-2);
}

.ueber-uns__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.ueber-uns__body {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 540px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature__icon {
  color: var(--orange);
  font-size: 1.75rem;
}

.feature__label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.3;
}

.ueber-uns__bild img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .ueber-uns__layout {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
  .ueber-uns__text { flex: 1; }
  .ueber-uns__bild { flex: 1; }
  .ueber-uns__bild img { height: 480px; }
}

/* ==============================================================
   PARTNER
   ============================================================== */
.partner {
  padding: 3.5rem 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partner__headline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

.partner__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.partner__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  min-height: 72px;
}

.partner__item img {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}
.partner__item:hover img { filter: none; opacity: 1; }

.partner__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.partner__name span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.partner__name small {
  font-size: 0.7rem;
  color: rgba(153,153,153,0.6);
  margin-top: 0.2rem;
}

@media (min-width: 640px) {
  .partner__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==============================================================
   KONTAKT
   ============================================================== */
.kontakt {
  padding: var(--section-py) 0;
  background: var(--dark-2);
}

.kontakt__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.kontakt__headline {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.kontakt__liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kontakt__liste li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.kontakt__liste .material-symbols-outlined {
  color: var(--orange);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.kontakt__liste a:hover { color: var(--orange); }

/* Form */
.kontakt__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group input,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group--error input,
.form-group--error textarea { border-color: #e55; }
.form-error {
  font-size: 0.75rem;
  color: #e55;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(232, 114, 12, 0.1);
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 1.25rem;
  font-weight: 500;
}
.form-success .material-symbols-outlined { font-size: 1.4rem; }

@media (min-width: 640px) {
  .form-row { flex-direction: row; }
  .form-row .form-group { flex: 1; }
}

@media (min-width: 1024px) {
  .kontakt__layout {
    flex-direction: row;
    gap: 5rem;
    align-items: flex-start;
  }
  .kontakt__info { flex: 0 0 340px; }
  .kontakt__form-wrap { flex: 1; }
}

/* ==============================================================
   FOOTER
   ============================================================== */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__logo {
  mix-blend-mode: screen;
  opacity: 0.8;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer__nav a:hover { color: var(--orange); }

/* ==============================================================
   LOGIN PAGE
   ============================================================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  background: var(--dark);
}

.login-box {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
}

.login-box__logo {
  mix-blend-mode: screen;
  margin: 0 auto 2rem;
}

.login-box input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
.login-box input:focus { border-color: var(--orange); }
.login-box input::placeholder { color: var(--muted); }

.login-box__error {
  font-size: 0.8rem;
  color: #e55;
  margin-bottom: 0.75rem;
}
