/* ═══════════════════════════════════════════════════════════════
   SAMSARA BESTATTUNGEN® – Hauptstylesheet
   Autor: Samsara Bestattungen®, Magdeburg
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────
   SCHRIFTARTEN (lokal, DSGVO-konform)
─────────────────────────────────────────── */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/CormorantGaramond-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/CormorantGaramond-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/CormorantGaramond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/CormorantGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('fonts/Jost-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('fonts/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('fonts/Jost-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ───────────────────────────────────────────
   CSS-VARIABLEN
─────────────────────────────────────────── */
:root {
    --page-bg:   #ede0d8;   /* warmes Rosé-Beige – Basis         */
    --page-mid:  #e4d4c8;   /* etwas wärmer, leicht rötlich      */
    --page-deep: #d6c2b2;   /* tiefster Ton, warm terrakotta     */
    --dark:      #2a1812;   /* fast Schwarz mit Rotunterton      */
    --brown:     #5c2a1e;   /* Kastanienbraun – Hauptfarbe       */
    --gold:      #8b3a2a;   /* Dunkelrot-Braun für Akzente       */
    --gold-lt:   #a85040;   /* helleres Rostrot für Kursivtext  */
    --text:      #3a1e16;   /* Fließtext, warm dunkelrot         */
    --text-mid:  #6a3e32;   /* sekundärer Text                   */
    --mist:      #9a7870;   /* dezentes Altrosa-Grau             */
    --card-bg:   rgba(252, 246, 242, 0.75);  /* Karten, warm weiß */
    --card-bdr:  rgba(140, 80, 60, 0.15);   /* zarte Rahmenlinie */
    --white:     #fdf8f5;   /* reines Crème-Weiß mit Rothauch   */
    --nav-h:     70px;
}

/* ───────────────────────────────────────────
   RESET & BASISSTILE
─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Schriftgröße-Basis: alle rem-Werte der Seite skalieren hiermit.
       Wird per JavaScript durch den Schriftgrößen-Schalter angepasst. */
    font-size: calc(16px * var(--font-scale, 1));
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background-color: var(--page-bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ───────────────────────────────────────────
   HINTERGRUND-GRADIENT
─────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
            ellipse 110% 65% at 50% 0%,
            #f8ede6 0%,
            var(--page-bg) 55%,
            var(--page-deep) 100%
    );
    pointer-events: none;
}

/* ───────────────────────────────────────────
   NAVIGATION
─────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(237, 224, 216, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(138, 96, 48, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    padding-top: 2px;
    padding-left: 15px;
    text-transform: none;
    font-style: italic;
    color: var(--mist);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    padding: 0.4rem 0.65rem;
    border-radius: 2px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(138, 96, 48, 0.08);
}

.nav-cta {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em;
    color: var(--white) !important;
    background: var(--gold) !important;
    padding: 0.45rem 1rem !important;
    border-radius: 2px;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--brown) !important;
}

/* Burger-Menü */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--brown);
    transition: all 0.3s;
}

/* ───────────────────────────────────────────
   SEITEN-HERO
─────────────────────────────────────────── */
.page-hero {
    padding: 4rem 2rem 2.5rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.page-hero .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--gold-lt);
}

.page-hero .lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 580px;
    margin: 0 auto;
}

/* ───────────────────────────────────────────
   TRENNLINIE MIT DIAMANT
─────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: min(300px, 80%);
    margin: 1.5rem auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.divider-diamond {
    width: 30px;
    height: 15px;
    color: var(--gold);
    background-image: url("img/HalbMond.png");
    background-repeat: no-repeat;        /* verhindert Wiederholung */
    background-position: center center;  /* horizontal + vertikal zentriert */
    background-size: contain;            /* optional: skaliert das Bild passend */
    opacity: 0.6;
}

/* ───────────────────────────────────────────
   INHALTS-WRAPPER
─────────────────────────────────────────── */
.content-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    flex: 1;
}

/* ───────────────────────────────────────────
   KARTEN & SEKTIONEN
─────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-bdr);
    border-radius: 4px;
    padding: 2rem 2.2rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 3px 20px rgba(90, 62, 34, 0.07);
    text-align: justify;
}

.card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--brown);
    margin: 1.5rem 0 0.6rem;
}

.card p {
    font-size: 0.96rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 0.9rem;
}

.card ul,
.card ol {
    padding-left: 1.4rem;
    margin-bottom: 0.9rem;
}

.card li {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 0.3rem;
}

.card strong {
    color: var(--dark);
    font-weight: 500;
}

/* Zweispaltiges Raster */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

/* ───────────────────────────────────────────
   BILD-PLATZHALTER
─────────────────────────────────────────── */
.img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(138, 96, 48, 0.1), rgba(90, 62, 34, 0.08));
    border: 1px dashed rgba(138, 96, 48, 0.3);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mist);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.5rem 0;
    min-height: 180px;
}

.img-placeholder svg {
    opacity: 0.35;
    margin-bottom: 0.5rem;
}

.img-placeholder.portrait { aspect-ratio: 3 / 4; }
.img-placeholder.wide     { aspect-ratio: 16 / 9; }

/* ───────────────────────────────────────────
   ECHTE BILDER (.img-wrap)
─────────────────────────────────────────── */

.img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 3px;
    margin: 1.2rem 0;
    background: rgba(140, 80, 60, 0.06);
}

.img-wrap.wide     { aspect-ratio: 16 / 9; }
.img-wrap.portrait { aspect-ratio: 3 / 4; }
.img-wrap.square   { aspect-ratio: 1 / 1; }

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.img-wrap:hover img {
    transform: scale(1.03);
}

