@import url('../fonts/fonts.css');

:root {
    --color-gold: #a97c1f;
    --color-gold-light: #d9b65c;
    --color-gold-pale: #f6ecd4;
    --color-black: #1a1712;
    --color-surface-dark: #3c3a36;
    --color-bg: #f1f3f5;
    --color-bg-alt: #faf8f3;
    --color-text: #2b2620;
    --color-text-soft: #5c554a;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-script: 'Playfair Display', Georgia, serif;
    --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-soft: 0 4px 24px rgba(26, 23, 18, 0.08);
}

* {
    box-sizing: border-box;
}

/* Ohne !important gewinnt jede Klasse mit eigenem "display" (z.B. .rechner-chip,
   .button-primary) gegen das [hidden]-Attribut, da beide Selektoren die gleiche
   Spezifitaet haben und die Klassenregel im Stylesheet spaeter kommt. */
[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-black);
    line-height: 1.25;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

a {
    color: var(--color-gold);
}

a:hover, a:focus {
    color: var(--color-gold-light);
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Header */
.site-header {
    background: var(--color-surface-dark);
    color: var(--color-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-gold);
}

.site-logo img {
    height: 46px;
    width: 46px;
    display: block;
}

.site-logo__text {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.site-logo__name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    white-space: nowrap;
}

.site-logo__text em {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-gold);
    font-weight: 600;
    white-space: nowrap;
}

.icon-sparkle {
    width: 1rem;
    height: 1rem;
    color: var(--color-gold-light);
    animation: sparkle-glow 2.4s ease-in-out infinite;
}

@keyframes sparkle-glow {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
        filter: drop-shadow(0 0 3px var(--color-gold-light));
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 0.4rem;
    cursor: pointer;
}

.nav-toggle .icon {
    width: 1.7rem;
    height: 1.7rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.site-nav a {
    color: #f2ede1;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.site-nav a:hover, .site-nav a:focus {
    color: var(--color-gold);
}

.site-nav .site-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-gold);
    font-weight: 700;
    white-space: nowrap;
}

.site-nav .site-phone .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.site-phone--compact {
    display: none;
}

.site-nav .site-phone:hover, .site-nav .site-phone:focus {
    color: var(--color-gold-light);
}

.site-nav .has-submenu {
    position: relative;
}

.site-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface-dark);
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 250px;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-soft);
}

.site-nav .has-submenu:hover .submenu,
.site-nav .has-submenu:focus-within .submenu {
    display: flex;
}

.site-nav .submenu li {
    padding: 0;
}

.site-nav .submenu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.1rem;
}

.site-nav .submenu .icon {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--color-gold);
}

/* Main content */
main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
    min-height: 60vh;
}

/* Hero (Startseite) */
.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1rem 0 1.5rem;
    flex-wrap: wrap;
    position: relative;
}

.hero__badge {
    position: absolute;
    top: -0.5rem;
    right: 0;
    width: 108px;
    height: auto;
    opacity: 0.85;
}

.hero__image {
    flex: 1 1 280px;
    max-width: 340px;
    margin: 0 auto;
}

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

.hero__content {
    flex: 1 1 360px;
}

.hero__claim {
    font-family: var(--font-script);
    font-style: italic;
    color: var(--color-gold);
    font-size: 1.3rem;
    margin: 0 0 1rem;
}

.hero__content p {
    color: var(--color-text-soft);
}

.rechner-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    margin-top: 1.25rem;
    margin-left: auto;
    padding: 0.85rem 1.2rem;
    background: var(--color-gold-pale);
    border: 1px solid var(--color-gold);
    border-radius: 999px;
    color: var(--color-black);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.rechner-cta:hover, .rechner-cta:focus {
    background: var(--color-gold);
    color: #fff;
    transform: translateY(-1px);
}

.rechner-cta .icon {
    color: var(--color-gold);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.rechner-cta:hover .icon, .rechner-cta:focus .icon {
    color: #fff;
}

.rechner-cta > .icon:first-child {
    width: 1.4rem;
    height: 1.4rem;
}

.rechner-cta span {
    flex: 1;
}

.rechner-cta__chevron {
    width: 1.1rem;
    height: 1.1rem;
}

/* Page header (Icon + Titel) */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-header .icon {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--color-gold);
    flex-shrink: 0;
}

