:root {
  --sparkasse-rot: #EE0000;
  --hover-dark: rgba(0, 0, 0, 0.18);
  --font-sparkasse: "Source Sans 3", Arial, sans-serif;
  --red: #EE0000;
  --gray-bg: #f5f6f7;
  --text-dark: #1a1a1a;
}

section {
  scroll-margin-top: 120px; /* Headerhöhe + etwas Luft */
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: var(--font-sparkasse);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 105px;
  background-color: var(--sparkasse-rot);
  z-index: 1000;
}

/* Header Container */
.header-container {
  max-width: 1440px;
  height: 105px; /* 🔴 EXAKT gleich wie Header */
  margin: 0 auto;
  padding: 0 32px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Linkes Logo */
.header-left {
  margin-left: -16px;
}

.logo-left {
  height: 42px;
}

/* Rechtes Logo */
.header-right {
  margin-right: -13px;
  margin-top: 5px;
}

.logo-right {
  height: 61px;
}

/* Navigation */
.header-nav {
  margin-left: 50px;
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: 13px;
  align-items: center;
}

.header-nav a {
  display: flex;
  align-items: center;
  height: 45px;
  padding: 0 10px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.header-nav a:hover {
  background-color: var(--hover-dark);
  border-radius: 50px;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  margin-top: 105px;

  height: min(80vh, 700px);

  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Abdunklung */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;

  max-width: 1440px;
  margin: 0 auto;

  padding-left: 75px;
  padding-top: 180px;
}

/* Headline */
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-family: var(--font-sparkasse);

  color: #ffffff;
  max-width: 760px;
}

/* HERO BUTTON */
.hero-btn {
  margin-top: 32px;
  padding: 14px 28px;

  font-family: var(--font-sparkasse);
  font-size: 15px;
  font-weight: 600;

  color: #ffffff;
  background-color: transparent;
  border: 2px solid #ffffff;
  border-radius: 50px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-btn:hover {
  background-color: #ffffff;
  color: var(--sparkasse-rot);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 420px;
  margin: 10vh auto;
  padding: 32px;

  background: #ffffff;
  border-radius: 12px;
}

/* Modal Close */
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;

  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

/* Form */
.modal-content h2 {
  margin-bottom: 24px;
  font-size: 22px;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-content label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.modal-content input,
.modal-content textarea {
  margin-top: 6px;
  padding: 10px;
  font-size: 14px;
}

.form-btn {
  margin-top: 8px;
  padding: 12px;

  background-color: var(--sparkasse-rot);
  color: #ffffff;
  border: none;
  border-radius: 50px;

  font-weight: 600;
  cursor: pointer;
}

/*Global für die Inhalte*/
.section {
  padding: 30px 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.container.narrow {
  max-width: 720px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
}

h3 {
  font-size: 26px;
  font-weight: 700;
}

p {
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   BLOCK 1 – INTRO / EINLEITUNGSTEXT
   "Im Herzen der Innenstadt entsteht ..."
   ========================================================= */


.section.intro {
  background: #ffffff;          /* kein grauer Vollhintergrund */
  padding: 5px 0;
}

/* zentrierte helle Box */
.intro-box {
  background: #f5f6f7;          /* sehr helles Grau */
  border-radius: 24px;
  padding: 64px 72px;

  max-width: 1200px;
  margin: 0 auto;
}

/* Headline */
.intro-box h2 {
  font-size: 30px;              /* kleiner als Hero */
  line-height: 1.2;
  font-weight: 700;

  margin-bottom: 24px;
  text-align: left;
}

/* Text */
.intro-box p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 1000px;

  text-align: left;
}


/* =========================================================
   BLOCK 2 – ZITAT
   Statement mit Person (Marco Muschal)
   ========================================================= */

.section.quote {
  background: #ffffff;
  padding: 120px 0;
}

.quote-box {
  position: relative;
  padding-left: 80px;
}

/* Großes Anführungszeichen */
.quote-mark {
  position: absolute;
  left: 0;
  top: -10px;

  font-size: 140px;
  line-height: 1;
  font-weight: 700;
  color: #bfbfbf;
  font-family: serif;
}

/* Zitattext */
.quote-text {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: #000000;

  max-width: 1000px;
}

/* Autorbereich */
.quote-author {
  margin-top: 32px;
  text-align: center;
}

/* Name */
.quote-name {
  display: block;
  font-size: 18px;
  font-weight: 500;
}

/* Rolle */
.quote-role {
  display: block;
  margin-top: 6px;

  font-size: 16px;
  font-style: italic;
  color: #555555;
}



/* =========================================================
   BLOCK 3 – NEWS / AKTUELLE INFORMATIONEN
   Liste mit Bild + Text
   ========================================================= */

.section.news {
  background: #ffffff;
  padding: 80px 0 40px;
}

.news-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.news-pagination {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.news-pagination button {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.news-pagination button.active {
  border-color: var(--red);
  color: var(--red);
}

.news-pagination button.next {
  font-size: 22px;
  line-height: 1;
}

.news-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;

  border: 1px solid #e5e5e5;
  padding: 32px;
  margin-bottom: 32px;
}

.news-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.news-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
}

.news-meta span::before {
  content: " | ";
}

.news-meta span:first-of-type::before {
  content: "";
}

.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.news-readmore span {
  transition: transform 0.2s ease;
}

.news-readmore:hover span {
  transform: translateX(4px);
}



/* =========================================================
   BLOCK 5 – PROJEKTPHASEN (KEY FEATURE)
   Scroll- & zeitgesteuert
   ========================================================= */

.section.phases {
  background: var(--gray-bg);
}

.phases-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
  margin-top: 80px;
}

.phases-header {
  max-width: 900px;
  margin: 0 auto 80px; /* 🔴 Abstand NUR nach unten */
  text-align: center;
}

.phases-header h2 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
}

.phases-header p {
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Linke Phasenliste */
.phase-list {
  list-style: none;
  position: sticky;
  top: 140px;
  padding: 0;
}

.phase {
  opacity: 0.3;
  margin-bottom: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.phase.active {
  opacity: 1;
}

.phase .progress {
  height: 3px;
  background: #ddd;
  margin-top: 10px;
  overflow: hidden;
}

.phase .progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
}

/* Rechte Bild-/Textfläche */
.phase-content {
  position: relative;
}

.phase-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.phase-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.phase-panel img {
  width: 100%;
  display: block;
}

/* ================================
   GESCHICHTE / TIMELINE
================================ */

.section.history {
  background: #f5f6f7;
  padding: 80px 0 100px;
}

.history-slider-wrapper {
  position: relative;
}

.history-header {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.history-header h2 {
  font-size: 34px;
  margin-bottom: 16px;
}

.history-header p {
  font-size: 16px;
  line-height: 1.6;
}

/* Slider */
.history-slider {
  position: relative;
  overflow: hidden;
}

.history-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Slide */
.history-slide {
  min-width: 33.333%;
  padding: 0 16px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.history-slide.active {
  opacity: 1;
}

.history-slide img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
}

.history-slide h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.history-slide p {
  font-size: 15px;
  line-height: 1.5;
}

/* Arrows */
.history-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: none;
  border: none;

  font-size: 48px;
  font-weight: 300;
  line-height: 1;

  color: var(--sparkasse-rot);
  cursor: pointer;
  user-select: none;
}

/* Links / Rechts Position */
.history-arrow.prev {
  left: -20px;   /* 🔴 außerhalb des Sliders */
}

.history-arrow.next {
  right: -20px;
}

/* Hover wie Sparkasse */
.history-arrow:hover {
  opacity: 0.7;
}

/* Dots */
.history-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.history-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.history-dots button.active {
  background: var(--sparkasse-rot);
}

/* Source */
.history-source {
  margin-top: 40px;
  font-size: 13px;
  color: #777;
}




/* =========================================================
   BLOCK 6 – KONTAKT / FORMULAR
   ========================================================= */

.section.contact {
  background: #ffffff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 15px;
}

.contact-form button {
  margin-top: 12px;
  background: var(--red);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
}

/* ================================
   FOOTER / IMPRESSUM
================================ */

.footer {
  background: linear-gradient(
    180deg,
    #1a1a1a 0%,
    #0f0f0f 100%
  );
  color: #ffffff;
  padding: 48px 0 56px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;

  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Links oben */
.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Copyright */
.footer-copy {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 18px;
  font-weight: 500;
}

/* Roter Kreis mit © (Sparkassen-Feeling) */
.footer-logo {
  width: 40px;
  height: 40px;

  background: var(--sparkasse-rot);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 700;
}

/* =========================================
   MOBILE / HANDY (bis 768px)
========================================= */

@media (max-width: 768px) {

  /* HEADER */
  .header {
    height: auto;
  }

  .header-container {
    height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .header-nav {
    margin-left: 0;
  }

  .header-nav ul {
    justify-content: space-between;
    gap: 8px;
  }

  .header-nav a {
    font-size: 12px;
    padding: 6px 8px;
  }

  /* HERO */
  .hero {
    height: 420px;
    background-size: cover;
  }

  .hero-content {
    padding: 100px 24px 0;
  }

  .hero h1 {
    font-size: 32px;
    max-width: 100%;
  }

  /* INTRO */
  .intro-box {
    padding: 32px 24px;
  }

  .intro-box h2 {
    font-size: 24px;
  }

  /* ZITAT */
  .section.quote {
    padding: 80px 0;
  }

  .quote-box {
    padding-left: 0;
    text-align: left;
  }

  .quote-mark {
    position: static;
    font-size: 72px;
    margin-bottom: 12px;
  }

  .quote-text {
    font-size: 20px;
  }

  .quote-author {
    text-align: left;
  }

  /* NEWS */
  .news-item {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .news-pagination {
    justify-content: center;
  }

  /* PROJEKTPHASEN */
  .phases-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .phase-list {
    position: static;
  }

  .phase {
    margin-bottom: 24px;
  }

  /* HISTORY SLIDER */
  .history-slide {
    min-width: 100%;
    padding: 0;
  }

  .history-arrow.prev {
    left: 8px;
  }

  .history-arrow.next {
    right: 8px;
  }

  /* KONTAKT */
  .container.narrow {
    padding: 0 16px;
  }

}


/* =========================================
   BURGER – OHNE HEADER ZU BEEINFLUSSEN
========================================= */

.burger {
  display: none;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);

  width: 28px;
  height: 22px;

  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;

  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* MOBILE */
@media (max-width: 768px) {

  .burger {
    display: flex;
  }

  .header-right {
    display: none;
  }

  /* Navigation wird Overlay */
  .header-nav {
    position: fixed;
    inset: 0;
    background: var(--sparkasse-rot);

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .header-nav.open {
    transform: translateY(0);
  }

  .header-nav ul {
    flex-direction: column;
    gap: 32px;
  }

  .header-nav a {
    font-size: 20px;
  }
}
