/* Grundlegende Stilrichtungen */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/playfair-display.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/source-serif-4.woff2') format('woff2');
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff8eb; /* Sehr helles, warmes Weiß/Creme für den Papier-Look */
    font-family: 'Source Serif 4', serif;
    color: #333;
}

body.modal-open {
    overflow: hidden;
}

.page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background-image: url('img/bg_cut.avif');
    background-size: 100% auto;
    background-position: center 40px;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Navigation & Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 80px;
    background-color: transparent;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-quote-trigger {
    cursor: pointer;
}

.logo-icon-wrap {
    position: relative;
    width: 300px;
    margin-left: -3px;
}

.logo-quote-trigger:focus-visible {
    outline: 2px solid #799e86;
    outline-offset: 6px;
    border-radius: 8px;
}

.logo-icon {
    width: 100%;
    margin-left: 0;
    display: block;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif; /* Serifenschrift für philosophischen Touch */
    font-size: 4.0rem;
    font-weight: 400;
    color: #2C3539;
    margin-bottom: -8px;
    margin-top: -15px;
}

.logo-text p {
    font-size: 15px;
    color: #555;
    letter-spacing: -0.5px;
    font-weight: bold;
    margin-left: 2px;
}

.logo-quote-trigger.is-glowing .logo-icon {
    animation: logoIconGlow 2.3s cubic-bezier(0.22, 0.68, 0.15, 1);
}

@keyframes logoIconGlow {
    0%,
    100% {
        filter: none;
        transform: scale(1) translateY(0);
    }
    28% {
        filter: drop-shadow(0 0 44px rgba(121, 158, 134, 0.95)) drop-shadow(0 0 18px rgba(226, 240, 232, 0.9)) brightness(1.18) saturate(1.22);
        transform: scale(1.065) translateY(-7px);
    }
}


.nav-links a {
    font-family: 'Playfair Display', serif;
    text-decoration: none;
    color: #799e86;
    margin-left: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-weight: bold;
}

.nav-links a:hover {
    color: #393939; /* Dezentes Salbeigrün für den Hover-Effekt */
}