/* ───────────────────────────────────────────
   PREISBOXEN
─────────────────────────────────────────── */
.price-box {
    background: var(--card-bg);
    border: 1px solid var(--card-bdr);
    border-radius: 4px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 20px rgba(90, 62, 34, 0.07);
}

.price-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.price-box .price-sub {
    font-size: 0.78rem;
    color: var(--mist);
    letter-spacing: 0.05em;
    margin-bottom: 1.1rem;
}

.price-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.price-box li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-mid);
    padding-left: 1.2rem;
    position: relative;
}

.price-box li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 1.4;
}

.price-box .price-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-bdr);
}

/* ───────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.75rem 1.6rem;
    border-radius: 2px;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

/* ───────────────────────────────────────────
   KONTAKTLEISTE
─────────────────────────────────────────── */
.contact-bar {
    background: var(--card-bg);
    border: 1px solid var(--card-bdr);
    border-radius: 4px;
    padding: 2rem 2.2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 3px 20px rgba(90, 62, 34, 0.07);
}

.contact-bar .label {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}

.contact-bar .contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.contact-bar a:not(.btn) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s;
}

.contact-bar a:not(.btn):hover {
    color: var(--gold);
}

.contact-bar .btn-primary {
    color: var(--white);
}

.contact-bar .btn-primary:hover {
    color: var(--white);
}

.contact-bar .btn-outline:hover {
    color: var(--white);
}

.contact-bar .separator {
    width: 1px;
    height: 20px;
    background: var(--card-bdr);
}

/* ───────────────────────────────────────────
   FAQ AKKORDEON
─────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--card-bdr);
    padding: 1rem 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--card-bdr);
}

.faq-q {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem 0;
    user-select: none;
}

.faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    font-size: 0.93rem;
    line-height: 1.85;
    color: var(--text-mid);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-a {
    max-height: 600px;
    padding-top: 0.8rem;
}

/* ───────────────────────────────────────────
   TEAM-KARTE
─────────────────────────────────────────── */
.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-bdr);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(90, 62, 34, 0.07);
    text-align: justify;
}

.team-card .img-placeholder {
    margin: 0;
    border-radius: 0;
    border: none;
    aspect-ratio: 1 / 1;
}

.team-card .team-info {
    padding: 1.4rem 1.6rem;
}

.team-card .team-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.team-card .team-role {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.team-card .team-bio {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-mid);
}

/* ───────────────────────────────────────────
   FORMULAR
─────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 248, 235, 0.8);
    border: 1px solid var(--card-bdr);
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.93rem;
    color: var(--dark);
    transition: border-color 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-lt);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-mid);
    cursor: pointer;
}

.radio-group input,
.checkbox-group input {
    width: auto;
    padding: 0;
    accent-color: var(--gold);
}

.form-note {
    font-size: 0.78rem;
    color: var(--mist);
    margin-top: 0.4rem;
}

.form-success {
    background: rgba(138, 96, 48, 0.1);
    border: 1px solid rgba(138, 96, 48, 0.3);
    border-radius: 3px;
    padding: 1.2rem 1.5rem;
    color: var(--brown);
    font-size: 0.94rem;
    margin-bottom: 1.5rem;
}

/* ───────────────────────────────────────────
   FOOTER
─────────────────────────────────────────── */
.site-footer {
    background: rgba(90, 62, 34, 0.08);
    border-top: 1px solid rgba(138, 96, 48, 0.2);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-grid {
    max-width: 900px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--brown);
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.35rem;
}

.footer-col a {
    font-size: 0.82rem;
    color: var(--mist);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-col p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--mist);
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(138, 96, 48, 0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: rgba(122, 104, 80, 0.6);
    letter-spacing: 0.06em;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ───────────────────────────────────────────
   ANIMATIONEN
─────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim    { animation: fadeUp 0.7s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }

/* ───────────────────────────────────────────
   RESPONSIVE – TABLET (max 768px)
─────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(237, 224, 216, 0.97);
        backdrop-filter: blur(12px);
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(138, 96, 48, 0.18);
        gap: 0.2rem;
    }

    .nav-burger {
        display: flex;
    }

    .site-nav {
        position: relative;
    }

    .card {
        padding: 1.5rem;
    }

    .contact-bar .separator {
        display: none;
    }
}

/* ───────────────────────────────────────────
   RESPONSIVE – MOBIL (max 480px)
─────────────────────────────────────────── */
@media (max-width: 480px) {
    .price-box {
        padding: 1.3rem 1.4rem;
    }

    .page-hero {
        padding: 2.5rem 1rem 1.5rem;
    }
}
/* ───────────────────────────────────────────
   SCHRIFTGRÖSSEN-SCHALTER
─────────────────────────────────────────── */
.font-scaler {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-bdr);
    border-radius: 30px;
    padding: 0.4rem 0.7rem;
    box-shadow: 0 4px 16px rgba(90, 40, 20, 0.15);
    backdrop-filter: blur(8px);
}

.font-scaler__label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mist);
    margin-right: 0.2rem;
}

.font-scaler__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--card-bdr);
    background: transparent;
    color: var(--brown);
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    font-family: 'Jost', sans-serif;
}

.font-scaler__btn:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.font-scaler__btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

@media (max-width: 480px) {
    .font-scaler {
        bottom: 1rem;
        right: 1rem;
        padding: 0.3rem 0.5rem;
    }
}