/* yummisites Praesenzseite — eine Datei, kein Framework */

/* Helles Design (Standard), dunkles via prefers-color-scheme weiter unten */
:root {
    color-scheme: light dark;
    --accent: #e8542e;
    --accent-hover: #c73f1d;
    /* Fragezeichen auf der Preisseite: in beiden Designs blau */
    --fragezeichen: #2f6fd6;
    /* Strichmaennchen auf der Jobs-Seite: in beiden Designs blau */
    --laeufer: #2f6fd6;
    /* Lichtschein im Kolben der Gluehbirne: hell gelb, dunkel warm wie der Akzent */
    --birne-glow: #f4c542;
    /* Scheibe hinter dem Fragezeichen: hell im warmen Ton des Hintergrunds,
       dunkel wie eine Karte */
    --frage-scheibe: var(--paper-warm);
    /* Wendel: im hellen Design heller als der Akzent, damit er zu gluehen scheint */
    --wendel: #f5901f;
    /* Gehaeuse des Towerservers auf der Backend-Seite: im hellen Design grau,
       damit er sich vom weissen Hintergrund abhebt */
    --server-case: #dad7d3;
    --server-edge: #b6b1ab;
    --link: #c73f1d;
    /* Textfarbe der Hero-Badges: giftgruen in beiden Designs */
    --badge: #1fb51f;
    --ink: #21252b;
    --ink-soft: #5b6470;
    --paper: #fffdfa;
    --paper-warm: #fdf4ec;
    --card: #ffffff;
    --header-bg: rgba(255, 253, 250, 0.92);
    --line: #ece5dd;
    --radius: 14px;
    --container-max: 1060px;
}

/* Dunkles Design: greift bei System-Dunkel (solange nicht manuell "light" gewaehlt)
   und bei manueller Wahl "dark" — Tokens muessen in beiden Bloecken identisch sein */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --accent: #f0603a;
        --accent-hover: #ff7350;
        --fragezeichen: #6aa4f5;
        --laeufer: #6aa4f5;
        --birne-glow: var(--accent);
        --frage-scheibe: var(--card);
        --wendel: var(--accent);
        --server-case: #1d2027;
        --server-edge: #31353d;
        --link: #f5876a;
        --badge: #39ff14;
        --ink: #e9e6e1;
        --ink-soft: #a3aab4;
        --paper: #15171c;
        --paper-warm: #211c18;
        --card: #1d2027;
        --header-bg: rgba(21, 23, 28, 0.92);
        --line: #31353d;
    }
}