/* Hero Section (Der Hauptbereich mit der Tuschezeichnung) */
.hero-section {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 80px;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Der Button */
.cta-button {
    background-color: #799e86; /* Sanftes, natürliches Grün */
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px; /* Abgerundete Ecken für Weichheit */
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #718076;
    transform: translateY(-2px); /* Leichtes Anheben beim Drüberfahren */
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background-color: #799e86;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.3s ease;
    z-index: 1000;
}

.floating-controls {
    position: fixed;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.music-toggle {
    --music-icon-circle-size: 30px;
    --music-hover-circle-size: 42px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background-color: #799e86;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.25s ease, background-color 0.3s ease, opacity 0.25s ease;
    flex-shrink: 0;
}

.quote-toggle {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background-color: #799e86;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.music-toggle.is-expanded {
    width: auto;
    border-radius: 999px;
    justify-content: flex-start;
    gap: 0;
    padding: 0 8px 0 12px;
}

.music-toggle.is-expanded .music-track-badge {
    margin-right: 13px;
}

.music-toggle.is-expanded .music-main-icon {
    margin-right: 10px;
}

.music-track-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #4b5a54;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
    font-weight: bold;
    font-family: 'Source Serif 4', serif;
    flex-shrink: 0;
}

.music-track-number {
    position: relative;
    top: -1px;
    line-height: 1;
}

.music-main-icon {
    width: var(--music-hover-circle-size);
    height: var(--music-hover-circle-size);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.music-next-icon {
    width: var(--music-hover-circle-size);
    height: var(--music-hover-circle-size);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.music-toggle.is-expanded .music-next-icon {
    margin-left: 0;
    margin-right: 0;
}

.music-toggle.is-expanded .music-main-icon:hover,
.music-toggle.is-expanded .music-next-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.music-toggle:hover {
    background-color: #718076;
    transform: translateY(-2px);
}

.quote-toggle:hover {
    background-color: #718076;
    transform: translateY(-2px);
}

.music-toggle:focus-visible {
    outline: 2px solid #2C3539;
    outline-offset: 2px;
}

.quote-toggle:focus-visible {
    outline: 2px solid #2C3539;
    outline-offset: 2px;
}


.back-to-top:hover {
    background-color: #718076;
}

.back-to-top:focus-visible {
    outline: 2px solid #2C3539;
    outline-offset: 2px;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.content-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 100px;
    line-height: 1.75;
    font-size: 1.08rem;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 14px;
    font-size: 2rem;
    font-weight: 500;
    color: #2C3539;
}

.content-section h3 {
    font-family: 'Playfair Display', serif;
    margin: 38px 0 18px;
}

.content-section p {
    margin-bottom: 16px;
}

.content-section ul {
    margin: 8px 0 24px 24px;
}

.content-section li {
    margin-bottom: 12px;
}

.quotation {
    margin: 20px 0 24px 36px;
    padding-left: 18px;
    border-left: 2px solid #B9C3BC;
    font-style: italic;
    color: #2C3539;
}

.section-alt {
    background-color: #f1ebde;
    border-radius: 16px;
    padding-top: 48px;
    padding-bottom: 72px;
    margin-bottom: 72px;
}

.section-image {
    max-width: 100%;
    text-align: center;
    width: 60%;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 32px 36px;
    color: #56615c;
    border-top: 1px solid rgba(121, 158, 134, 0.25);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #2C3539;
}

.quote-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(38, 44, 40, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1320;
}

.quote-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.quote-overlay__box {
    position: relative;
    width: min(920px, 100%);
    padding: 34px 84px;
    color: #f8f4ea;
}

.quote-overlay__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.quote-overlay__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quote-overlay__nav--prev {
    left: 0;
}

.quote-overlay__nav--next {
    right: 0;
}

.quote-overlay__text {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.35;
    font-style: italic;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.quote-overlay__text.is-swapping {
    opacity: 0;
    transform: translateY(6px);
}

.quote-overlay__meta {
    margin-top: 18px;
    text-align: center;
    font-family: 'Source Serif 4', serif;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    color: rgba(248, 244, 234, 0.82);
}

.legal-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1400;
}

.legal-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 22, 0.52);
}

.legal-modal__dialog {
    position: relative;
    width: min(760px, calc(100% - 28px));
    max-height: 86vh;
    background: #fcfcfb;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.legal-modal__close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: #56615c;
    background: transparent;
    cursor: pointer;
}

.legal-modal__close:hover {
    background: rgba(121, 158, 134, 0.12);
}

.legal-modal__content {
    max-height: 86vh;
    overflow-y: auto;
    padding: 54px 26px 28px;
}

.legal-block + .legal-block {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(121, 158, 134, 0.24);
}

.legal-block h2 {
    margin-bottom: 14px;
    font-size: 1.65rem;
    color: #2C3539;
}

.legal-block p {
    margin-bottom: 12px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .page-container {
        background-position: center 142px;
    }

    .navbar {
        padding: 28px 32px;
    }

    .logo-icon-wrap {
        width: 247px;
        margin-left: -1px;
    }

    .logo-text h1 {
        font-size: 3.2rem;
    }

    .nav-links {
        gap: 16px;
    }

    .hero-section {
        height: 62vh;
        padding-bottom: 64px;
    }

    .content-section {
        padding: 56px 22px 84px;
    }

    .section-alt {
        padding-top: 42px;
        padding-bottom: 64px;
        margin-bottom: 62px;
    }
}

@media (max-width: 768px) {
    .page-container {
        background-position: center 192px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 20px 16px;
    }

    .logo-container {
        align-items: center;
        margin-bottom: 6px;
    }

    .logo-icon-wrap {
        width: 181px;
        margin-left: 0;
    }

    .logo-text h1 {
        font-size: 2.4rem;
        margin-top: -8px;
        margin-bottom: -2px;
    }

    .logo-text p {
        font-size: 0.86rem;
        letter-spacing: 0;
        margin-left: 0;
    }

    .logo-text {
        text-align: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px 18px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .hero-section {
        height: 52vh;
        min-height: 300px;
        padding-bottom: 48px;
    }

    .cta-button {
        display: inline-block;
        padding: 14px 32px;
        font-size: 1rem;
    }

    .content-section {
        padding: 44px 18px 72px;
        font-size: 1rem;
        line-height: 1.68;
    }

    .content-section h3 {
        margin: 30px 0 14px;
        font-size: 1.35rem;
    }

    .content-section h2 {
        font-size: 1.7rem;
    }

    .content-section ul {
        margin-left: 20px;
    }

    .quotation {
        margin-left: 16px;
        padding-left: 12px;
    }

    .section-alt {
        border-radius: 12px;
        padding-top: 36px;
        padding-bottom: 52px;
        margin-bottom: 48px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 18px 26px;
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 14px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }

    .floating-controls {
        top: 16px;
        right: 16px;
    }

    .music-toggle {
        --music-icon-circle-size: 27px;
        --music-hover-circle-size: 38px;
    }

    .music-toggle,
    .quote-toggle {
        width: 50px;
        height: 50px;
    }

    .music-toggle.is-expanded {
        width: auto;
        padding: 0 8px 0 11px;
    }

    .music-toggle.is-expanded .music-track-badge {
        margin-right: 10px;
    }

    .music-toggle.is-expanded .music-main-icon {
        margin-right: 7px;
    }

    .music-track-badge {
        width: 27px;
        height: 27px;
        font-size: 0.96rem;
    }

    .legal-modal__dialog {
        width: calc(100% - 20px);
        max-height: 90vh;
    }

    .legal-modal__content {
        padding: 48px 18px 24px;
    }

    .legal-block h2 {
        font-size: 1.45rem;
    }

    .quote-overlay__box {
        padding: 20px 18px 72px;
    }

    .quote-overlay__nav {
        top: auto;
        bottom: 0;
        transform: none;
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
    }

    .quote-overlay__nav--prev {
        left: calc(50% - 52px);
    }

    .quote-overlay__nav--next {
        right: calc(50% - 52px);
    }

    .quote-overlay__text {
        font-size: clamp(1.45rem, 6.2vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .page-container {
        background-position: center 192px;
    }

    .logo-text h1 {
        font-size: 2rem;
    }

    .hero-section {
        height: 46vh;
        min-height: 260px;
        padding-bottom: 36px;
    }

    .cta-button {
        padding: 12px 24px;
    }

    .content-section {
        padding: 34px 14px 56px;
    }

    .content-section h2 {
        font-size: 1.52rem;
    }

    .quotation {
        margin-left: 8px;
    }

    .back-to-top {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .floating-controls {
        top: 14px;
        right: 14px;
    }

    .music-toggle {
        --music-icon-circle-size: 24px;
        --music-hover-circle-size: 34px;
    }

    .music-toggle,
    .quote-toggle {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .quote-toggle {
        font-size: 1.2rem;
    }

    .music-toggle.is-expanded {
        width: auto;
        padding: 0 7px 0 9px;
    }

    .music-toggle.is-expanded .music-track-badge {
        margin-right: 8px;
    }

    .music-toggle.is-expanded .music-main-icon {
        margin-right: 5px;
    }

    .music-track-badge {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }

    .music-track-number {
        top: -0.5px;
    }

    .music-main-icon {
        font-size: 1.05rem;
    }

    .music-next-icon {
        font-size: 0.95rem;
    }

    .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .legal-modal__close {
        right: 8px;
        top: 8px;
    }

    .legal-modal__content {
        padding: 44px 14px 18px;
    }

    .quote-overlay {
        padding: 12px;
    }
}

a {
    color: #799e86;
    font-weight: bold;
}
