/*
Easybulli CSS
Klar gegliedert und ohne doppelte Overrides
Struktur:
1 Tokens
2 Base
3 Layout
4 Navigation
5 Components
6 Index
7 Utilities
8 Media Queries
*/


/* =========================
TOKENS
========================= */

/* Variablen für Farben, Abstände und Rundungen */
:root {
  --accent: #2563eb;
  --accent2: #16a34a;
  --bg: #f6f7fb;
  --border: rgba(13,18,28,0.10);
  --max: 1100px;
  --muted: rgba(13,18,28,0.65);
  --panel: rgba(255,255,255,0.92);
  --panel2: rgba(255,255,255,0.76);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13,18,28,0.12);
  --text: rgba(13,18,28,0.92);
}

/* =========================
BASE
========================= */

* {
  box-sizing: border-box;
}

/* Grundlayout der Seite */
body {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1100px 700px at 10% 0%, rgba(37,99,235,0.14), transparent 60%), radial-gradient(900px 600px at 90% 0%, rgba(22,163,74,0.12), transparent 55%), radial-gradient(900px 700px at 50% 100%, rgba(245,158,11,0.10), transparent 60%), var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Stilregel für html,body */
html,body {
  height: 100%;
}

/* Link Darstellung */
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37,99,235,0.35);
  outline-offset: 3px;
}

.noScroll {
  overflow: hidden;
}

/* =========================
LAYOUT
========================= */

/* Zentrierter Inhaltsbereich */
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Sprunglink für Barrierefreiheit */
.skip {
  position: absolute;
  top: 8px;
  left: -9999px;
}

/* Hinweis Box */
.notice {
  margin: 14px 0;
  padding: 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(13,18,28,0.10);
  border-radius: 16px;
}

/* Lesbarer Textbereich */
.prose {
  max-width: 78ch;
  margin: 18px auto 0;
}

/* Karten Optik für Abschnitte */
.card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Stilregel für .hero */
.hero {
  padding: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.72));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

/* Sprunglink für Barrierefreiheit */
.skip:focus {
  left: 16px;
  z-index: 20;
  padding: 10px 12px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Lesbarer Textbereich */
.prose h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
}

/* Lesbarer Textbereich */
.prose h2 {
  margin: 18px 0 10px;
  font-size: 22px;
}

/* Lesbarer Textbereich */
.prose p {
  margin: 0.65em 0;
}

/* Lesbarer Textbereich */
.prose ul {
  padding-left: 1.2em;
}

/* Lesbarer Textbereich */
.prose li {
  margin: 0.25em 0;
}

/* Lesbarer Textbereich */
.prose code {
  padding: 0.12em 0.35em;
  background: rgba(13,18,28,0.04);
  border: 1px solid rgba(13,18,28,0.08);
  border-radius: 10px;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

/* Stilregel für .heroCardOverlay */
.heroCardOverlay {
  margin-top: -55px;
}

/* Textbereich unten im Banner */
.heroOnBanner {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 3;
  max-width: 980px;
  color: #fff;
  pointer-events: auto;
}

/* Textbereich unten im Banner */
.heroOnBanner p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* Textbereich unten im Banner */
.heroOnBanner .badgeRow {
  margin-top: 14px;
}

/* Textbereich unten im Banner */
.heroOnBanner .badge {
  color: rgba(255,255,255,0.92);
  background: rgba(13,18,28,0.35);
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}

/* Textbereich unten im Banner */
.heroOnBanner .badgeLink:hover .badge {
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 14px 30px rgba(0,0,0,0.20);
}

/* Titel oben im Banner */
.heroTitleTop {
  position: absolute;
  top: 18px;
  right: 22px;
  left: 22px;
  z-index: 3;
  max-width: 980px;
  padding-right: clamp(70px, 8vw, 120px);
}

/* Titel oben im Banner */
.heroTitleTop h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 56px);
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 10px 26px rgba(0,0,0,0.38);
}

/* Logo oben rechts im Banner */
.heroLogoLink {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 4;
  display: block;
}
.heroLogo {
  height: clamp(34px, 3.6vw, 56px);
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
}

/* =========================
NAVIGATION
========================= */

