/* ============================================
   PPOE Theme for Völser Radl-Börse
   Based on: https://ppoe.at/service/ressourcen/design/
   ============================================ */

:root {
  /* ========================================
     PPOE Brand Colors
     Reference: https://ppoe.at/service/ressourcen/design/
     ======================================== */

  /* Primary Palette */
  --ppoe-red: #9D2632;
  --ppoe-gray: #4D4F5A;

  /* Stage Colors (for reference, may be used in future) */
  --ppoe-biber: #904837;
  --ppoe-wiwoe: #FBBB21;
  --ppoe-gusp: #159A34;
  --ppoe-caex: #0B4697;
  --ppoe-raro: #E62336;

  /* ========================================
     Semantic Color Mapping
     ======================================== */
  --color-primary: var(--ppoe-red);
  --color-secondary: var(--ppoe-gray);
  --color-text: var(--ppoe-gray);
  --color-text-light: #ffffff;
  --color-background: #f7f6f4;
  --color-background-alt: #f8f9fa;

  /* ========================================
     Typography
     ======================================== */
  --font-body: 'Kumbh Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Gloria Hallelujah', cursive;

  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-hero: 3rem;

  /* ========================================
     Spacing & Layout
     ======================================== */
  --navbar-height: 56px;
  --section-padding: 4rem;
  --container-max-width: 1140px;
}

/* ========================================
   Base Typography
   ======================================== */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  font-size: 1.125rem; /* 18px base */
  line-height: 1.7;
  margin-top: var(--navbar-height); /* Space for fixed navbar */
  hyphens: auto;
}

p {
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 400;
}

.featurette p:not(.lead) {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.75;
}

/* Definition lists in content */
dl {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

dd {
  margin-left: 0;
  margin-bottom: 0.5rem;
}

/* ========================================
   Navbar
   ======================================== */

.ppoe-navbar {
  background-color: var(--ppoe-caex) !important;
}

.ppoe-navbar .navbar-brand {
  font-family: var(--font-body);
  font-weight: 600;
}

.ppoe-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ppoe-navbar .nav-link:hover,
.ppoe-navbar .nav-link:focus {
  color: #ffffff !important;
}

/* ========================================
   Hero Section
   ======================================== */

.header-image {
  display: block;
  width: 100%;
  text-align: center;
  background: url('../img/radlwusl.jpg') no-repeat center center scroll;
  background-size: cover;
  padding-top: var(--navbar-height);
}

/* Remove gap between header and halstuch */
header {
  margin-bottom: 0 !important;
}

.headline {
  padding: 120px 0;
}

.headline h1 {
  font-family: var(--font-body);
  color: #ffffff;
  font-size: 500%;
  font-weight: 700;
  background-color: #9D2632;
  padding: 10px 20px;
  margin-bottom: 50px;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.headline h2 {
  font-family: var(--font-body);
  color: #ffffff;
  font-size: 300%;
  background-color: #4D4F5A;
  padding: 10px 20px;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Halstuch Divider (from pfadivoels.at)
   ======================================== */

.halstuch-divider {
  width: 100%;
  height: 0;
  padding-bottom: 12.2%; /* Aspect ratio: 343/2811 = 12.2% */
  background-image: url('../img/halstuch.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
}

/* ========================================
   Logo Bar
   ======================================== */

.logo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1rem 2rem 1rem;
  margin-top: -90px;
  position: relative;
  z-index: 10;
}

.logo-bar img {
  max-height: 100px;
  width: auto;
}

/* ========================================
   Section Images
   ======================================== */

.featurette-image {
  display: block;
  max-width: 100%;
}

/* ========================================
   Sections
   ======================================== */

.featurette {
  padding: 3rem 0;
}

/* Subtle separator between sections */
.featurette + .featurette {
  border-top: 1px solid rgba(77, 79, 90, 0.15);
  padding-top: 3rem;
}

/* Scroll offset for fixed navbar when jumping to anchors */
.featurette[id] {
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}

.first-featurette {
  padding-top: 2rem;
}

.featurette-heading {
  font-family: var(--font-body);
  color: var(--ppoe-red);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.2;
  margin-bottom: 0;
}

.featurette-heading .slogan {
  font-family: var(--font-accent);
  color: var(--ppoe-gray);
  display: block;
  transform: rotate(-2deg);
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  font-size: 65%;
}

/* Lead paragraph spacing */
.featurette .lead {
  margin-bottom: 1.5rem;
}

/* ========================================
   Section Subtitles (h3)
   ======================================== */

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ppoe-red);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.section-subtitle:first-child {
  margin-top: 0;
}

/* ========================================
   Content Cards
   ======================================== */

.content-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.content-card .section-subtitle {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.content-card--primary {
  background-color: #ffffff;
  border: 2px solid var(--ppoe-red);
}

/* Hint box - dezent prominent mit Icon */
.hint-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: rgba(11, 70, 151, 0.08); /* CaEx Blau, sehr dezent */
  border-left: 3px solid var(--ppoe-caex);
  padding: 0.75rem 1rem;
  border-radius: 0 0.25rem 0.25rem 0;
  font-size: 0.95rem;
}

.hint-box .hint-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ========================================
   Ablauf List (Process Steps)
   ======================================== */

.ablauf-list {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ablauf-list dt {
  color: var(--ppoe-red);
  font-size: 1.1rem;
}

.ablauf-list dd {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 0.75rem;
}

.ablauf-list dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ========================================
   Steps List (Three-Step Visualization)
   ======================================== */

.steps-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: steps;
}

.steps-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 200px;
  max-width: 250px;
  padding: 1.25rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  counter-increment: steps;
  font-size: 0.9rem;
  line-height: 1.4;
}

.steps-list li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--ppoe-caex);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.steps-list li strong {
  display: block;
  color: var(--color-text);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.steps-time {
  color: var(--ppoe-red);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ========================================
   Download Buttons
   ======================================== */

.download-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 300px;
}

.btn-ppoe-download {
  background-color: var(--ppoe-gusp);
  color: var(--color-text-light);
  border: none;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease-in-out;
  font-family: var(--font-body);
}

.btn-ppoe-download:hover,
.btn-ppoe-download:focus {
  background-color: #117a2a;
  color: var(--color-text-light);
}

.btn-ppoe-download .btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1);
}