:root[data-theme="dark"] {
    --accent: #f0603a;
    --accent-hover: #ff7350;
    --fragezeichen: #6aa4f5;
    --laeufer: #6aa4f5;
    --birne-glow: var(--accent);
    --frage-scheibe: var(--card);
    --wendel: var(--accent);
    --server-case: #1d2027;
    --server-edge: #31353d;
    --link: #f5876a;
    --badge: #39ff14;
    --ink: #e9e6e1;
    --ink-soft: #a3aab4;
    --paper: #15171c;
    --paper-warm: #211c18;
    --card: #1d2027;
    --header-bg: rgba(21, 23, 28, 0.92);
    --line: #31353d;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Footer bleibt auch bei kurzen Seiten am unteren Rand */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-narrow { max-width: 760px; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand span { color: var(--accent); }

/* Markenname im Fliesstext — gleiche Zweifarbigkeit wie im Logo */
.brand-name { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand-name span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }

.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a:hover { color: var(--ink); }

.site-nav .nav-cta {
    color: #fff;
    background: var(--accent);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
}

.site-nav .nav-cta:hover { background: var(--accent-hover); color: #fff; }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.theme-toggle:hover { border-color: var(--ink-soft); }

/* Hero */
.hero {
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(60rem 28rem at 50% -12rem, var(--paper-warm), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-art svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-copy { text-align: center; }
    .hero-copy .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-copy .hero-actions { justify-content: center; }
    .hero-art { max-width: 400px; margin: 0 auto; }
}

.hero-badge {
    display: inline-block;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    color: var(--badge);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

/* Symbole in den Hero-Badges: so gross wie die Textzeile, ohne den Badge hoeher zu machen */
.badge-icon, .badge-frage {
    display: inline-block;
    font-size: 1.6em;
    line-height: 1;
    vertical-align: middle;
    margin: -0.5em 0.2em -0.4em 0;
}
/* Gezeichnetes Fragezeichen (Preise): hell schwarz, dunkel weiss */
.badge-frage { color: var(--ink); font-weight: 800; font-size: 2em; margin: -0.7em 0.15em -0.6em 0; }
/* Gezeichnete Symbole: Schreibfeder (Kontakt), Smiley (Jobs) */
.badge-feder, .badge-smiley {
    width: 1.6em;
    height: 1.6em;
    vertical-align: middle;
    margin: -0.5em 0.2em -0.4em 0;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.hero-lead {
    max-width: 620px;
    margin: 0 0 2rem;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-secondary:hover { border-color: var(--ink-soft); }

/* Features */
.features { padding: 4.5rem 0; }

.features h2, .cta h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
}

.feature-icon { font-size: 1.9rem; margin-bottom: 0.7rem; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.feature-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* CTA */
.cta {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 { margin-bottom: 0.8rem; }

.cta p {
    max-width: 560px;
    margin: 0 auto 1.8rem;
    color: var(--ink-soft);
}

/* Unterseiten (Impressum, Datenschutz) */
.page { padding: 3.5rem 0 4.5rem; }

/* Unterseite mit zweispaltigem Kopf (Konzept): etwas kleiner als der Startseiten-Hero */
.page-hero { padding: 3.5rem 0 2.5rem; }

.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }

.page-hero .hero-art { max-width: 420px; margin-left: auto; margin-right: auto; }

.page-after-hero { padding-top: 0.5rem; }

.page-after-hero .container > h2:first-child { margin-top: 0; }

/* Textspalte nicht zentrieren, sondern links an der Kante des Hero-Containers
   ausrichten — sonst springt der Text unter dem breiten Kopf nach innen. */
.page-after-hero.page .container-narrow {
    margin-left: max(0px, calc((100% - var(--container-max)) / 2));
    margin-right: 0;
}

.page h1 { font-size: 2.1rem; margin-bottom: 1.8rem; }

.page h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }

.page p { margin-bottom: 0.9rem; color: var(--ink); }

.page .page-lead { font-size: 1.1rem; color: var(--ink-soft); }

/* Gegenueberstellung auf der Konzept-Seite */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin: 2rem 0 1rem;
}

@media (max-width: 620px) {
    .compare-grid { grid-template-columns: 1fr; }
}

.compare-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
}

.compare-card-accent { border-color: var(--accent); }

.compare-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }

.compare-card ul { padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.96rem; }

.compare-card li { margin-bottom: 0.4rem; }

/* Preisseite: Aufzaehlungen und Preiskarten */
.page .page-list {
    padding-left: 1.2rem;
    margin: 0 0 1.2rem;
    color: var(--ink);
}

.page .page-list li { margin-bottom: 0.45rem; }

.page .price-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.7rem;
}

.page .price-tag {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
}

.page .price-unit {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.page .price-mwst {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 1.4rem;
}

.page .price-extra {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 0;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

/* Kontaktseite: Adressblock unter dem Einleitungstext */
.kontakt-adresse {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
}

.kontakt-mail {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Hinweis zur Browser-Speicherung: versteckt, bis das Skript ihn freigibt */
.cookie-hinweis {
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    max-width: 660px;
    margin: 0 auto;
    padding: 1.1rem 1.3rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.cookie-hinweis.open {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cookie-hinweis p {
    flex: 1 1 260px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.cookie-hinweis .btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.92rem;
}

/* Backend-Seite: abwechselnde Text/Screenshot-Bloecke */
.backend-block {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
    align-items: center;
    padding: 2.8rem 0;
}

.backend-block + .backend-block { border-top: 1px solid var(--line); }

.backend-block:nth-of-type(even) .backend-media { order: -1; }

.backend-block-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.backend-copy h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }

.backend-copy p { margin-bottom: 0.9rem; color: var(--ink-soft); }

.backend-copy p:last-child { margin-bottom: 0; }

/* Hochformatige Aufnahmen (Quittung) nicht auf Spaltenbreite aufblasen */
.backend-media-hoch { max-width: 330px; margin: 0 auto; }

.backend-media img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
    transition: transform 0.15s ease;
}

.backend-media img:hover { transform: scale(1.015); }

/* Lightbox-Galerie */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(10, 10, 12, 0.9);
}

.lightbox.open { display: flex; }

.lightbox figure {
    max-width: min(1100px, 90vw);
    margin: 0;
    text-align: center;
}

.lightbox img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    margin: 0 auto;
    border-radius: var(--radius);
}

.lightbox figcaption {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox button {
    flex: none;
    width: 2.8rem;
    height: 2.8rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 620px) {
    .lightbox { gap: 0; }
    .lightbox-prev { position: absolute; left: 0.6rem; z-index: 1; }
    .lightbox-next { position: absolute; right: 0.6rem; z-index: 1; }
}

.backend-media figcaption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-align: center;
}

.backend-outro {
    margin: 1.5rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

@media (max-width: 860px) {
    .backend-block { grid-template-columns: 1fr; gap: 1.4rem; padding: 2.2rem 0; }
    .backend-block:nth-of-type(even) .backend-media { order: 0; }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.6rem 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Desktop: Footer bleibt beim Scrollen immer am unteren Bildschirmrand sichtbar */
@media (min-width: 721px) {
    .site-footer {
        position: sticky;
        bottom: 0;
        background: var(--header-bg);
        backdrop-filter: blur(8px);
        z-index: 10;
        padding: 0.9rem 0;
    }
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 1.2rem; }

.site-footer a { color: var(--ink-soft); text-decoration: none; }

.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
    .hero { padding: 3.5rem 0 3rem; }
}

/* Testshop-Popup */
.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(10, 10, 12, 0.6);
}

.modal.open { display: flex; }

.modal-card {
    position: relative;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2rem 1.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-card h2 { font-size: 1.35rem; margin-bottom: 0.9rem; padding-right: 2rem; }

.modal-card p { margin-bottom: 0.9rem; }

.modal-card ul { padding-left: 1.2rem; margin-bottom: 0.9rem; }

.modal-card li { margin-bottom: 0.5rem; }

.modal-card code {
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    font-size: 0.95em;
    white-space: nowrap;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover { border-color: var(--ink-soft); }

.modal-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.modal-actions .btn { cursor: pointer; font-family: inherit; }

/* Mobile-Navigation */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: 1.5rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.menu-toggle:hover { border-color: var(--ink-soft); }

@media (max-width: 720px) {
    .menu-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.4rem 1.25rem 1.1rem;
        background: var(--header-bg);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }

    .site-header.nav-open .site-nav { display: flex; }

    .site-nav a {
        width: 100%;
        padding: 0.7rem 0;
        font-size: 1.05rem;
    }

    .site-nav .nav-cta {
        width: auto;
        margin-top: 0.5rem;
        padding: 0.5rem 1.1rem;
    }
}

/* Preisseite: Tabellen fuer Zusatzleistungen */
.page .price-subhead {
    font-size: 1.05rem;
    margin: 1.6rem 0 0.6rem;
}

.page .price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.2rem;
    font-size: 0.95rem;
}

.page .price-table th,
.page .price-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.55rem 0.8rem 0.55rem 0;
    border-bottom: 1px solid var(--line);
}

.page .price-table thead th {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.page .price-table tbody th { font-weight: 600; white-space: nowrap; }

.page .price-table td:last-child { color: var(--ink-soft); }

@media (max-width: 620px) {
    .page .price-table tbody th { white-space: normal; }
}
