/* ==========================================================================
   Für ALLE Unterseiten (wird neben Global.css auf jeder Seite geladen)
   Inhalt: gemeinsame Bausteine der Unterseiten
   - News-Seiten (News/*, Support/NeueFunktionen):
     Hinweis-Kasten, Inhalts- und Link-Listen mit Knöpfen
   - Produktseiten, Kundeninfo, YouTube, Jobs, Mechanik 3000: Prospekt-/Link-Liste
   - Seitenkopf mit Icon (.page-hero): Produkte, Support, Jobs, Kontakt,
     Impressum, Datenschutz
   - Impressum und Datenschutz: Fliesstext
   ========================================================================== */

/* ==========================================================================
   News-Seiten (News/*, Support/NeueFunktionen)
   Karte mit dem Seiteninhalt
   ========================================================================== */
.info-page .section {
  padding: 1.8rem;
}

/* Seitentitel */
.info-page h1 {
  margin-top: 0;
}

/* Hinweis-Kasten mit Einleitungstext oben auf der Seite */
.info-page .text-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #dce7f3;
  border-radius: 10px;
  background: #f8fbff;
}

.info-page .text-note p {
  margin: 0;
  color: var(--dark-copy);
  line-height: 1.5;
}

.info-page .text-note p + p {
  margin-top: 0.45rem;
}

/* Liste «Weiterführende Links» (z. B. Google Maps Route) */
.info-page .link-list {
  display: grid;
  gap: 0.35rem;
}

.info-page .link-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #0f4c81;
}

/* Inhalts-Liste: eine Zeile pro Eintrag, rechts ein Knopf (z. B. PDF) */
.info-page .content-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.info-page .content-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid #0f4c81;
}

/* Letzte Zeile ohne Trennlinie */
.info-page .content-item:last-child {
  border-bottom: 0;
}

.info-page .content-item:only-child {
  border-bottom: 1px solid #0f4c81;
}

/* Knopf rechts in der Zeile («PDF», «LINK», «FILE») */
.info-page .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 84px;
  height: 32px;
  border: 1px solid #0f4c81;
  background: #0f4c81;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
  transition: background-color var(--button-hover), border-color var(--button-hover), color var(--button-hover);
}

.info-page .download-btn:hover,
.info-page .download-btn:focus-visible {
  background: #2a6fb3;
  border-color: #2a6fb3;
}

/* Platzhalter-Knopf ohne Link (z. B. auf den News-Seiten) */
.info-page .download-btn-placeholder {
  visibility: hidden;
}

/* Handy: Knöpfe und Links unter den Text */
@media (max-width: 680px) {
  .info-page .download-btn {
    width: auto;
    padding: 0 0.8rem;
  }

  .info-page .link-item {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Prospekt- und Link-Liste (Produktseiten, Kundeninfo, YouTube, Jobs, Mechanik 3000):
   PDF-Symbol bzw. Icon, Titel + Beschreibung, Download-Pfeil
   ========================================================================== */
/* Farben der Liste (hell / dunkel) */
.product-page,
.pdf-list {
  --pdf-line: #e3ebf4;
  --pdf-hover: #f2f7fc;
  --pdf-icon-bg: #fdecec;
  --pdf-icon: #c43c3c;
  --pdf-muted: #5b7088;
  --pdf-download: #2a6fb3;
}

html[data-theme="dark"] .product-page,
html[data-theme="dark"] .pdf-list {
  --pdf-line: rgba(255, 255, 255, 0.09);
  --pdf-hover: rgba(255, 255, 255, 0.05);
  --pdf-icon-bg: rgba(239, 108, 108, 0.16);
  --pdf-icon: #f3a3a3;
  --pdf-muted: #b9cbe0;
  --pdf-download: #9cc7f0;
}

/* Titel auf Produktseiten */
.product-page h1 {
  margin-bottom: 0.35rem;
}

/* Anzahl über der Liste (z. B. «9 Prospekte zum Herunterladen») */
.product-count {
  margin: 0.4rem 0 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pdf-muted);
}

/* Zwischentitel, wenn eine Seite mehrere Listen hat (z. B. Kundeninfo, Jobs) */
.pdf-group-title {
  margin: 2rem 0 0.7rem;
  font-size: 1.15rem;
}

/* Die Liste selbst (Trennlinien zwischen den Einträgen) */
.pdf-list {
  border-top: 1px solid var(--pdf-line);
}

.pdf-list li {
  border-bottom: 1px solid var(--pdf-line);
}

/* Ein Eintrag: die ganze Zeile ist der Link; Hover = nur Farbwechsel */
.pdf-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.6rem;
  border-radius: 10px;
  color: inherit;
  transition: background-color var(--button-hover);
}

