/********** Pizzomunno – Basis: Design-Tokens, Typografie, Buttons, Section-Grundlagen **********/

/* =========================================================
   Design-Tokens (Corporate Identity)
   Farben stammen aus dem Logo: tiefes Waldgrün, Olivgrün, warmes Creme.
   Gold ist ein dezenter Akzent (Linien, Hervorhebungen, Preise auf dunkel).
   ========================================================= */

:root {
    /* Grün */
    --forest: #0c3a2c;
    --primary: #146c43;
    --primary-dark: #0f5132;
    --olive: #6b7f4a;

    /* Gold / Akzent */
    --accent: #c9973f;
    --accent-dark: #8f6522;
    --accent-soft: rgba(201, 151, 63, 0.14);

    /* Flächen */
    --cream: #f6ecd7;
    --cream-soft: #fbf7ee;
    --white: #ffffff;
    --dark: #0e2a21;

    /* Text */
    --text-main: #14221c;
    --text-muted: #5b6660;

    /* Linien */
    --border-soft: rgba(20, 34, 28, 0.12);
    --border-gold: rgba(201, 151, 63, 0.45);

    /* Form */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;

    --shadow-soft: 0 8px 24px rgba(12, 58, 44, 0.08);
    --shadow-medium: 0 16px 40px rgba(12, 58, 44, 0.14);
    --shadow-strong: 0 24px 64px rgba(12, 58, 44, 0.24);

    /* Typografie */
    --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;

    /* Layout */
    --header-height: 76px;
    --section-space: clamp(4rem, 8vw, 7rem);

    /* Schwebende Buttons (Megafon / Cookie) */
    --floating-size: 52px;
    --floating-bottom: 28px;
    --floating-side: 10px;

    /* Overlays (Cookie-Hinweis, News-Popup) */
    --nw-consent-text: var(--text-main);
    --nw-consent-bg: var(--white);
}

/* =========================================================
   Reset & Typografie
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text-main);
    background: var(--cream-soft);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--forest);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
}

p {
    margin-top: 0;
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.visually-hidden-focusable:focus {
    z-index: 10000;
}

/* Hilfsklassen, die bootstrap.min.css bereits mit anderem Farbwert liefert */
.text-primary {
    color: var(--primary) !important;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
    padding: var(--section-space) 0;
}

.section--cream {
    background: var(--cream);
}

.section--forest {
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 15% 0%, rgba(20, 108, 67, 0.45), transparent 45%),
        var(--forest);
}

.section--forest h2,
.section--forest h3 {
    color: var(--white);
}

.section--forest p {
    color: rgba(255, 255, 255, 0.78);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    text-align: left;
}

.section-head h2 {
    margin-bottom: 1rem;
}

.section-head p {
    margin-bottom: 0;
    font-size: 1.08rem;
}

/* Kleine Überschrift über dem Titel, mit Goldlinie */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--accent);
}

.section-head:not(.section-head--left) .eyebrow::after {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--accent);
}

.section--forest .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
    color: var(--accent);
}

/* Zierlinie mit Raute */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--accent);
}

.ornament::before,
.ornament::after {
    content: "";
    width: 56px;
    height: 1px;
    background: var(--border-gold);
}

.ornament i {
    font-size: 0.6rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.link-arrow i {
    transition: transform 0.2s ease;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white);
    background: var(--forest);
    border-color: var(--forest);
    box-shadow: var(--shadow-medium);
}

.btn-gold {
    color: var(--forest);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-gold:hover,
.btn-gold:focus {
    color: var(--forest);
    background: #dcae58;
    border-color: #dcae58;
    box-shadow: 0 12px 28px rgba(201, 151, 63, 0.35);
}

.btn-outline-light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--forest);
    background: var(--white);
    border-color: var(--white);
}

.btn-outline-dark {
    color: var(--forest);
    background: transparent;
    border-color: var(--forest);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    color: var(--white);
    background: var(--forest);
}

.btn-group-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* =========================================================
   Scroll-Reveal (nur aktiv, wenn JS läuft – siehe js/site.js)
   ========================================================= */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .btn:hover {
        transition: none;
        transform: none;
    }
}

/* =========================================================
   Scrollbar (nur Desktop mit Maus – auf Touch-Geräten würde eine Custom-Scrollbar
   die Seitenbreite verfälschen)
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: var(--cream-soft);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border: 2px solid var(--cream-soft);
        border-radius: 999px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--forest);
    }
}

/* =========================================================
   Mobile Feinabstimmung
   ========================================================= */

@media (max-width: 575.98px) {
    .container {
        padding-left: 24px; /* = halber g-5-Gutter, sonst ragen Zeilen über den Rand */
        padding-right: 24px;
    }

    .section-head {
        margin-bottom: 2.5rem;
    }

    .btn-group-cta .btn {
        width: 100%;
    }
}

/* Überschriften dürfen sehr lange Wörter umbrechen, statt die Seite zu verbreitern.
   Der Markenname bleibt über .brand-name ungetrennt. */
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word; /* lange Wörter */
}

/* =========================================================
   Kompakte Mobilansicht: weniger Abstand, kleinere Überschriften
   ========================================================= */

@media (max-width: 575.98px) {
    :root {
        --section-space: 2.75rem;
    }

    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    h2 {
        font-size: clamp(1.55rem, 6.8vw, 2rem);
    }

    h3 {
        font-size: 1.2rem;
    }

    .section-head {
        margin-bottom: 1.75rem;
    }

    .section-head p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.4rem;
    }

    .row.g-5 {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 1.75rem;
    }

    .row.g-4 {
        --bs-gutter-y: 1.25rem;
    }
}

/* Schwebende Buttons (Cookie links, Info rechts): auf dem Handy noch näher am Rand */
@media (max-width: 575.98px) {
    :root {
        --floating-side: 6px;
        --floating-bottom: 10px;
    }
}