.page-header .icon-img {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
    flex-shrink: 0;
}

.page-header h1 {
    margin: 0;
    font-size: 1.7rem;
}

/* Zwischenueberschriften im Fliesstext der Leistungs-Unterseiten (aus den
   "##"-Abschnitten der content/leistungen-*.md), z.B. "Was dazugehört". */
.leistung-body h2 {
    font-size: 1.3rem;
}

/* Kleines, dezentes Portraitfoto auf Leistungsseiten */
.page-portrait {
    float: right;
    width: 130px;
    height: auto;
    margin: 0 0 1rem 1.5rem;
}

/* Ueber-uns Kopfbereich */
.ueber-uns-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ueber-uns-intro img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ueber-uns-intro h1 {
    margin: 0;
}

/* Leistungen overview */
.leistungen-liste {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.leistungen-liste li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1rem 1.3rem;
    border: 1px solid #e7ddc4;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-black);
    background: var(--color-bg-alt);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.leistungen-liste .icon {
    width: 1.9rem;
    height: 1.9rem;
    color: var(--color-gold);
}

.leistungen-liste .icon-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
}

.leistungen-liste li a span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 0;
}

.leistungen-liste li a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-gold);
}

/* Info-Banner */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    background: var(--color-gold-pale);
    margin: 1.5rem 0;
}

.info-banner .icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.info-banner p {
    margin: 0;
}

.info-banner p + p {
    margin-top: 0.6rem;
}

.info-banner h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.info-banner--klein h3 {
    font-size: 1rem;
}

.info-banner--klein p {
    font-size: 0.9rem;
}

/* Sichtbarkeit nur fuer Screenreader (z.B. Tabellen-Spaltenkopf "Entfernen"). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Rechner */
.rechner {
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
    border: 1px solid #ede6d4;
    box-shadow: var(--shadow-soft);
    clear: right;
}

.rechner-chips-hinweis {
    font-weight: 700;
    margin: 1.25rem 0 0.75rem;
}

.rechner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.rechner-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--color-gold);
    border-radius: 999px;
    background: #fff;
    color: var(--color-black);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.rechner-chip .icon {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--color-gold);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.rechner-chip:hover {
    background: var(--color-gold);
    color: #fff;
    transform: translateY(-1px);
}

.rechner-chip:hover .icon {
    color: #fff;
}

.rechner-leer-hinweis {
    color: var(--color-text-soft);
    font-style: italic;
    margin: 1rem 0;
}

/* Toggle-Switch "Reinigungsutensilien im Haushalt vorhanden" */
.rechner-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0;
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

.rechner-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rechner-switch__track {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
    background: #d5cdb8;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.rechner-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(26, 23, 18, 0.35);
    transition: transform 0.2s ease;
}

.rechner-switch input:checked + .rechner-switch__track {
    background: var(--color-gold);
}

.rechner-switch input:checked + .rechner-switch__track .rechner-switch__thumb {
    transform: translateX(20px);
}