/* Kopfbereich der Seite */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brandLogo {
  height: 72px;
  width: auto;
  display: block;
}
.brandText {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 28px;
  line-height: 1;
  color: #ff7a00;
  text-shadow:
  -1px -1px 0 rgba(13,18,28,0.90),
  1px -1px 0 rgba(13,18,28,0.90),
  -1px 1px 0 rgba(13,18,28,0.90),
  1px 1px 0 rgba(13,18,28,0.90),
  0 10px 22px rgba(13,18,28,0.18);
}
@media (max-width:520px) {
  .brandLogo { height:56px; }
  .brandText { font-size:22px; }
}
/* Navigation und Menüpunkte */
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Navigation und Menüpunkte */
.nav a {
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 12px;
}

/* Navigation und Menüpunkte */
.nav a:hover {
  color: var(--text);
  background: rgba(13,18,28,0.04);
  border-color: rgba(13,18,28,0.08);
  text-decoration: none;
}

/* =========================
COMPONENTS
========================= */

/* Buttons und Varianten */
.btn {
  display: inline-flex;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(13,18,28,0.14);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(13,18,28,0.10);
  text-decoration: none;
}

/* Badges als Tags */
.badge {
  padding: 6px 10px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(13,18,28,0.10);
  border-radius: 999px;
}

