/* Steuerklassen.biz – Layout 2026 (Bootstrap 5) */

/* Schrift Inter lokal (SIL Open Font License, siehe fonts/OFL.txt) – keine Verbindung zu Google Fonts */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--sk-gruen: #11593c;
	--sk-gruen-hell: #1d7a53;
	--sk-gruen-bg: #e8f3ed;
	--sk-text: #1f2a24;
	--sk-grau: #5f6b65;
	--sk-rand: #dfe6e2;
	--sk-hintergrund: #f5f7f6;
	--bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bs-body-color: var(--sk-text);
	--bs-link-color: var(--sk-gruen);
	--bs-link-color-rgb: 17, 89, 60;
	--bs-link-hover-color: var(--sk-gruen-hell);
	--bs-link-hover-color-rgb: 29, 122, 83;
}

/* Puffer fuer den sticky Header bei Sprungmarken */
html { scroll-padding-top: 84px; }

body {
	background: var(--sk-hintergrund);
	font-size: 1rem;
	line-height: 1.65;
}

h1, h2, h3, h4, h5 { color: var(--sk-text); font-weight: 700; letter-spacing: -0.01em; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn-primary {
	--bs-btn-bg: var(--sk-gruen);
	--bs-btn-border-color: var(--sk-gruen);
	--bs-btn-hover-bg: var(--sk-gruen-hell);
	--bs-btn-hover-border-color: var(--sk-gruen-hell);
	--bs-btn-active-bg: #0d4630;
	--bs-btn-active-border-color: #0d4630;
	--bs-btn-disabled-bg: var(--sk-gruen);
	--bs-btn-disabled-border-color: var(--sk-gruen);
	--bs-btn-focus-shadow-rgb: 17, 89, 60;
}
.btn-outline-primary {
	--bs-btn-color: var(--sk-gruen);
	--bs-btn-border-color: var(--sk-gruen);
	--bs-btn-hover-bg: var(--sk-gruen);
	--bs-btn-hover-border-color: var(--sk-gruen);
	--bs-btn-active-bg: var(--sk-gruen);
	--bs-btn-active-border-color: var(--sk-gruen);
	--bs-btn-focus-shadow-rgb: 17, 89, 60;
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
	border-color: #7fb39a;
	box-shadow: 0 0 0 .2rem rgba(17, 89, 60, .15);
}
.form-check-input:checked { background-color: var(--sk-gruen); border-color: var(--sk-gruen); }

/* ---- Header ----------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--sk-rand); }
.site-header .navbar { padding-top: .6rem; padding-bottom: .6rem; }
.brand-name { font-weight: 800; font-size: 1.3rem; color: var(--sk-text); letter-spacing: -0.02em; }
.brand-name .brand-accent { color: var(--sk-gruen); }
.brand-logo {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; margin-right: .5rem; border-radius: 9px;
	background: var(--sk-gruen); color: #fff; font-weight: 800; font-size: .95rem;
}
.site-header .nav-link { color: var(--sk-text); font-weight: 500; font-size: .95rem; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--sk-gruen); }
.site-header .dropdown-item:active { background: var(--sk-gruen); }

/* ---- Einstieg (Hero) -------------------------------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--sk-gruen) 0%, #1b7a52 100%);
	color: #e9f5ef;
	padding: 2.75rem 0 3rem;
}
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .75rem; }
.hero .lead { font-size: 1.1rem; max-width: 46rem; color: #d7ede2; }
.hero .btn-light { color: var(--sk-gruen); font-weight: 600; }
.hero .btn-outline-light { font-weight: 600; }

.stkl-grid { margin-top: 2rem; }
.stkl-kachel {
	display: block; height: 100%;
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: .9rem;
	color: #fff; text-decoration: none;
	transition: background .15s, transform .15s;
}
.stkl-kachel:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-2px); }
.stkl-kachel .stkl-nr { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stkl-kachel .stkl-nr small { font-size: .8rem; font-weight: 600; opacity: .8; margin-left: .25rem; }
.stkl-kachel .stkl-text { display: block; font-size: .85rem; line-height: 1.4; color: #d7ede2; margin-top: .3rem; }

/* ---- Inhalt ----------------------------------------------------------------- */
.ad-leiste { padding: .75rem 0 0; }

.content-card {
	background: #fff;
	border: 1px solid var(--sk-rand);
	border-radius: 1rem;
	padding: 1.75rem 2rem;
	margin-bottom: 1.5rem;
}
@media (max-width: 575.98px) {
	.content-card { padding: 1.25rem 1.1rem; border-radius: .75rem; }
}
.content-card > h2 {
	font-size: 1.45rem;
	padding-bottom: .6rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--sk-gruen-bg);
}
.content-card h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: .6rem; }
.content-card h3:first-of-type { margin-top: .5rem; }
.content-card p:last-child { margin-bottom: 0; }

.stkl-badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.9rem; height: 1.9rem; margin-right: .55rem; border-radius: 50%;
	background: var(--sk-gruen-bg); color: var(--sk-gruen);
	font-size: .95rem; font-weight: 800; vertical-align: .05em;
}

.beispiel {
	background: var(--sk-hintergrund);
	border-left: 4px solid var(--sk-gruen);
	border-radius: .5rem;
	padding: 1rem 1.25rem;
	margin: 1rem 0;
}
.beispiel p { margin-bottom: .5rem; }