.rechner-switch input:focus-visible + .rechner-switch__track {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.rechner-switch__label {
    font-weight: 600;
}

.rechner-tabelle-wrapper {
    margin-top: 1.25rem;
}

.rechner-tabelle {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.rechner-tabelle th, .rechner-tabelle td {
    text-align: left;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid #e5ddc9;
    vertical-align: middle;
}

.rechner-tabelle th {
    font-family: var(--font-heading);
    font-weight: 600;
    background: var(--color-gold-pale);
}

.rechner-tabelle tfoot td {
    border-bottom: none;
    font-family: var(--font-heading);
}

/* Zahlenwerte in tfoot bewusst in der Fliesstext-Schrift statt Playfair
   Display, da die Ziffern der Display-Schrift bei Preisen schlecht lesbar sind. */
.rechner-tabelle tfoot td:nth-child(2) {
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.rechner-tabelle input[type="number"] {
    width: 4.5rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid #d5cdb8;
    border-radius: 4px;
    font-family: var(--font-body);
}

.rechner-einheit {
    margin-left: 0.4rem;
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

.rechner-entfernen {
    background: none;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    color: var(--color-text-soft);
    display: flex;
    border-radius: 50%;
}

.rechner-entfernen .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.rechner-entfernen:hover {
    color: #a12727;
    background: #f4e6e6;
}

.rechner-unterhalb-tabelle {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.rechner-plz-feld {
    flex: 1 1 200px;
    margin: 0;
}

.rechner-plz-feld input {
    padding: 0.5rem 0.6rem;
    border: 1px solid #d5cdb8;
    border-radius: 4px;
    max-width: 160px;
    font-family: var(--font-body);
    display: block;
    margin-top: 0.3rem;
}

.rechner-hinweis {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.rechner-fehler {
    color: #a12727;
}

.rechner-erfolg {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #2f6b3a;
    font-weight: 600;
}

.rechner-erfolg .icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-gold);
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
}

.button-primary .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.button-primary:hover {
    background: var(--color-surface-dark);
}

.button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rechner-angebot-form {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5ddc9;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.25rem;
}

.form-grid p {
    margin: 0;
}

.form-grid label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
}

.form-grid input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d5cdb8;
    border-radius: 4px;
    font-family: var(--font-body);
}

.rechner-turnstile {
    margin-top: 1.25rem;
}

/* Steuer-Zusammenfassung (§ 35a Abs. 2 EStG) - rechtsbuendig, halbe Breite,
   direkt unter der Tabelle (neben dem PLZ-Feld). */
.rechner-steuer {
    flex: 1 1 280px;
    max-width: 50%;
    margin-left: auto;
    padding: 1.1rem 1.3rem;
    background: #fff;
    border: 1px solid #e5ddc9;
    border-radius: 8px;
}

.rechner-steuer p {
    margin: 0 0 0.6rem;
}

.rechner-steuer p:last-child {
    margin-bottom: 0;
}

.rechner-eigenaufwand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1f6b3a;
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem !important;
    border-bottom: 1px solid #e5ddc9;
}

.rechner-steuer-fussnote {
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

/* Mobile: Tabelle als gestapelte Karten statt gequetschter Spalten */
@media (max-width: 640px) {
    .rechner-tabelle thead {
        display: none;
    }

    .rechner-tabelle,
    .rechner-tabelle tbody,
    .rechner-tabelle tfoot {
        display: block;
        width: 100%;
    }

    .rechner-tabelle tbody tr,
    .rechner-tabelle tfoot tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 0.6rem;
        row-gap: 0.3rem;
        padding: 0.75rem 0.6rem;
    }

    .rechner-tabelle tbody td,
    .rechner-tabelle tfoot td {
        display: block;
        border: none;
        padding: 0;
    }

    .rechner-tabelle tbody tr td:nth-child(1) {
        flex: 1 1 auto;
        font-weight: 600;
        order: 1;
    }

    .rechner-tabelle tbody tr td:nth-child(5) {
        order: 2;
        margin-left: auto;
    }

    .rechner-tabelle tbody tr td:nth-child(2) {
        flex: 1 1 100%;
        order: 3;
    }

    .rechner-tabelle tbody tr td:nth-child(3) {
        flex: 1 1 auto;
        order: 4;
        font-size: 0.88rem;
        color: var(--color-text-soft);
    }

    .rechner-tabelle tbody tr td:nth-child(4) {
        order: 5;
        margin-left: auto;
        font-weight: 700;
    }

    .rechner-tabelle tfoot tr {
        justify-content: space-between;
    }

    .rechner-tabelle tfoot td:nth-child(3) {
        display: none;
    }

    .rechner-unterhalb-tabelle {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* flex-basis (200px/280px) ist fuer die Desktop-Breite gedacht - in
       flex-direction:column wuerde derselbe Wert stattdessen eine
       Mindesthoehe erzwingen und eine Luecke unter kurzem Inhalt reissen. */
    .rechner-plz-feld,
    .rechner-steuer {
        flex: 1 1 auto;
        max-width: 100%;
        margin-left: 0;
    }
}

/* Kontakt */
.kontakt-daten dt {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 1.2rem;
}

.kontakt-daten dd {
    margin-left: 0;
    color: var(--color-text-soft);
}

/* Footer */
.site-footer {
    background: var(--color-surface-dark);
    color: #ccc4b3;
    margin-top: 4rem;
}

.site-footer__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    text-align: center;
}

.site-footer__logo {
    height: 30px;
    width: 30px;
}

.site-footer__claim {
    font-family: var(--font-script);
    color: var(--color-gold);
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

.site-footer__legal {
    margin: 0;
}

.site-footer__legal a {
    color: #ccc4b3;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 0.85rem;
}

.site-footer__legal a:hover {
    color: var(--color-gold);
}

.site-footer__company {
    flex-basis: 100%;
    font-size: 0.78rem;
    color: #9a927f;
    margin: 0;
}

/* Hamburger-Navigation + kompakter Header */
@media (max-width: 780px) {
    .site-header__inner {
        flex-wrap: nowrap;
    }

    .site-logo img {
        height: 38px;
        width: 38px;
        flex-shrink: 0;
    }

    .site-logo__text em {
        display: none;
    }

    .site-logo__name {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
    }

    .site-phone--compact {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: var(--color-gold);
        font-weight: 700;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: auto;
    }

    .site-phone--compact .icon {
        width: 1rem;
        height: 1rem;
    }

    .site-nav .site-phone {
        display: none;
    }

    .site-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.5rem 1.5rem 1rem;
        background: rgba(60, 58, 54, 0.80);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: var(--shadow-soft);
        z-index: 50;
    }

    .site-nav.is-open ul {
        display: flex;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav > ul > li > a {
        display: block;
        padding: 0.6rem 0;
    }

    .site-nav .has-submenu .submenu {
        display: flex;
        position: static;
        border: none;
        box-shadow: none;
        background: rgba(60, 58, 54, 0.90);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        margin: 0.25rem 0 0;
        padding: 0.25rem 0 0.25rem 1.1rem;
        min-width: 0;
    }

    .site-nav .submenu a {
        padding: 0.4rem 0;
        color: #d8d2c4;
    }
}

@media (max-width: 780px) {
    .hero {
        display: block;
        text-align: left;
    }
    .hero__image {
        float: right;
        width: 120px;
        max-width: 120px;
        margin: 0 0 1rem 1rem;
    }
    .hero__content {
        text-align: left;
    }
    .rechner-cta {
        width: 100%;
        margin-left: 0;
        white-space: normal;
    }
    .page-portrait {
        display: none;
    }
    .ueber-uns-intro {
        justify-content: center;
        text-align: center;
    }
    .hero__badge {
        display: none;
    }
}

/* FAB (Floating Action Button) mit Popover - Steuer-Hinweis */
.fab {
    position: fixed;
    top: 85vh;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-gold);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(26, 23, 18, 0.28);
    cursor: pointer;
    z-index: 60;
    transition: transform 0.15s ease, background 0.15s ease;
}

.fab:hover, .fab:focus {
    background: var(--color-surface-dark);
    transform: scale(1.06);
}

.fab .icon {
    width: 1.6rem;
    height: 1.6rem;
}

.fab-popover {
    display: none;
    position: fixed;
    bottom: calc(15vh + 4.5rem);
    right: 1.5rem;
    left: auto;
    max-width: 380px;
    width: calc(100% - 3rem);
    background: var(--color-gold-pale);
    border: 1px solid var(--color-gold);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-soft);
    z-index: 60;
}

.fab-popover.is-open {
    display: block;
}

.fab-popover h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    padding-right: 1.2rem;
}

.fab-popover h3 .icon {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--color-gold);
    flex-shrink: 0;
}

.fab-popover p {
    margin: 0;
    font-size: 0.95rem;
}

.fab-popover p + p {
    margin-top: 0.5rem;
}

.fab-popover__close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-soft);
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}

.fab-popover__close:hover {
    color: var(--color-black);
}

@media (max-width: 420px) {
    .fab-popover {
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }
    .fab {
        right: 1rem;
    }
}
