/*
Theme Name: Schiebeglas
Theme URI: https://schiebeglas-elemente.de/sg/
Author: Adrian / wir-machen-zaun.de
Description: Custom Theme für schiebeglas-elemente.de
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: proprietary
Text Domain: terrassendach
*/

/* ==================== DESIGN SYSTEM ==================== */
:root {
  --color-primary: #1f7ae0;
  --color-primary-dark: #1668c8;
  --color-primary-light: #dbeafe;
  --color-dark: #0b1220;
  --color-dark-2: #0f1b2f;
  --color-text: #0f172a;
  --color-muted: #5b6b86;
  --color-border: #e2e8f4;
  --color-border-light: #e5eaf2;
  --color-bg: #f6f8fc;
  --color-bg-alt: #eef4ff;
  --color-white: #ffffff;
  --color-card-shadow: rgba(14, 35, 70, 0.10);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-padding: clamp(3rem, 6vw, 4.5rem);
  --container-width: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 34px var(--color-card-shadow);
  --shadow-dropdown: 0 12px 32px rgba(15, 35, 70, 0.14);
  --transition: 0.2s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* ==================== HEADER ==================== */
.td-head { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--color-border-light); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.td-head-inner { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.td-brand { flex-shrink: 0; display: flex; align-items: center; }
.td-brand img { height: 38px; width: auto; display: block; }
.td-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.td-nav > a, .td-has-dd > a { color: #2d3748; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-xs); transition: background var(--transition), color var(--transition); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.td-nav > a:hover, .td-has-dd > a:hover { background: #f0f4ff; color: var(--color-primary); }
.td-has-dd > a::after { content: '⌄'; font-size: 12px; opacity: 0.5; margin-top: -1px; }
.td-has-dd { position: relative; }
.td-dd { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-dropdown); padding: 14px 6px 6px; z-index: 200; }
.td-dd::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.td-has-dd:hover .td-dd, .td-has-dd:focus-within .td-dd { display: block; }
.td-dd a { display: block; padding: 9px 12px; font-size: 14px; font-weight: 500; color: #2d3748; border-radius: var(--radius-xs); transition: background 0.12s; }
.td-dd a:hover { background: #f0f4ff; color: var(--color-primary); }
.td-head-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.td-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-xs); color: #2d3748; transition: background var(--transition), color var(--transition); }
.td-cart:hover { background: #f0f4ff; color: var(--color-primary); }
.td-cart-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; background: var(--color-primary); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.td-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-xs); cursor: pointer; padding: 8px; }
.td-burger span { display: block; width: 100%; height: 2px; background: #2d3748; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.td-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.td-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.td-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== BUTTONS ==================== */
.btn { display: inline-block; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; transition: background var(--transition), transform var(--transition); border: 0; cursor: pointer; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn.pri { background: var(--color-primary); color: var(--color-white); }
.btn.pri:hover { background: var(--color-primary-dark); }
.btn.ghost { background: var(--color-white); color: var(--color-dark); }
.btn.ghost:hover { background: #f0f4ff; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cta-center { justify-content: center; }

/* ==================== HERO ==================== */
.hero { position: relative; color: #fff; padding: 100px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--color-dark-2); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(15, 27, 47, 0.65), rgba(15, 27, 47, 0.65)); z-index: 1; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(32px, 4.5vw, 58px); line-height: 1.06; margin: 0 0 16px; font-weight: 900; }
.hero .sub { opacity: 0.92; max-width: 760px; font-size: 18px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 20px; backdrop-filter: blur(4px); }
.badge-stars { color: #f59e0b; letter-spacing: 2px; white-space: nowrap; flex-shrink: 0; display: inline-flex; flex-wrap: nowrap; align-items: center; line-height: 1; } .badge-stars img, .badge-stars img.wp-smiley { width: 1em !important; height: 1em !important; margin: 0 !important; flex-shrink: 0; vertical-align: middle; }
.hero-kpis { display: flex; margin-top: 36px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(6px); max-width: 640px; }
.hero-kpi { flex: 1; padding: 14px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); }
.hero-kpi:last-child { border-right: none; }
.hero-kpi-val { font-size: 24px; font-weight: 900; color: #fff; line-height: 1; }
.hero-kpi-label { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.hero--simple { padding: 54px 0 44px; background-size: cover; background-position: center; position: relative; color: #fff; }
.hero--simple::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(9,20,40,0.82), rgba(19,52,95,0.66)); }
.hero--simple .wrap { position: relative; z-index: 1; }
.hero--simple h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; margin: 0 0 10px; }

/* ==================== TRUST BAR ==================== */
.trust-bar { background: #fff; border-bottom: 1px solid var(--color-border); padding: 14px 0; }
.trust-bar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-bar-item { display: flex; align-items: center; gap: 8px; padding: 8px 20px; font-size: 14px; font-weight: 600; color: #1f2a44; white-space: nowrap; }
.trust-bar-icon { font-size: 18px; }
.trust-bar-sep { width: 1px; height: 24px; background: var(--color-border); flex-shrink: 0; }

/* ==================== SECTIONS ==================== */
.sec { padding: var(--section-padding) 0; }
.sec h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 36px); }
.muted { color: var(--color-muted); }
.sec-light { background: var(--color-bg); }
.sec-white { background: #fff; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { margin: 8px 0 12px; }
.sec-sub { color: var(--color-muted); max-width: 600px; margin: 0 auto; font-size: 16px; }
.sec-head-light h2 { color: #fff; }
.sec-head-light .sec-sub { color: rgba(255,255,255,0.75); }
.sec-label { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); background: var(--color-primary-light); border-radius: 999px; padding: 4px 12px; margin-bottom: 8px; }
.sec-label-light { color: #93c5fd; background: rgba(147,197,253,0.15); }

/* ==================== PRODUKT-KARTEN ==================== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.product-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow); transition: transform 0.22s ease, box-shadow 0.22s ease; color: inherit; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img { position: relative; overflow: hidden; height: 200px; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%); }
.product-card-body { padding: 18px 20px 20px; }
.product-card-body h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.25; }
.product-card-body p { color: var(--color-muted); font-size: 14px; margin: 0 0 10px; }
.product-feats { list-style: none; margin: 0 0 14px; padding: 0; }
.product-feats li { font-size: 13px; color: #44556f; padding: 3px 0 3px 18px; position: relative; }
.product-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.product-link { font-size: 14px; font-weight: 700; color: var(--color-primary); }

/* ==================== TESTIMONIALS ==================== */
.testimonials-sec { background: var(--color-dark); padding: var(--section-padding) 0; }
.testimonials-sec h2 { color: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.testimonial-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.t-stars { color: #f59e0b; font-size: 17px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p { color: rgba(255,255,255,0.85); font-style: italic; font-size: 15px; line-height: 1.6; flex: 1; margin: 0 0 16px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-name { font-weight: 700; color: #fff; font-size: 14px; }
.t-loc { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 2px; }

/* ==================== WARUM WIR ==================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 20px; transition: box-shadow 0.2s; }
.why-card:hover { box-shadow: var(--shadow-lg); }
.why-icon { font-size: 28px; margin-bottom: 12px; }
.why-card h3 { margin: 0 0 8px; font-size: 17px; }
.why-card p { color: var(--color-muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ==================== ANSPRECHPARTNERIN ==================== */
.contact-section { background: var(--color-bg-alt); padding: var(--section-padding) 0; }
.contact-inner { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: var(--radius); display: block; }
.contact-text h2 { margin: 8px 0 12px; }
.contact-text > p { color: var(--color-muted); margin: 0 0 20px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-detail-item { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 10px 14px; background: var(--color-bg); border-radius: var(--radius-sm); border: 1px solid var(--color-border); transition: border-color 0.15s, background 0.15s; }
.contact-detail-item:hover { background: var(--color-primary-light); border-color: #93c5fd; }
.contact-detail-icon { font-size: 20px; flex-shrink: 0; }
.contact-detail-label { font-size: 12px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.contact-detail-val { font-weight: 700; font-size: 15px; color: var(--color-text); margin-top: 1px; }

/* ==================== PROZESS ==================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 28px; }
.process-step { padding: 0 20px 0 0; position: relative; }
.process-num { font-size: 42px; font-weight: 900; color: var(--color-primary-light); line-height: 1; margin-bottom: 8px; }
.process-line { position: absolute; top: 22px; right: 0; width: 60%; height: 2px; background: var(--color-border); }
.process-body { padding-top: 8px; }
.process-body h3 { margin: 0 0 6px; font-size: 17px; }
.process-body p { color: var(--color-muted); font-size: 14px; margin: 0 0 10px; line-height: 1.6; }
.step-meta { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #eef4ff; color: #27406d; font-size: 12px; font-weight: 700; }

/* ==================== REFERENZEN ==================== */
.ref-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.ref-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.ref-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.35s ease; }
.ref-item:hover img { transform: scale(1.04); }
.ref-hover { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.55)); opacity: 0; transition: opacity 0.25s; }
.ref-item:hover .ref-hover { opacity: 1; }
.ref-tag { font-size: 13px; font-weight: 700; color: #fff; }

/* ==================== KOSTEN ==================== */
.cost-grid-new { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.cost-factors { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.cost-factors h3 { margin: 0 0 18px; font-size: 19px; }
.cost-factor-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cost-factor { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; }
.cost-factor-icon { font-size: 22px; flex-shrink: 0; }
.cost-factor span { color: var(--color-muted); display: block; margin-top: 2px; }
.cost-note-box { background: #f0f7ff; border: 1px solid #c7deff; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; color: #1e3a6e; }
.cost-cta-box { position: sticky; top: 72px; }
.cost-cta-inner { background: var(--color-dark); border-radius: var(--radius); padding: 28px 24px; color: #fff; text-align: center; }
.cost-cta-icon { font-size: 36px; margin-bottom: 12px; }
.cost-cta-inner h3 { color: #fff; margin: 0 0 10px; font-size: 20px; }
.cost-cta-inner p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0 0 18px; }
.cost-cta-note { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ==================== FAQ ==================== */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
.faq-item { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color 0.15s; }
.faq-item[open] { border-color: var(--color-primary); background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; padding-right: 24px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 20px; color: var(--color-primary); line-height: 1; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--color-muted); font-size: 14px; margin: 10px 0 0; line-height: 1.65; }

/* ==================== REGION ==================== */
.region-sec { background: var(--color-dark-2); padding: 48px 0; }
.region-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.region-inner h2 { color: #fff; margin: 8px 0 10px; }
.region-inner p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0; }
.region-cta { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.region-cta .btn { white-space: nowrap; min-width: 240px; text-align: center; }

/* ==================== CTA BAND ==================== */
.band { background: var(--color-dark); color: #fff; padding: 38px 0; }
.band p { opacity: 0.9; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--color-dark);
  color: #c8d6ea;
  margin-top: 0;
}

/* Hauptbereich: 4 Spalten */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 48px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li a {
  font-size: 14px;
  color: #c8d6ea;
  transition: color 0.15s;
  line-height: 1.4;
}
.footer-col ul li a:hover { color: #fff; }

/* Spalte 1: Marke */
.footer-col-brand .footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-tagline {
  font-size: 14px;
  color: #a0b0c8;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 280px;
}
.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-badges span {
  font-size: 13px;
  color: #7eb8f7;
  font-weight: 600;
}

/* Kontaktliste */
.footer-contact-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #c8d6ea;
  line-height: 1.4;
}
.footer-contact-list li a { color: #c8d6ea; transition: color 0.15s; }
.footer-contact-list li a:hover { color: #fff; }
.footer-contact-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.footer-cta-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
  width: 100%;
  text-align: center;
}
.footer-cta-btn:hover { background: var(--color-primary-dark); color: #fff; }

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7f99;
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links a { color: #6b7f99; transition: color 0.15s; }
.footer-bottom-links a:hover { color: #fff; }

/* ==================== LEGACY ==================== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 22px; }
.kpi { background: rgba(255,255,255,0.11); padding: 12px; border-radius: var(--radius-sm); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .in { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card ul { margin: 10px 0 0 18px; padding: 0; }
.card li { margin: 4px 0; color: #44546f; }
.card-cta { display: inline-block; margin-top: auto; padding: 9px 13px; border: 1px solid #cfd8ea; border-radius: var(--radius-xs); background: #f7faff; color: #123; font-weight: 700; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; }
.num { width: 32px; height: 32px; border-radius: 999px; background: var(--color-primary-light); color: #1e40af; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.trust-wrap { background: var(--color-white); border: 1px solid #dfe7f5; border-radius: var(--radius); padding: 18px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.trust-item { background: #f8fbff; border: 1px solid #e4ecf8; border-radius: var(--radius-sm); padding: 14px; }
.trust-item h3 { margin: 0 0 8px; font-size: 17px; }
.trust-list { margin: 0; padding-left: 18px; color: #43536f; }
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ref-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.ref-card img { width: 100%; height: 190px; object-fit: cover; }
.ref-cap { padding: 10px 12px; font-size: 14px; color: #40506a; }
.cost-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.cost-box { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; }
.cost-list { margin: 0; padding-left: 18px; }
.cost-list li { margin: 6px 0; color: #43536f; }
.cost-note { background: #f5f9ff; border: 1px solid #d9e6ff; border-radius: var(--radius-sm); padding: 10px 12px; color: #29446e; font-size: 14px; }
.faq details { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.region { background: #eef4ff; border: 1px solid #d6e3ff; border-radius: var(--radius); padding: 18px; }
.form-card { background: var(--color-white); border: 1px solid #d9e5f7; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card label { display: block; font-weight: 800; margin-bottom: 8px; font-size: 14px; color: #17253b; }
.form-card input, .form-card select, .form-card textarea { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d6dde8; border-radius: 12px; font: inherit; background: #f2f4f7; transition: border-color var(--transition), box-shadow var(--transition); }
.form-card textarea { height: auto; padding: 12px 14px; min-height: 120px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: #9db4d8; box-shadow: 0 0 0 3px rgba(76,116,176,0.12); }
.legal-wrap { padding: 40px 0; }
.legal-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; max-width: 860px; margin: 0 auto; }
.legal-card h1 { margin-top: 0; }
.legal-card h2 { margin-top: 24px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .td-head-inner { padding: 0 16px; gap: 12px; }
  .td-burger { display: flex; }
  .td-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); padding: 12px 16px 20px; flex-direction: column; align-items: stretch; gap: 2px; z-index: 200; box-shadow: 0 8px 24px rgba(15,35,70,0.1); max-height: calc(100vh - 64px); overflow-y: auto; }
  .td-nav.open { display: flex; }
  .td-nav > a, .td-has-dd > a { width: 100%; font-size: 15px; padding: 12px 14px; border-radius: var(--radius-xs); }
  .td-has-dd { width: 100%; position: relative; }
  .td-has-dd > a { justify-content: space-between; background: transparent; }
  .td-has-dd > a::after { content: '⌄'; display: inline-flex; font-size: 16px; opacity: 0.6; margin: 0; transition: transform 0.25s ease; }
  .td-has-dd.open > a::after { transform: rotate(180deg); }
  .td-has-dd.open > a { background: #f0f4ff; color: var(--color-primary); }

  /* Mobile submenu: fließend ausklappen, kein Popover */
  .td-dd {
    display: none !important;
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 12px;
    margin: 2px 0 6px;
  }
  .td-dd::before { display: none; }
  .td-has-dd.open .td-dd {
    display: block !important;
  }
  /* hover-based Dropdown auf Mobile deaktivieren */
  .td-has-dd:hover .td-dd,
  .td-has-dd:focus-within .td-dd {
    display: none !important;
  }
  .td-has-dd.open:hover .td-dd,
  .td-has-dd.open:focus-within .td-dd {
    display: block !important;
  }
  .td-dd a { padding: 10px 14px; font-size: 14px; }

  .cost-grid-new { grid-template-columns: 1fr; }
  .cost-cta-box { position: static; }
  .contact-inner { grid-template-columns: 1fr; padding: 24px; }
  .contact-photo { max-height: 260px; aspect-ratio: 16/7; object-position: center 20%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .process-line { display: none; }
  .process-step { padding: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
  .faq-grid { grid-template-columns: 1fr; }
  .region-inner { flex-direction: column; text-align: center; }
  .region-cta { width: 100%; }
  .region-cta .btn { min-width: 0; width: 100%; }
  .cost-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .legal-card { padding: 22px 18px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero .sub { font-size: 16px; }
  .hero-kpis { flex-wrap: wrap; }
  .hero-kpi { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .hero-kpi:nth-last-child(-n+2) { border-bottom: none; }
  .hero--simple { padding: 42px 0 34px; }
  .trust-bar { padding: 10px 0; }
  .trust-bar .wrap { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; }
  .trust-bar .wrap::-webkit-scrollbar { display: none; }
  .trust-bar-sep { display: none; }
  .trust-bar-item { padding: 4px 12px 4px 0; font-size: 13px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .ref-masonry { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ref-item img { height: 160px; }
  .trust-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; }
  .cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta .btn { width: 100%; }
  .sec { padding: 40px 0; }
  .sec-head { margin-bottom: 24px; }
  .band { padding: 28px 0; }
  .legal-card { padding: 18px 14px; }
}
@media (max-width: 420px) {
  .td-head-inner { padding: 0 12px; gap: 8px; }
  .td-brand img { height: 32px; }
  .td-head-right { gap: 4px; }
  .wrap { padding: 0 14px; }
  .hero-kpi-val { font-size: 20px; }
  .hero-kpi-label { font-size: 10px; }
  .btn { padding: 11px 14px; font-size: 14px; }
}

/* Account Icon (Header) */
.td-account-icon { display:flex; align-items:center; justify-content:center; color:var(--color-text); transition:color .15s; width: 40px; height: 40px; border-radius: var(--radius-xs); }
.td-account-icon:hover { color:var(--color-primary); background: #f0f4ff; }


/* ==========================================================
   FULLWIDTH PAGES v1.0 – Mobile Additions
   Added 17.04.2026 as part of mobile audit
   Targets inline grid/font styles from WP block editor
   ========================================================== */

/* ── Tablet Breakpoint (≤900px) ───────────────────────── */
@media (max-width: 900px) {
  .page-template-template-fullwidth [style*="grid-template-columns:repeat(4"],
  .page-template-template-fullwidth [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-template-template-fullwidth [style*="grid-template-columns:repeat(3"],
  .page-template-template-fullwidth [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-template-template-fullwidth [style*="padding:48px"] {
    padding: 32px 0 !important;
  }
  .page-template-template-fullwidth [style*="gap:48px"] {
    gap: 24px !important;
  }
}

/* ── Mobile Breakpoint (≤700px) ───────────────────────── */
@media (max-width: 700px) {
  .page-template-template-fullwidth [style*="grid-template-columns:1fr 1fr"],
  .page-template-template-fullwidth [style*="grid-template-columns: 1fr 1fr"],
  .page-template-template-fullwidth [style*="grid-template-columns:repeat(2"],
  .page-template-template-fullwidth [style*="grid-template-columns: repeat(2"],
  .page-template-template-fullwidth [style*="grid-template-columns:repeat(3"],
  .page-template-template-fullwidth [style*="grid-template-columns: repeat(3"],
  .page-template-template-fullwidth [style*="grid-template-columns:repeat(4"],
  .page-template-template-fullwidth [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Fixed 36px fonts → shrink on mobile */
  .page-template-template-fullwidth [style*="font-size:36px"],
  .page-template-template-fullwidth [style*="font-size: 36px"] {
    font-size: 26px !important;
  }
  .page-template-template-fullwidth [style*="padding:48px"] {
    padding: 28px 0 !important;
  }
  .page-template-template-fullwidth [style*="gap:48px"],
  .page-template-template-fullwidth [style*="gap: 48px"] {
    gap: 20px !important;
  }
  .page-template-template-fullwidth [style*="gap:24px"],
  .page-template-template-fullwidth [style*="gap: 24px"] {
    gap: 16px !important;
  }
}

/* ── Small Mobile (≤420px) ────────────────────────────── */
@media (max-width: 420px) {
  .page-template-template-fullwidth [style*="font-size:36px"],
  .page-template-template-fullwidth [style*="font-size: 36px"] {
    font-size: 24px !important;
  }
  .page-template-template-fullwidth [style*="padding:48px"] {
    padding: 24px 0 !important;
  }
  /* FAQ grid collapse */
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .faq-item {
    padding: 14px 16px !important;
  }
  .faq-item summary {
    font-size: 15px !important;
  }
}


/* ==========================================================
   POPUP + OVERFLOW FIX v1.0
   Added 17.04.2026 – Fix: Wiz-Popup erschien rechts außerhalb
   des Screens, weil Inline-Grids auf der Überdachung-Seite
   horizontalen Scroll verursacht haben.
   ========================================================== */

/* ── Global: verhindere horizontalen Page-Scroll ─────── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Fix 1: Inline-Grids auch auf Überdachung + Schiebewände + Produkte kollabieren ── */
@media (max-width: 900px) {
  .page-template-template-ueberdachung [style*="grid-template-columns:repeat(4"],
  .page-template-template-ueberdachung [style*="grid-template-columns: repeat(4"],
  .page-template-template-ueberdachung [style*="grid-template-columns:repeat(3"],
  .page-template-template-ueberdachung [style*="grid-template-columns: repeat(3"],
  .page-template-template-schiebewaende [style*="grid-template-columns:repeat(4"],
  .page-template-template-schiebewaende [style*="grid-template-columns: repeat(4"],
  .page-template-template-schiebewaende [style*="grid-template-columns:repeat(3"],
  .page-template-template-schiebewaende [style*="grid-template-columns: repeat(3"],
  .page-template-template-produkte [style*="grid-template-columns:repeat(4"],
  .page-template-template-produkte [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-template-template-ueberdachung [style*="padding:48px"],
  .page-template-template-schiebewaende [style*="padding:48px"] {
    padding: 32px 0 !important;
  }
  .page-template-template-ueberdachung [style*="gap:48px"],
  .page-template-template-schiebewaende [style*="gap:48px"] {
    gap: 24px !important;
  }
}

@media (max-width: 700px) {
  .page-template-template-ueberdachung [style*="grid-template-columns:1fr 1fr"],
  .page-template-template-ueberdachung [style*="grid-template-columns: 1fr 1fr"],
  .page-template-template-ueberdachung [style*="grid-template-columns:repeat(2"],
  .page-template-template-ueberdachung [style*="grid-template-columns: repeat(2"],
  .page-template-template-ueberdachung [style*="grid-template-columns:repeat(3"],
  .page-template-template-ueberdachung [style*="grid-template-columns: repeat(3"],
  .page-template-template-ueberdachung [style*="grid-template-columns:repeat(4"],
  .page-template-template-ueberdachung [style*="grid-template-columns: repeat(4"],
  .page-template-template-schiebewaende [style*="grid-template-columns:1fr 1fr"],
  .page-template-template-schiebewaende [style*="grid-template-columns: 1fr 1fr"],
  .page-template-template-schiebewaende [style*="grid-template-columns:repeat(2"],
  .page-template-template-schiebewaende [style*="grid-template-columns: repeat(2"],
  .page-template-template-schiebewaende [style*="grid-template-columns:repeat(3"],
  .page-template-template-schiebewaende [style*="grid-template-columns: repeat(3"],
  .page-template-template-schiebewaende [style*="grid-template-columns:repeat(4"],
  .page-template-template-schiebewaende [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-template-template-ueberdachung [style*="padding:48px"],
  .page-template-template-schiebewaende [style*="padding:48px"] {
    padding: 28px 0 !important;
  }
  /* Inline padding 28px 24px (Info-Karten) → schmaler */
  .page-template-template-ueberdachung [style*="padding:28px 24px"],
  .page-template-template-schiebewaende [style*="padding:28px 24px"] {
    padding: 20px 16px !important;
  }
}

/* ── Fix 2: Wiz-Modal Safety — kein horizontaler Überlauf innen ── */
.wiz-overlay {
  left: 0 !important;
  right: 0 !important;
}
.wiz-modal {
  overflow-x: hidden;
  margin-left: auto;
  margin-right: auto;
}

/* ── Fix 3: Wiz-Slider-Ticks wrappen statt überlaufen ── */
@media (max-width: 420px) {
  .wiz-slider-ticks {
    gap: 0;
    font-size: 8px !important;
  }
  .wiz-slider-ticks span {
    flex-shrink: 1;
    min-width: 0;
    text-align: center;
  }
  /* Bei 10-Ticks Slidern: nur jeden 3. zeigen */
  .wiz-slider-group .wiz-slider-ticks span:nth-child(n):not(:first-child):not(:last-child):not(:nth-child(5)) {
    visibility: hidden;
  }
}


/* ==========================================================
   v1.4 Global Mobile Fix (20.04.2026):
   Lange Compound-Woerter (z.B. "Terrassenueberdachungen") liefen
   in Page-Headings ueber den Viewport-Rand. Erlaubt sauberen
   Wortumbruch auf Mobile.
   ========================================================== */
@media (max-width: 700px) {
  h1, h2, h3,
  .td-page-hero h1, .td-page-hero h2,
  .td-hero h1, .td-hero h2 {
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: none;
    hyphens: none;
  }
}


/* =================================================================
   === MOBILE v1.5 — Galaxy S20 Ultra Polish (412×915)
   ================================================================= */

/* Lesbarkeit: keine Schrift unter 12px auf Mobile */
@media (max-width: 700px) {
  .hero-kpi-label { font-size: 12px !important; line-height: 1.25 !important; }
  .konfig-card-farbe,
  .price-hint { font-size: 12px !important; }
  .td-wizard-progress-lbl { font-size: 12px !important; }
}

/* Touch-Targets: Konfigurator Reset-Button + Wizard-Close */
@media (max-width: 700px) {
  .konfig-reset {
    min-height: 36px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .wiz-close {
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* =================================================================
   === TABLET v1.6 — Header Burger-Menu ab 1080px statt 900px
   iPad Pro Portrait (1024) würgte sonst Account/Cart-Icon aus dem Viewport,
   weil td-nav + td-brand + td-head-right > 1024px breit waren.
   ================================================================= */
@media (max-width: 1080px) and (min-width: 901px) {
  .td-head-inner { padding: 0 16px; gap: 12px; }
  .td-burger { display: flex !important; }
  .td-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(15,35,70,0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .td-nav.open { display: flex; }
  .td-nav > a, .td-has-dd > a {
    width: 100%;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: var(--radius-xs);
  }
  .td-has-dd { width: 100%; position: relative; }
  .td-has-dd > a { justify-content: space-between; background: transparent; }
  .td-has-dd > a::after {
    content: '\2304';
    display: inline-flex;
    font-size: 16px;
    opacity: 0.6;
    margin: 0;
    transition: transform 0.25s ease;
  }
  .td-has-dd.open > a::after { transform: rotate(180deg); }
  .td-has-dd.open > a { background: #f0f4ff; color: var(--color-primary); }
  .td-dd {
    display: none !important;
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 12px;
    margin: 2px 0 6px;
  }
  .td-dd::before { display: none; }
  .td-has-dd.open .td-dd { display: block !important; }
  .td-has-dd:hover .td-dd,
  .td-has-dd:focus-within .td-dd { display: none !important; }
  .td-has-dd.open:hover .td-dd,
  .td-has-dd.open:focus-within .td-dd { display: block !important; }
  .td-dd a { padding: 10px 14px; font-size: 14px; }
}



/* =================================================================
   === TABLET v1.7 — iPad Pro 1024x1366 Konfigurator-Feinschliff
   Kleine Fonts + Touch-Targets aus mobile v1.5 auf Tablet-Range
   (701-1080px) ausdehnen. Wird u.a. im Konfigurator (Sidebar + Cards)
   sowie auf PDP-Badges sichtbar, die bei 10-11px zu klein waren.
   ================================================================= */
@media (max-width: 1080px) and (min-width: 701px) {
  .konfig-filter-title { font-size: 13px !important; line-height: 1.25 !important; }
  .konfig-card-badge { font-size: 12px !important; }
  .konfig-card-farbe,
  .price-hint { font-size: 12px !important; }
  .pdp-montage-badge { font-size: 12px !important; }
  .wiz-step-label { font-size: 12px !important; }

  .konfig-reset {
    min-height: 36px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .wiz-close {
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* =================================================================
   === RATGEBER + STADT-LANDING (v1.0, 20.04.2026)
   ================================================================= */

/* ---------- Breadcrumbs (hero variant, light text on dark) ---------- */
.td-ratgeber-crumbs,
.td-stadt-crumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.td-ratgeber-crumbs a,
.td-stadt-crumbs a { color: rgba(255,255,255,0.9); transition: color .15s; }
.td-ratgeber-crumbs a:hover,
.td-stadt-crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Ratgeber Hero ---------- */
.td-ratgeber-hero {
  background: linear-gradient(135deg, #0f1b2f 0%, #1f3a6d 100%);
  color: #fff;
  padding: 56px 0 48px;
}
.td-ratgeber-hero h1 {
  margin: 6px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  max-width: 880px;
}
.td-ratgeber-lead {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 760px;
  margin: 0 0 18px;
}
.td-ratgeber-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.td-ratgeber-meta span { line-height: 1.2; }

/* ---------- Ratgeber Layout ---------- */
.td-ratgeber-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 20px 64px;
  align-items: start;
}
.td-ratgeber-toc {
  position: sticky;
  top: 80px;
}
.td-ratgeber-toc-inner {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.td-ratgeber-toc h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}
.td-ratgeber-toc nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.td-ratgeber-toc nav a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: #2d3748;
  line-height: 1.4;
  transition: background .15s, color .15s;
}
.td-ratgeber-toc nav a:hover {
  background: #f0f4ff;
  color: var(--color-primary);
}

/* ---------- Ratgeber Body (prose) ---------- */
.td-ratgeber-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: #1a2236;
}
.td-ratgeber-body p {
  margin: 0 0 1.1em;
}
.td-ratgeber-body p:first-child {
  font-size: 19px;
  line-height: 1.6;
  color: #1a2236;
  font-weight: 500;
}
.td-ratgeber-body h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 2em 0 0.6em;
  scroll-margin-top: 80px;
  color: #0f1b2f;
}
.td-ratgeber-body h2:first-child { margin-top: 0; }
.td-ratgeber-body h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 1.6em 0 0.5em;
  color: #1a2236;
}
.td-ratgeber-body ul,
.td-ratgeber-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.td-ratgeber-body li {
  margin: 0.35em 0;
}
.td-ratgeber-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(31,122,224,0.4);
  text-underline-offset: 2px;
}
.td-ratgeber-body a:hover {
  text-decoration-color: var(--color-primary);
}
.td-ratgeber-body strong { color: #0f1b2f; }
.td-ratgeber-body blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: #29406d;
}
.td-ratgeber-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.td-ratgeber-body th,
.td-ratgeber-body td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.td-ratgeber-body th {
  background: var(--color-bg-alt);
  font-weight: 700;
  color: #0f1b2f;
  font-size: 14px;
}
.td-ratgeber-body tr:last-child td { border-bottom: none; }
.td-ratgeber-body tbody tr:hover { background: #f8fbff; }

/* Info-Box-Style innerhalb Artikel (verwende: <div class="td-info-box">…</div>) */
.td-ratgeber-body .td-info-box {
  background: #f0f7ff;
  border: 1px solid #c7deff;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 1.4em 0;
  font-size: 15px;
  color: #1e3a6e;
  line-height: 1.55;
}
.td-ratgeber-body .td-info-box strong { color: var(--color-primary-dark); }

/* FAQ-Block innerhalb Artikel */
.td-ratgeber-body details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 10px;
  transition: border-color .15s;
}
.td-ratgeber-body details[open] { border-color: var(--color-primary); }
.td-ratgeber-body summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding-right: 24px;
  position: relative;
  font-size: 16px;
  color: #0f1b2f;
}
.td-ratgeber-body summary::-webkit-details-marker { display: none; }
.td-ratgeber-body summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1;
  font-weight: 400;
}
.td-ratgeber-body details[open] summary::after { content: '−'; }
.td-ratgeber-body details p { margin-top: 10px; font-size: 15px; }

/* End-CTA */
.td-ratgeber-cta {
  margin: 2.5em 0 0;
  padding-top: 2em;
  border-top: 2px solid var(--color-border);
}
.td-ratgeber-cta-inner {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.td-ratgeber-cta-icon { font-size: 36px; margin-bottom: 12px; }
.td-ratgeber-cta-inner h3 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.td-ratgeber-cta-inner p { color: rgba(255,255,255,0.85); font-size: 15px; margin: 0 0 20px; }

/* ---------- Stadt-Landing post_content section ---------- */
.td-stadt-content-inner {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #1a2236;
}
.td-stadt-content-inner p { margin: 0 0 1.1em; }
.td-stadt-content-inner h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 1.8em 0 0.6em;
  color: #0f1b2f;
}
.td-stadt-content-inner h2:first-child { margin-top: 0; }
.td-stadt-content-inner h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 1.4em 0 0.4em;
  color: #1a2236;
}
.td-stadt-content-inner ul,
.td-stadt-content-inner ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.td-stadt-content-inner li { margin: 0.3em 0; }
.td-stadt-content-inner a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.td-stadt-content-inner strong { color: #0f1b2f; }
.td-stadt-content-inner details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 10px;
}
.td-stadt-content-inner details[open] { border-color: var(--color-primary); }
.td-stadt-content-inner summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding-right: 24px;
  position: relative;
  font-size: 16px;
}
.td-stadt-content-inner summary::-webkit-details-marker { display: none; }
.td-stadt-content-inner summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  font-size: 22px; color: var(--color-primary); line-height: 1;
}
.td-stadt-content-inner details[open] summary::after { content: '−'; }
.td-stadt-content-inner details p { margin-top: 10px; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .td-ratgeber-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 48px;
  }
  .td-ratgeber-toc {
    position: static;
    order: 2;
  }
  .td-ratgeber-body { max-width: none; }
}
@media (max-width: 700px) {
  .td-ratgeber-hero { padding: 36px 0 30px; }
  .td-ratgeber-body { font-size: 16px; }
  .td-ratgeber-body p:first-child { font-size: 17px; }
  .td-ratgeber-body h2 { font-size: 22px; margin-top: 1.6em; }
  .td-ratgeber-body h3 { font-size: 18px; }
  .td-ratgeber-body table { display: block; overflow-x: auto; }
  .td-ratgeber-cta-inner { padding: 26px 18px; }
  .td-ratgeber-cta-inner h3 { font-size: 19px; }
  .td-stadt-content-inner h2 { font-size: 22px; }
  .td-stadt-content-inner h3 { font-size: 17px; }
}


/* ==================== DESKTOP v1.8 — select2 hidden-accessible width fix ==================== */
/* WooCommerce form-row select { width: 100% } overrides select2's intended width:1px on the
   visually-hidden native <select>. At viewports < ~1654px (incl. 1440 / 1366 / 1280 laptops)
   the hidden SELECT pokes past the body → horizontal scroll on the checkout. Force the
   intended 1px width with specificity that beats the form-row rule. */
select.select2-hidden-accessible,
.woocommerce-checkout .form-row select.select2-hidden-accessible,
.woocommerce-checkout .form-row select[aria-hidden="true"],
body .woocommerce-checkout select.select2-hidden-accessible {
  width: 1px !important;
  max-width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* TD-WP-SMILEY-INLINE v1.0 (20.04.2026)
   Twemoji-IMG-Tags (von wp_staticize_emoji erzeugt) müssen inline gerendert
   werden — der globale Reset img{display:block} würde sie sonst untereinander
   stapeln. Ersetzt die WP-Default-Regeln von print_emoji_styles, das in
   functions.php (TD-FORCE-TWEMOJI) deaktiviert wurde. */
img.wp-smiley,
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 .07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}
/* /TD-WP-SMILEY-INLINE */