.hinweis {
	background: #fff8e6;
	border-left: 4px solid #e0a800;
	border-radius: .5rem;
	padding: 1rem 1.25rem;
	margin: 1rem 0;
}

.werbung { margin: 1.25rem 0; }

/* ---- Antrag-Viewer ---------------------------------------------------------- */
.antrag-viewer {
	height: 520px; overflow: auto;
	background: var(--sk-hintergrund);
	border: 1px solid var(--sk-rand); border-radius: .75rem;
	padding: .75rem;
}
.antrag-viewer img { width: 100%; border-radius: .25rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); background: #fff; }

/* ---- Blog-Block ------------------------------------------------------------- */
.blog_steuer_org p { margin-bottom: 1.1rem; }
.blog_steuer_org a { cursor: pointer; font-weight: 600; }

/* ---- Seitenleiste ----------------------------------------------------------- */
.sidebar-sticky { position: sticky; top: 84px; }
.sidebar-widget {
	background: #fff;
	border: 1px solid var(--sk-rand);
	border-radius: 1rem;
	padding: 1.1rem 1.25rem;
	margin-bottom: 1.25rem;
}
.sidebar-widget h2 {
	font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--sk-grau); margin-bottom: .75rem;
}
.toc { list-style: none; padding: 0; margin: 0; }
.toc li a {
	display: block; padding: .3rem .6rem; margin: 0 -.6rem;
	border-radius: .4rem; color: var(--sk-text); text-decoration: none; font-size: .93rem;
}
.toc li a:hover { background: var(--sk-gruen-bg); color: var(--sk-gruen); }
.toc li a.active { background: var(--sk-gruen-bg); color: var(--sk-gruen); font-weight: 600; }
.toc ul { list-style: none; padding-left: .9rem; margin: 0; }

.link-liste { list-style: none; padding: 0; margin: 0; }
.link-liste li + li { border-top: 1px solid var(--sk-rand); }
.link-liste a {
	display: flex; justify-content: space-between; align-items: center;
	padding: .5rem 0; color: var(--sk-text); text-decoration: none; font-size: .93rem;
}
.link-liste a::after { content: "\203A"; color: var(--sk-grau); font-size: 1.1rem; }
.link-liste a:hover { color: var(--sk-gruen); }

/* ---- Footer ----------------------------------------------------------------- */
.site-footer { background: #10261c; color: #b8c7bf; padding: 2.5rem 0 1.5rem; margin-top: 1rem; font-size: .93rem; }
.site-footer a { color: #dfeae4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .4rem; }
.footer-brand span { color: #6fd3a1; }
.site-footer h3 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8fa69a; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-divider { border-color: rgba(255, 255, 255, .12); margin: 1.75rem 0 1.25rem; opacity: 1; }
@media (max-width: 991.98px) {
	.site-footer { padding-bottom: 4.5rem; }
}

/* ---- Nach-oben-Button ------------------------------------------------------- */
.nach-oben {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030;
	width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--sk-gruen); color: #fff; border: 0;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.nach-oben.sichtbar { opacity: 1; visibility: visible; }
.nach-oben:hover { background: var(--sk-gruen-hell); color: #fff; }

/* ---- Animationen -------------------------------------------------------------
   Aktiv, sobald JavaScript läuft (Klasse "anim" am <html>) - auch bei
   eingestellter "Bewegung reduzieren". Ohne JS bleibt alles sichtbar. */
.anim .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.anim .reveal.reveal-links { transform: translateX(-26px); }
.anim .reveal.reveal-zoom { transform: scale(.94); }
.anim .reveal.sichtbar { opacity: 1; transform: none; }

/* Einstieg: Titelbereich beim Laden */
.anim .hero h1, .anim .hero .lead, .anim .hero .d-flex {
	animation: einblenden-oben .8s cubic-bezier(.2, .7, .2, 1) both;
}
.anim .hero .lead { animation-delay: .1s; }
.anim .hero .d-flex { animation-delay: .2s; }
.anim .hero .stkl-grid > div {
	animation: einblenden-zoom .5s cubic-bezier(.2, .7, .2, 1) both;
	animation-delay: calc(.3s + var(--reveal-i, 0) * 60ms);
}
@keyframes einblenden-oben { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes einblenden-zoom { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* Rechner-Ergebnis weich einblenden */
#skErgebnis.einblenden { animation: einblenden-oben .55s cubic-bezier(.2, .7, .2, 1) both; }
#skErgebnis.einblenden .sk-kennzahl { animation: einblenden-zoom .5s cubic-bezier(.2, .7, .2, 1) both; }
#skErgebnis.einblenden .col-6:nth-child(2) .sk-kennzahl { animation-delay: .07s; }
#skErgebnis.einblenden .col-6:nth-child(3) .sk-kennzahl { animation-delay: .14s; }
#skErgebnis.einblenden .col-6:nth-child(4) .sk-kennzahl { animation-delay: .21s; }
#skErgebnis.einblenden tbody tr { animation: einblenden-oben .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .25s; }

/* kleine Hover-Effekte */
.sidebar-widget, .sk-kennzahl { transition: transform .2s, box-shadow .2s; }
.sk-kennzahl:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(17, 89, 60, .1); }
.link-liste a { transition: color .15s, padding-left .2s; }
.link-liste a:hover { padding-left: .3rem; }
.btn { transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s, color .15s; }
.btn-primary:hover, .btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(17, 89, 60, .25); }