/* Badges als Tags */
.badgeRow {
  display: flex;
  margin-top: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

/* Badge Link Verhalten */
.badgeLink {
  display: inline-flex;
  text-decoration: none;
}

/* Aufklappbereich Materialliste */
.details {
  margin: 12px 0;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Popup Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

/* Grid für Einblicke Karten */
.productGrid {
  display: grid;
  margin-top: 14px;
  gap: 14px;
  grid-template-columns: repeat(3,1fr);
}

/* Kachelkarte für Einblicke */
.productCard {
  display: flex;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  flex-direction: column;
}

/* Klickbares Produktbild */
.productImageBtn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.productImageBtn img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Stilregel für .figure */
.figure {
  margin: 16px 0;
}

/* Klickbarer Bild Button */
.imgBtn {
  display: block;
  width: 100%;
  height: 320px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Buttons und Varianten */
.btn:hover {
  background: rgba(37,99,235,0.10);
  text-decoration: none;
}

/* Buttons und Varianten */
.btn.small {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 12px;
}

/* Buttons und Varianten */
.btn.primary {
  color: white;
  background: var(--accent);
  border-color: rgba(37,99,235,0.25);
}

/* Buttons und Varianten */
.btn.primary:hover {
  background: #1d4ed8;
}

/* Aufklappbereich Materialliste */
.details summary {
  display: flex;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

/* Aufklappbereich Materialliste */
.details summary::-webkit-details-marker {
  display: none;
}

/* Aufklappbereich Materialliste */
.details .detailsBody {
  padding: 0 14px 14px;
}

/* Stilregel für .figure img:not(.imgLimit) */
.figure img:not(.imgLimit) {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(13,18,28,0.10);
}

/* Stilregel für .figure figcaption */
.figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Kachelkarte für Einblicke */
/* Popup Modal */
.modal[aria-hidden="false"] {
  display: block;
}

/* Popup Modal */
.modalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(13,18,28,0.35);
}

/* Popup Modal */
.modalCard {
  display: flex;
  position: relative;
  width: min(980px,calc(100% - 24px));
  max-height: 94vh;
  margin: 4vh auto 0;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(13,18,28,0.20);
  flex-direction: column;
}

/* Popup Modal */
.modalHeader {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 14px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(13,18,28,0.08);
}

/* Popup Modal */
.modalTitle {
  font-weight: 900;
}

/* Popup Modal */
.modalActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Popup Modal */
.modalBody {
  padding: 14px;
  overflow: auto;
}

/* Popup Modal */
.modalContent {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* Popup Modal */
.modalMedia {
  flex: 0 0 40%;
}

/* Popup Modal */
#modalImage {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Popup Modal */
.modalDetails {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

/* Popup Modal */
.modalMedia.isHidden {
  display: none;
}

/* Stilregel für .figureRow .imgRow */
.figureRow .imgRow {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 320px;
  align-items: stretch;
}

/* Aufklappbereich Materialliste */
.details summary::after {
  margin-left: 10px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  transition: transform 160ms ease;
  transform: rotate(0deg);
  content: "▾";
}

/* Aufklappbereich Materialliste */
.details[open] summary::after {
  transform: rotate(180deg);
}

/* Klickbarer Bild Button */
.imgBtn:focus {
  border-radius: 16px;
  outline: 3px solid rgba(37,99,235,0.25);
  outline-offset: 3px;
}

/* Klickbarer Bild Button */
.details summary:hover {
  background: rgba(13,18,28,0.03);
  border-radius: 16px;
}

/* Klickbarer Bild Button */
.imgBtn .imgLimit {
  display: block;
  width: 100%;
  height: 320px !important;
  background: rgba(13,18,28,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(13,18,28,0.10);
  object-fit: contain !important;
}

/* Badge Link Verhalten */
.badgeLink .badge {
  cursor: pointer;
}

/* Badge Link Verhalten */
.badgeLink:hover .badge {
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 10px 20px rgba(13,18,28,0.10);
}

/* Stilregel für .headerInner */
.headerInner {
  display: flex;
  padding: 14px 0;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

/* Stilregel für .brand */
.brand {
  padding: 0;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

/* Stilregel für main */
main {
  padding: 28px 0 60px;
}

/* Stilregel für .grid2 */
.grid2 {
  display: grid;
  margin-top: 16px;
  gap: 16px;
  grid-template-columns: 1.2fr .8fr;
}

/* Stilregel für .kpi */
.kpi {
  display: grid;
  gap: 10px;
}

/* Stilregel für .kpiItem */
.kpiItem {
  padding: 12px;
  background: rgba(13,18,28,0.03);
  border: 1px solid rgba(13,18,28,0.08);
  border-radius: 16px;
}

/* Stilregel für .kpiTitle */
.kpiTitle {
  font-weight: 900;
}

/* Stilregel für .affBox */
.affBox {
  margin: 16px 0;
  padding: 14px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(13,18,28,0.12);
  border-radius: 18px;
}

/* Stilregel für .toc */
.toc {
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Stilregel für .toc a */
.toc a {
  color: rgba(13,18,28,0.75);
}

/* Stilregel für .toc a:hover */
.toc a:hover {
  color: rgba(13,18,28,0.92);
}

/* Stilregel für .toc ul */
.toc ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
}

/* Stilregel für .callout */
.callout {
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 16px;
}

/* Stilregel für .callout.good */
.callout.good {
  background: rgba(22,163,74,0.06);
  border-color: rgba(22,163,74,0.25);
}

/* Stilregel für .callout.warn */
.callout.warn {
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.35);
}

/* Stilregel für .tableWrap */
.tableWrap {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(13,18,28,0.10);
  border-radius: 16px;
  overflow: auto;
}

/* Stilregel für .table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Stilregel für .table th, .table td */
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(13,18,28,0.06);
  vertical-align: top;
}

/* Stilregel für .table th */
.table th {
  font-weight: 900;
  background: rgba(13,18,28,0.03);
  text-align: left;
}

/* Stilregel für .table tr:last-child td */
.table tr:last-child td {
  border-bottom: 0;
}

/* Stilregel für .table td:last-child */
.table td:last-child {
  white-space: nowrap;
}

/* Stilregel für .siteFooter */
.siteFooter {
  padding: 26px 0 18px;
  background: rgba(255,255,255,0.78);
  border-top: 1px solid var(--border);
}

/* Stilregel für .footerInner */
.footerInner {
  display: grid;
  gap: 14px;
}

/* Stilregel für .footerCols */
.footerCols {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr .9fr 1.1fr;
}

/* Stilregel für .footerTitle */
.footerTitle {
  margin-bottom: 6px;
  font-weight: 900;
}

/* Stilregel für .footerLinks */
.footerLinks {
  display: grid;
  gap: 6px;
}

/* Stilregel für .fineprint */
.fineprint {
  font-size: 14px;
  color: var(--muted);
}

/* Stilregel für .productBody */
.productBody {
  padding: 12px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Stilregel für .productTitle */
.productTitle {
  margin-bottom: 6px;
  font-weight: 900;
}

/* Stilregel für .productActions */
.productActions {
  display: flex;
  margin-top: auto;
  padding-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

/* Inspiration Galerie */
.inspirationGallery {
  display: grid;
  margin-top: 14px;
  gap: 14px;
  grid-template-columns: repeat(2,1fr);
}

.inspirationGallery img {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Stilregel für #imgModalImage */
#imgModalImage {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
  transition: transform 160ms ease;
}

/* Bildkarussell im Modal */
.imgModalCarousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

#imgModal:not(.imgModalGalleryActive) .imgModalCarousel {
  display: block;
}

/* Bildkarussell Container */
.imgModalFrame {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

#imgModal.imgModalZoomed .imgModalFrame {
  overflow: auto;
}

#imgModal.imgModalZoomed #imgModalImage {
  transform: scale(1.6);
}

#imgModal:not(.imgModalGalleryActive) .imgModalNav {
  display: none;
}

/* Bildkarussell Navigation */
.imgModalNav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.imgModalNav:hover {
  background: rgba(13,18,28,0.06);
}

/* Stilregel für .linkCard */
.linkCard {
  text-decoration: none;
}

/* Stilregel für .linkCard:hover */
.linkCard:hover {
  text-decoration: none;
}

/* Stilregel für .linkCard .productTitle */
.linkCard .productTitle {
  transition: transform 140ms ease;
}

/* Stilregel für .linkCard:hover .productTitle */
.linkCard:hover .productTitle {
  transform: translateY(-1px);
}

/* =========================
INDEX
========================= */

/* Banner Bereich auf der Startseite */
.bannerWrap {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Bannerbild auf der Startseite */
.bannerImg {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

/* Vorschau Reihe Bild links Text rechts */
.featureRow {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

/* Bild in der Vorschau Reihe */
.featureImg {
  width: 100%;
  height: 260px;
  background: rgba(13,18,28,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(13,18,28,0.10);
  object-fit: cover;
}

/* Banner Bereich auf der Startseite */
.bannerWrap::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(13,18,28,0.72) 0%, rgba(13,18,28,0.30) 35%, rgba(13,18,28,0.00) 65%);
  border-radius: calc(var(--radius) + 6px);
  content: "";
  pointer-events: none;
}

/* =========================
UTILITIES
========================= */

/* Gedämpfter Text */
.muted {
  color: var(--muted);
}

.proseWide {
  max-width: 980px;
}

.sectionSpacing {
  margin-top: 18px;
}

.mt0 {
  margin-top: 0;
}

.mt6 {
  margin-top: 6px;
}

.mt8 {
  margin-top: 8px;
}

.mt12 {
  margin-top: 12px;
}

.mt14 {
  margin-top: 14px;
}

.mt18 {
  margin-top: 18px;
}

.filterInput {
  width: min(520px, 100%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
}

.modalLink {
  margin-top: 14px;
}

.infoModalImage {
  max-width: 50%;
  height: auto;
  border-radius: 12px;
}

.isHidden {
  display: none;
}

/* =========================
MEDIA QUERIES
========================= */

@media (max-width:900px) {

  /* Stilregel für .grid2 */
  .grid2 {
    grid-template-columns: 1fr;
  }

  /* Stilregel für .footerCols */
  .footerCols {
    grid-template-columns: 1fr;
  }

  /* Vorschau Reihe Bild links Text rechts */
  .featureRow {
    grid-template-columns: 1fr;
  }

}

@media (max-width:600px) {

  /* Lesbarer Textbereich */
  .prose h1 {
    font-size: 32px;
  }

}

@media (max-width:950px) {

  /* Grid für Einblicke Karten */
  .productGrid {
    grid-template-columns: repeat(2,1fr);
  }

}

@media (max-width:620px) {

  /* Grid für Einblicke Karten */
  .productGrid {
    grid-template-columns: 1fr;
  }

}

@media (max-width:720px) {

  /* Stilregel für .figureRow .imgRow */
  .figureRow .imgRow {
    grid-template-columns: 1fr;
  }

  /* Popup Modal */
  .modalContent {
    flex-direction: column;
  }

  /* Popup Modal */
  .modalMedia {
    flex: 0 0 auto;
  }

  /* Bannerbild auf der Startseite */
  .bannerImg {
    height: 320px;
  }

  /* Stilregel für .heroCardOverlay */
  .heroCardOverlay {
    margin-top: -32px;
  }

  /* Titel oben im Banner */
  .heroTitleTop {
    top: 14px;
    right: 14px;
    left: 14px;
  }

  /* Titel oben im Banner */
  .heroTitleTop h1 {
    border-radius: 16px text-shadow:0 10px 26px rgba(0,0,0,0.18);
  }

}


/* Footer: version label (shown on index only) */
.versionTag {
  margin-left: 8px;
  opacity: 0.75;
  font-size: 12px;
}

/* Placeholder Figure: mobil sauber */
@media (max-width: 760px) {
  .figure.placeholder .figureInner {
    padding: 16px;
    text-align: center;
    color: rgba(13,18,28,0.62);
  }
}

/* Solaranlage Layout: Inhalt links, Bild rechts */
.splitCard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Solaranlage Layout: linke Spalte, Text immer linksbündig */
.splitText {
  min-width: 0;
}

/* Solaranlage Layout: rechte Spalte */
.splitMedia {
  min-width: 0;
}

/* Solaranlage Layout: Bild rechts, in der Höhe begrenzt */
.splitImg {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  display: block;
  max-width:100%;}

  @media (max-width: 760px) {
    .splitImg {
      width: 100%;
      height: auto;
      max-height: 460px;
      object-fit: cover;
      border-radius: 18px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
  }


  /* Card Variante für Split Layout, damit Bilder nicht über die Card hinaus ragen */
  .cardSplit {
    overflow: hidden;
  }


  .mediaCol .splitImg {max-height:360px}
}


.cardSplit .tocImage .splitImg {height:auto;}
}


/* Solaranlage: Bild zwischen Inhalt und Merksatz, begrenzte Breite */
.contentImage {
  margin: 14px auto;
  max-width: 860px;
}
.contentImage img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


/* Bilder in den Schritten: responsive Grid */
.figureGrid {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}
.figureGrid.cols2 {grid-template-columns:repeat(2, minmax(0, 1fr));}
.figureGrid.cols3 {grid-template-columns:repeat(3, minmax(0, 1fr));}

.figureItem {
  min-width: 0;
}

.figureItem .imgBtn {
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.figureItem .imgBtn img {
  width: 100%;
  height: auto;
  display: block;
}

.figure .imgBtn {
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.figure .imgBtn img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  margin-top: 8px;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .figureGrid.cols2 {grid-template-columns:1fr;}
  .figureGrid.cols3 {grid-template-columns:1fr;}
}


/* Material Liste: Links sichtbar machen */
.matLinks a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.matLinks a:hover {
  text-decoration-thickness: 2px;
}

/* Halbe Breite für einzelne Bilder, z.B. Reihenschaltung */
.figure.half,
.figureItem.half {
  max-width: 520px;
}


/* Solarpanel Produktbilder: gleiche Höhe, Breite darf variieren */
.figureGrid.solarPhotos .imgBtn {
  height: auto;
}
.figureGrid.solarPhotos .imgBtn img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Links in Listen sichtbar machen */
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  .figureGrid.solarPhotos .imgBtn img {height:260px;}
}



/* Equal height for specific image grids (use class .equalH on the grid) */
.figureGrid.equalH .imgBtn img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Solarpanel product photos slightly taller */
.figureGrid.solarPhotos.equalH .imgBtn img {
  height: 320px;
}

@media (max-width: 760px) {
  .figureGrid.equalH .imgBtn img {height:240px;}
  .figureGrid.solarPhotos.equalH .imgBtn img {height:260px;}
}

/* Modal Footer (für Info Modal) */
.modalFooter {
  padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: flex-end;
}


.infoInlineBtn:hover { text-decoration-thickness:2px; }


/* Card Media Wrapper (keeps a clean aspect ratio for preview images) */
.cardMedia {
  overflow: hidden;
  border-radius: 16px;
  background: #eef2f6;
}
.cardMedia.ar-3-4 { aspect-ratio:3 / 4; }
.cardMedia img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* Inline Info Button (pill style, no page jump) */
.infoInlineBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}
.infoInlineBtn::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 12px;
}
.infoInlineBtn:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(13,18,28,0.08);
}

/* Modal hidden state */
.modal[aria-hidden="true"] { display:none; }


/* Fazit: definition list layout for quick scanning */
.fazitDl {
  margin: 14px 0 0;
  padding: 0;
}
.fazitRow {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.fazitRow:first-child { border-top: 0; }
.fazitRow dt {
  font-weight: 800;
}
.fazitRow dd {
  margin: 0;
}
@media (max-width: 720px) {
  .fazitRow { grid-template-columns: 1fr; gap: 6px; }
}


/* Material links: always recognizable */
.materialsList a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.materialsList a:hover {
  text-decoration-thickness: 2px;
}


/* Amazon links in material lists */
.amazonTextLink {
  display: inline;
}
.amazonLogoLink {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 0;
}
.amazonLogoLink img {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
}



/* Materiallisten: Links klar erkennbar + Amazon Logo als Link Icon */
[data-material-list] a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-material-list] a.amazonLogoLink {
  text-decoration: none;
  color: inherit;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-material-list] a.amazonLogoLink img {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