/* ========================================
   Map Links
   ======================================== */

.map-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--ppoe-red);
  text-decoration: none;
  font-weight: 500;
}

.map-link:hover,
.map-link:focus {
  color: #7a1d27;
  text-decoration: underline;
}

.map-link-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  align-self: center;
}

/* ========================================
   Alert Boxes
   ======================================== */

.alert-ppoe-danger {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: rgba(157, 38, 50, 0.08); /* PPOE Rot, sehr dezent */
  border-left: 3px solid var(--ppoe-red);
  color: var(--color-text);
  padding: 0.75rem 1rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

.alert-ppoe-danger a {
  color: var(--ppoe-red);
  text-decoration: underline;
}

.alert-ppoe-danger .alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.alert-ppoe-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: rgba(21, 154, 52, 0.08); /* GuSp Grün, sehr dezent */
  border-left: 3px solid var(--ppoe-gusp);
  color: var(--color-text);
  padding: 0.75rem 1rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

.alert-ppoe-success a {
  color: var(--ppoe-gusp);
  text-decoration: underline;
}

.alert-ppoe-success .alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ========================================
   Footer
   ======================================== */

footer {
  background-color: var(--ppoe-gray);
  color: var(--color-text-light);
  padding: 2rem 0;
}

footer a {
  color: var(--color-text-light);
}

footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

/* Large screens */
@media (max-width: 1199.98px) {
  .logo-bar {
    margin-top: -55px;
  }
  .logo-bar img {
    max-height: 90px;
  }
  .featurette-heading {
    font-size: 35px;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .headline h1 {
    font-size: 105px;
  }
  .headline h2 {
    font-size: 50px;
  }
  .logo-bar {
    margin-top: -40px;
  }
  .logo-bar img {
    max-height: 80px;
  }
  .featurette-heading {
    font-size: 30px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .headline h1 {
    font-size: 2rem;
  }
  .headline h2 {
    font-size: 1.25rem;
  }
  .featurette-image {
    max-width: 250px;
    margin: 0 auto 1.5rem;
  }
  /* Stack columns on mobile - image first */
  .featurette .row {
    flex-direction: column;
  }
  .featurette .col-lg-4 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .download-group {
    max-width: 100%;
  }
  .steps-list {
    flex-direction: column;
    align-items: center;
  }
  .steps-list li {
    max-width: 100%;
    width: 100%;
    flex: 1 1 auto;
  }
  .logo-bar {
    justify-content: center;
    gap: 1rem;
    padding: 0 0 1.5rem 0;
    margin-top: -20px;
  }
  .logo-bar img {
    max-height: 70px;
  }
  .featurette-heading {
    font-size: 25px;
  }
}

/* Small mobile */
@media (max-width: 667.98px) {
  .headline h1 {
    font-size: 70px;
  }
  .headline h2 {
    font-size: 32px;
  }
}

/* Extra small mobile */
@media (max-width: 639.98px) {
  .headline {
    padding: 75px 0 25px 0;
  }
  .headline h1 {
    font-size: 60px;
  }
  .headline h2 {
    font-size: 30px;
  }
}

/* Very small mobile */
@media (max-width: 479.98px) {
  .logo-bar {
    margin-top: -10px;
  }
  .logo-bar img {
    max-height: 50px;
  }
}

/* Tiny mobile */
@media (max-width: 375px) {
  .featurette {
    padding: 2rem 0;
  }
}