.pdf-item:hover,
.pdf-item:focus-visible {
  background: var(--pdf-hover);
  outline: none;
}

/* Icon links (PDF-Symbol) und Pfeil rechts */
.pdf-icon,
.pdf-download {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

/* PDF-Symbol links (mit Klasse tone-… andere Farbe, z. B. für Links) */
.pdf-icon {
  --icon-size: 40px;
  --icon-bg: var(--pdf-icon-bg);
  --icon-fg: var(--pdf-icon);
}

/* Download-Pfeil rechts */
.pdf-download {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--pdf-download);
  transition: background-color var(--button-hover), color var(--button-hover);
}

.pdf-item:hover .pdf-download,
.pdf-item:focus-visible .pdf-download {
  background: #2a6fb3;
  color: #ffffff;
}

.pdf-icon svg,
.pdf-download svg {
  width: 21px;
  height: 21px;
}

/* Text in der Mitte: Titel und Beschreibung */
.pdf-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

/* Titel des Eintrags (z. B. Name des Prospekts) */
.pdf-title {
  font-weight: 700;
  color: var(--dark-heading, var(--color-heading));
}

/* Kurzbeschreibung unter dem Titel */
.pdf-desc {
  font-size: 0.93rem;
  line-height: 1.4;
  color: var(--pdf-muted);
}
/* ==========================================================================
   Seitenkopf (einheitlich für Produkte, Support, Jobs, Kontakt, Impressum, Datenschutz):
   Icon-Kachel links, daneben Titel und Einleitung
   ========================================================================== */
.page-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius-container);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

/* Icon-Kachel links im Kopf */
.page-hero-icon {
  --icon-size: 72px;
  border-radius: var(--radius-container);
}

/* Titel und Einleitung rechts daneben */
.page-hero-copy {
  min-width: 0;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

/* Einleitungstext unter dem Titel */
.page-lead {
  margin: 0;
  max-width: 640px;
  font-size: 1.08rem;
}

/* Liste direkt unter dem Kopf: Anzahl ohne Abstand oben */
.page-hero + .card .product-count:first-child {
  margin-top: 0;
}

/* Handy: Icon über dem Titel */
@media (max-width: 820px) {
  .page-hero {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.3rem;
  }

  .page-hero-icon {
    --icon-size: 58px;
  }
}

/* ==========================================================================
   Impressum und Datenschutz: gut lesbarer Fliesstext
   ========================================================================== */
.legal {
  max-width: none;
}

/* Zwischentitel (z. B. «Betreiber», «Kontakt») */
.legal h2 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.15rem;
}

.legal h2:first-child {
  margin-top: 0;
}

/* Absätze */
.legal p {
  margin: 0 0 0.8rem;
  max-width: 760px;
  line-height: 1.65;
}

/* Links im Text */
.legal a {
  color: var(--pdf-download);
  text-decoration: underline;
}

/* Adress- und Kontaktblock */
.legal-address {
  line-height: 1.7;
}

/* Stand-Datum am Ende */
.legal-date {
  margin-top: 1.8rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Hilfen für einzelne Seiten
   Platzhalter, die vor dem Livegang ergänzt werden müssen (gut sichtbar gelb markiert)
   ========================================================================== */
.todo {
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: #fff1b8;
  color: #6b4e00;
  font-weight: 600;
}

/* Kleine Plakette «Neu» in Titeln (z. B. neues YouTube-Video, Vorteil auf «Mechanik 3000») */
.badge-new {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  vertical-align: 0.12em;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: #2a6fb3;
}
