/* Öffentliche Seiten des SHK-Unternehmer-Toolkits (Startseite und Tool-Seiten). Basis steht in base.css. */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; background: linear-gradient(180deg, var(--accent-softer), var(--bg)); }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); max-width: 22ch; margin: 0.6rem auto 1.1rem; }
.hero-text { max-width: 44rem; margin: 0 auto 1.6rem; font-size: 1.12rem; color: var(--ink-soft); }
.hero-aktion { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.klein-hero { text-align: left; padding-bottom: 2.5rem; }
.klein-hero .wrap { max-width: 56rem; }
.klein-hero h1 { margin-left: 0; margin-right: 0; font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 24ch; }
.klein-hero .hero-text { margin-left: 0; margin-right: 0; }
.klein-hero .hero-aktion { justify-content: flex-start; }
.eyebrow a { color: inherit; }

.sektion { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.sektion.hell { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sektion h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.8rem; }
.sektion .lead { color: var(--ink-soft); max-width: 46rem; margin-bottom: 1.4rem; }
.schmal { max-width: 46rem; }
.abstand { margin-top: 2.6rem; }

/* Problem-Kacheln: Foto füllt die Fläche, der Satz steht unten groß und gelb markiert.
   Beim Überfahren, Fokussieren oder Antippen fährt unten die Hilfe herein. Satz und Hilfe liegen im selben
   unten verankerten Block, der Satz wandert also von selbst genau so weit nach oben, wie die Hilfe Platz braucht. */
.probleme { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.problem { position: relative; grid-column: span 2; aspect-ratio: 1 / 1.08; min-height: 22rem; overflow: hidden; background: #6f7f78; color: #fff; isolation: isolate; }
.problem:nth-child(4) { grid-column: 2 / span 2; }
.problem:nth-child(5) { grid-column: 4 / span 2; }
.problem-foto, .problem-foto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.problem-foto img { object-fit: cover; display: block; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.problem-foto::after { content: ""; position: absolute; inset: 0; background: rgba(15, 28, 26, 0.5); transition: background 0.5s ease; }
.problem:hover .problem-foto img, .problem:has(:focus-visible) .problem-foto img, .problem.open .problem-foto img { transform: scale(1.04); }
.problem:hover .problem-foto::after, .problem:has(:focus-visible) .problem-foto::after, .problem.open .problem-foto::after { background: rgba(15, 28, 26, 0.62); }
.bild-platzhalter { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; color: #e6efec; text-align: center; padding: 1rem; }
.bild-platzhalter span { font-weight: 600; font-size: 0.9rem; }
.bild-platzhalter small { font-size: 0.8rem; max-width: 22ch; }
.problem-block { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; }
.problem-h { margin: 0; font: inherit; }
.problem-satz { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 1.2rem 1.4rem 1.3rem; color: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.65vw, 1.6rem); line-height: 1.27; letter-spacing: -0.015em; text-wrap: balance; }
.problem-satz:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 0; }
.problem mark { background: #f2d36b; color: #14201d; padding: 0.02em 0.22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.problem-hilfe { display: grid; grid-template-rows: 0fr; visibility: hidden; background: #0f1c1a; transition: grid-template-rows 0.5s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0.5s; }
.problem-hilfe-in { min-height: 0; overflow: hidden; }
.problem-hilfe-pad { padding: 0.9rem 1.4rem 1.05rem; display: flex; flex-direction: column; gap: 0.5rem; }
.problem:hover .problem-hilfe, .problem:has(:focus-visible) .problem-hilfe, .problem.open .problem-hilfe { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.problem-hilft { font-size: 0.75rem; color: #9fe1cb; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.problem-punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.problem-punkte li { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.92rem; color: #eef3f0; }
.problem-punkte li::before { content: ""; flex: none; width: 0.55rem; height: 0.3rem; border-left: 2px solid #9fe1cb; border-bottom: 2px solid #9fe1cb; transform: rotate(-45deg) translateY(-0.12rem); }
.problem-ziel { color: #fff; font-weight: 600; font-size: 0.98rem; border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 0.55rem; }
.problem-ziel::after { content: " \2192"; }
.problem-ziel:hover { text-decoration: none; color: #9fe1cb; }
@media (max-width: 1000px) { .probleme { grid-template-columns: repeat(2, minmax(0, 1fr)); } .problem, .problem:nth-child(4), .problem:nth-child(5) { grid-column: span 1; aspect-ratio: 1 / 1; } .problem:last-child { grid-column: span 2; aspect-ratio: 2 / 0.9; } .problem-satz { font-size: 1.4rem; } }
@media (max-width: 640px) { .probleme { grid-template-columns: 1fr; } .problem, .problem:nth-child(4), .problem:nth-child(5), .problem:last-child { grid-column: span 1; aspect-ratio: 1 / 1.12; min-height: 24rem; } }
@media (prefers-reduced-motion: reduce) { .problem-hilfe, .problem-foto img, .problem-foto::after { transition: none !important; } .problem:hover .problem-foto img, .problem:has(:focus-visible) .problem-foto img, .problem.open .problem-foto img { transform: none; } }

.kacheln-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.kachel-link { display: flex; flex-direction: column; gap: 0.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.kachel-link:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.kachel-link h3 { font-size: 1.12rem; }
.kachel-link p { color: var(--ink-soft); font-size: 0.97rem; }
.mehr-link { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.92rem; }

.tabelle-wrap { overflow-x: auto; }
.vergleich { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 38rem; }
.vergleich th, .vergleich td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vergleich thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.vergleich tbody th { font-weight: 600; white-space: nowrap; }

.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.preis { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.sektion.hell .preis { background: var(--bg); }
.preis.paket { border: 2px solid var(--accent); box-shadow: var(--shadow); background: var(--surface); }
.preis h3 { font-size: 1.15rem; }
.preis .marke { position: absolute; top: -0.7rem; left: 1.1rem; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.15rem 0.65rem; border-radius: 999px; }
.betrag strong { font-family: var(--font-display); font-size: 2.1rem; letter-spacing: -0.02em; }
.betrag span { color: var(--muted); font-size: 0.88rem; }
.preis .btn { margin-top: auto; align-self: flex-start; }
.preise-fuss { grid-column: 1 / -1; font-size: 0.86rem; color: var(--muted); }

.beratung { background: var(--dark); color: var(--dark-ink); }
.beratung .lead { color: var(--dark-muted); }
.beratung .eyebrow { color: #9ad8cf; }
.beratung .karte { background: var(--dark-2); border-color: transparent; }
.beratung .karte p { color: var(--dark-muted); }
.beratung .klein { color: var(--dark-muted); margin-top: 1rem; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.karte ul { margin: 0.6rem 0 1rem; padding-left: 1.2rem; }
.karte li { margin: 0.3rem 0; }
.karte h3 { margin-bottom: 0.3rem; }

.textblock { margin-bottom: 2rem; }
.textblock h2 { font-size: 1.45rem; }
.textblock p { margin: 0.6rem 0; color: var(--ink-soft); }
.textblock ul { color: var(--ink-soft); padding-left: 1.2rem; }
.textblock li { margin: 0.3rem 0; }
.beispiel { background: var(--accent-softer); border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.beispiel h2 { font-size: 1.05rem; }
.liste-weitere { padding-left: 1.1rem; }
.liste-weitere li { margin: 0.5rem 0; color: var(--ink-soft); }

.faq details { border-bottom: 1px solid var(--line-2); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 44rem; }

/* Ratgeber */
.artikel h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.artikel h2:first-child { margin-top: 0; }
.artikel p { margin: 0.7rem 0; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.7; }
.artikel ul, .artikel ol { color: var(--ink-soft); padding-left: 1.3rem; margin: 0.7rem 0; line-height: 1.7; }
.artikel li { margin: 0.35rem 0; }
.artikel .formel { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); background: var(--accent-softer); border-left: 4px solid var(--accent); padding: 0.9rem 1.1rem; margin: 1.1rem 0; }
.artikel .hinweis { background: var(--surface); border: 1px solid var(--line-2); padding: 0.8rem 1rem; font-size: 0.95rem; }
.artikel .beispiel-tabelle { min-width: 24rem; font-size: 0.95rem; }
.artikel .beispiel-tabelle caption { text-align: left; font-weight: 600; padding: 0 0 0.5rem; color: var(--ink); caption-side: top; }
.artikel .tool-hinweis { background: var(--dark); color: var(--dark-ink); padding: 1.6rem 1.7rem; margin: 2.4rem 0; }
.artikel .tool-hinweis h2 { margin: 0.3rem 0 0.4rem; color: #fff; font-size: 1.4rem; }
.artikel .tool-hinweis p { color: var(--dark-muted); }
.artikel .tool-hinweis .eyebrow { color: #9ad8cf; }
.artikel .tool-hinweis .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.artikel .rechtshinweis { margin-top: 2.4rem; font-size: 0.85rem; }
.artikel-meta { margin-top: 0.8rem; }
.ratgeber-gruppe { margin-bottom: 2.4rem; }
.ratgeber-gruppe h2 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.ratgeber-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.ratgeber-liste a { display: flex; flex-direction: column; gap: 0.4rem; height: 100%; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.ratgeber-liste a:hover { text-decoration: none; border-color: var(--accent); }
.ratgeber-liste a strong { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; }
.ratgeber-liste a span { font-size: 0.92rem; color: var(--muted); }

/* Grafikfläche für die Problem-Kacheln, solange kein Foto hinterlegt ist */
.bild-grafik { width: 100%; height: 100%; background: radial-gradient(circle at 18% 14%, rgba(159, 225, 203, 0.24), transparent 52%), radial-gradient(circle at 88% 92%, rgba(47, 90, 168, 0.28), transparent 50%), linear-gradient(150deg, #1d5d56 0%, #0f3b36 55%, #0f1c1a 100%); }

/* Haftungshinweis */
.haftung-block { border-left: 4px solid var(--warn); background: var(--surface); padding: 0.9rem 1.1rem; border-radius: 8px; }
.haftung-block h2 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.haftung-block p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.haftung-fuss { margin-bottom: 0.6rem; }

/* Ratgeber-Übersicht: eine Kachel je Artikel, drei nebeneinander */
.ratgeber-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.ratgeber-raster li { display: flex; }
.ratgeber-raster a { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.ratgeber-raster a:hover { text-decoration: none; border-color: var(--accent); }
.ratgeber-raster a strong { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; }
.ratgeber-raster a span { font-size: 0.93rem; color: var(--muted); }
.ratgeber-raster a em { margin-top: auto; padding-top: 0.4rem; font-style: normal; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
@media (max-width: 960px) { .ratgeber-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ratgeber-raster { grid-template-columns: 1fr; } }
