﻿/* ==========================================================
   Info – Themen-Hub, Kapitel, Dokumentkarten, Akkordeons
   Baut auf css/styles.css auf
   ========================================================== */

.info-page {
  --hdr: 110px; /* Header-Höhe, wird per JS aktualisiert */
}

.info-page .chapter {
  scroll-margin-top: calc(var(--hdr) + var(--sub-h, 76px) + 12px);
}

/* ---------- Kopf + Themen-Hub ---------- */
.info-hero {
  padding: 40px 0 10px;
}

.info-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.3rem, 3.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Kapitel ---------- */
.chapters {
  padding: 24px 0 80px;
}

.chapter {
  margin-top: 54px;
}

.chapters .chapter:first-child {
  margin-top: 12px;
}

.chapter-head {
  position: relative;
  height: clamp(150px, 17vw, 210px);
  border-radius: 30px;
  overflow: hidden;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
}

.chapter-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 134%; /* eingebrannte Beschriftung unten abschneiden */
  object-fit: cover;
  object-position: center top;
}

.chapter-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(1, 45, 82, 0.9) 0%, rgba(1, 61, 110, 0.62) 45%, rgba(1, 61, 110, 0.1) 100%);
}

.chapter-title {
  position: absolute;
  z-index: 1;
  left: clamp(22px, 4vw, 48px);
  right: 24px;
  bottom: clamp(18px, 3vw, 32px);
  color: #fff;
}

.chapter-no {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.chapter-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.chapter-title p {
  margin: 8px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.4vw, 1.2rem);
  font-weight: 500;
}

.chapter-body {
  padding: 28px 0 0;
}

.note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.note a,
.agb-intro a {
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 92, 161, 0.3);
}

/* ---------- Filter-Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  background: var(--brand-soft);
}

.chip.is-on {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 92, 161, 0.25);
}

.chip:focus-visible {
  outline: 3px solid rgba(0, 92, 161, 0.45);
  outline-offset: 2px;
}

/* ---------- Dokumentkarten ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 14px 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: inherit;
  box-shadow: 0 14px 26px rgba(9, 41, 69, 0.05);
  animation: tile-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.doc-card[hidden] {
  display: none;
}

.doc-card:hover,
.doc-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(0, 92, 161, 0.3);
  box-shadow: 0 26px 46px rgba(9, 41, 69, 0.13);
}

.doc-card:focus-visible {
  outline: 3px solid rgba(0, 92, 161, 0.5);
  outline-offset: 2px;
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-soft);
  transition: background-color 0.3s ease;
}

.doc-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.doc-card:hover .doc-icon {
  background: var(--brand);
}

.doc-card:hover .doc-icon svg {
  stroke: #fff;
}

.doc-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.doc-label {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-title {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.doc-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.doc-dl {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.doc-dl svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.doc-card:hover .doc-dl {
  background: var(--brand);
  transform: translateY(3px);
}

.doc-card:hover .doc-dl svg {
  stroke: #fff;
}

.agb-intro p,
.lead-text {
  margin: 0 0 12px;
  max-width: 900px;
  color: var(--muted);
  line-height: 1.8;
}

.agb-intro {
  margin-bottom: 22px;
}

/* ---------- Impressum: Firmenkarten ---------- */
.company {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.company-card {
  padding: 26px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(160deg, #fff, var(--surface-soft));
  box-shadow: 0 14px 28px rgba(9, 41, 69, 0.05);
}

.company-card h3 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.company-card p {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.7;
}

.company-card dl {
  margin: 0;
}

.company-card dl > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.company-card dt {
  color: var(--muted);
}

.company-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.company-card a {
  color: var(--brand);
}

/* ---------- Akkordeon ---------- */
.acc-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.link-btn {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 92, 161, 0.3);
}

.link-btn:hover {
  border-bottom-color: var(--brand);
}

.acc-list {
  display: grid;
  gap: 10px;
}

.acc {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(9, 41, 69, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.acc[open] {
  border-color: rgba(0, 92, 161, 0.28);
  box-shadow: 0 18px 34px rgba(9, 41, 69, 0.09);
}

.acc summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary:focus-visible {
  outline: 3px solid rgba(0, 92, 161, 0.45);
  outline-offset: 2px;
}

.acc-no {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.acc-title {
  flex: 1;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: background-color 0.3s ease, transform 0.35s ease;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--brand-dark);
  transition: transform 0.35s ease, background-color 0.3s ease;
}

.acc-icon::after {
  transform: rotate(90deg);
}

.acc[open] .acc-icon {
  background: var(--brand);
  transform: rotate(180deg);
}

.acc[open] .acc-icon::before,
.acc[open] .acc-icon::after {
  background: #fff;
}

.acc[open] .acc-icon::after {
  transform: rotate(0);
}

.acc-body {
  padding: 0 22px 22px 60px;
  animation: acc-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes acc-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.acc-body p {
  margin: 0 0 12px;
  max-width: 920px;
  color: var(--muted);
  line-height: 1.8;
}

.acc-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Nach-oben-Knopf ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(0, 92, 161, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--brand-dark);
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .doc-grid,
  .doc-grid--two,
  .company {
    grid-template-columns: 1fr;
  }

  .acc-body {
    padding-left: 22px;
  }

  .acc summary {
    padding: 16px 16px;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .info-page {
    --hdr: 0px;
  }

  .company-card dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-card,
  .acc-body {
    animation: none;
  }
}



