:root {
    --background: #f6f1e8;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-solid: #fffdf8;
    --text: #29261f;
    --muted: #777064;
    --line: rgba(41, 38, 31, 0.12);
    --shadow: 0 24px 70px rgba(65, 55, 39, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(255, 255, 255, 0.95),
            transparent 28rem
        ),
        linear-gradient(145deg, #f4eee4, #faf7f1);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto 0;
    padding: 17px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 18px;
}

nav a {
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 100px);
    padding: 100px 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-small,
.section-label {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 48px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 13vw, 9rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero-text {
    max-width: 650px;
    color: #575147;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.75;
}

.hero-text p {
    margin: 0 0 22px;
}

.hero-highlight {
    color: var(--text);
    font-size: 1.18em;
    font-weight: 700;
}

.signature {
    margin-top: 38px !important;
    color: var(--text);
    font-style: italic;
}

.scroll-hint {
    margin-top: 60px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.scroll-hint span {
    color: var(--text);
    font-size: 1.35rem;
}

.cards-section {
    padding: 60px 0 120px;
    display: grid;
    gap: 42px;
}

.wisdom-card {
    position: relative;
    min-height: 520px;
    padding: clamp(34px, 7vw, 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(41, 38, 31, 0.08);
    border-radius: 34px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.wisdom-card::after {
    content: "";
    position: absolute;
    top: -100px;
    right: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.card-number {
    position: absolute;
    top: 32px;
    right: 38px;
    color: rgba(41, 38, 31, 0.30);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.card-title {
    position: relative;
    z-index: 1;
    margin: 0 0 34px;
    color: rgba(41, 38, 31, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card-text {
    position: relative;
    z-index: 1;
    max-width: 820px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4.7vw, 3.7rem);
    line-height: 1.32;
    letter-spacing: -0.035em;
}

.card-warm {
    background: #f3dfba;
}

.card-rose {
    background: #edd3cf;
}

.card-green {
    background: #d6e3d9;
}

.card-blue {
    background: #d9e3eb;
}

.card-sand {
    background: #e9dfcf;
}

.card-lavender {
    background: #e1d9e8;
}

.card-final {
    min-height: 720px;
    background: #312f2a;
    color: #fffaf0;
}

.card-final .card-title,
.card-final .card-number {
    color: rgba(255, 250, 240, 0.52);
}

.admin-intro,
.login-wrapper {
    padding: 90px 0 42px;
}

.admin-intro {
    max-width: 760px;
}

.admin-intro h1,
.login-panel h1 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    letter-spacing: -0.055em;
}

.admin-intro > p:last-child,
.login-description {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.login-wrapper {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.login-panel,
.admin-panel {
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.login-panel {
    width: min(520px, 100%);
}

.admin-panel {
    margin-bottom: 30px;
}

.admin-panel h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.form-stack {
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

button {
    border: 0;
    border-radius: 13px;
    padding: 13px 19px;
    background: #2f2c27;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button-secondary {
    background: #e2ddd4;
    color: var(--text);
}

.button-danger {
    background: #a14d49;
}

.admin-panel-heading,
.admin-item,
.admin-item-main,
.admin-actions,
.admin-meta {
    display: flex;
    align-items: center;
}

.admin-panel-heading {
    justify-content: space-between;
    gap: 20px;
}

.item-count {
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-item {
    justify-content: space-between;
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-item-main {
    gap: 18px;
}

.admin-item h3 {
    margin: 0 0 8px;
}

.admin-item p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.5;
}

.admin-order {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ece6dc;
    font-weight: 700;
}

.admin-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.admin-meta {
    gap: 8px;
    flex-wrap: wrap;
}

.admin-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eee9e0;
    color: var(--muted);
    font-size: 0.75rem;
}

.status-active {
    background: #dcebdc !important;
    color: #35613a !important;
}

.status-hidden {
    background: #eedada !important;
    color: #844342 !important;
}

.messages {
    padding-top: 24px;
    display: grid;
    gap: 10px;
}

.message {
    padding: 14px 16px;
    border-radius: 12px;
}

.message.success {
    background: #dcebdc;
}

.message.error {
    background: #eedada;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 50px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    text-align: center;
}

.empty-state {
    padding: 40px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 720px) {
    .site-header {
        border-radius: 20px;
    }

    .hero {
        padding-top: 70px;
    }

    .wisdom-card {
        min-height: 460px;
        border-radius: 25px;
    }

    .card-final {
        min-height: 650px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-item,
    .admin-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-actions button {
        width: 100%;
    }

    .admin-actions form {
        flex: 1;
    }
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 13px 19px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.button-edit-link {
    background: #2f2c27;
    color: #ffffff;
}

.button-secondary-link {
    background: #e2ddd4;
    color: var(--text);
}

.edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.96),
            rgba(239, 231, 219, 0.98)
        );
    opacity: 1;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.welcome-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-card {
    width: min(620px, 100%);
    text-align: center;
}

.welcome-small {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.welcome-card h1 {
    margin: 0 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.5rem, 15vw, 9rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.welcome-card > p:not(.welcome-small) {
    margin: 0 auto 32px;
    max-width: 480px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.65;
}

.welcome-card button {
    min-width: 190px;
    padding: 15px 24px;
}

.welcome-note {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.8rem;
}

.music-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    padding: 11px 16px;
    border: 1px solid rgba(41, 38, 31, 0.14);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.86);
    color: var(--text);
    box-shadow: 0 12px 35px rgba(41, 38, 31, 0.12);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
}

.music-toggle.is-playing {
    background: #312f2a;
    color: #fffaf0;
}

.hero-actions {
    margin-top: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.hero-actions .scroll-hint {
    margin-top: 0;
}

.calm-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.calm-page {
    min-height: calc(100vh - 150px);
    padding: 54px 0 90px;
}

.calm-back {
    display: inline-block;
    margin-bottom: 60px;
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.calm-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.calm-content h1 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.06em;
}

.calm-intro {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.7;
}

.breathing-stage {
    min-height: 410px;
    display: grid;
    place-items: center;
}

.breathing-circle {
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 0.95),
            rgba(201, 218, 211, 0.88)
        );
    box-shadow:
        0 30px 80px rgba(79, 104, 94, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transform: scale(0.82);
    transition:
        transform 4s ease-in-out,
        background 1s ease;
}

.breathing-circle span {
    margin-bottom: 8px;
    color: #4f625b;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.breathing-circle strong {
    color: #34483f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.8rem;
    font-weight: 400;
}

.breathing-circle.phase-inhale {
    transform: scale(1.28);
    transition-duration: 4s;
}

.breathing-circle.phase-hold {
    transform: scale(1.28);
    transition-duration: 0.3s;
}

.breathing-circle.phase-exhale {
    transform: scale(0.82);
    transition-duration: 6s;
}

.breathing-circle.phase-rest {
    transform: scale(0.82);
    transition-duration: 0.3s;
}

.breathing-message {
    min-height: 30px;
    margin: -28px 0 28px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.calm-finish {
    margin-top: 34px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
}

.calm-finish p {
    margin: 0 0 8px;
    color: var(--muted);
}

.calm-finish strong {
    display: block;
    margin-bottom: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

@media (max-width: 720px) {
    .music-toggle {
        right: 14px;
        bottom: 14px;
    }

    .breathing-stage {
        min-height: 350px;
    }

    .breathing-circle {
        width: 180px;
        height: 180px;
    }

    .breathing-circle.phase-inhale,
    .breathing-circle.phase-hold {
        transform: scale(1.22);
    }
}

.visit-stats {
    margin: 24px 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.visit-stat {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.visit-stat span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visit-stat strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 400;
}

.visit-list {
    display: grid;
    gap: 10px;
}

.visit-item {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.55);
}

.visit-item > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.visit-item span,
.visit-item small {
    color: var(--muted);
    font-size: 0.8rem;
}

.visit-item p {
    margin: 9px 0 4px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .visit-stats {
        grid-template-columns: 1fr;
    }

    .visit-item > div {
        flex-direction: column;
        gap: 5px;
    }
}

/* BEGIN BESUCHERSTATISTIK */

.visit-stats {
    margin: 24px 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.visit-stat {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.visit-stat span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visit-stat strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.visit-stat .visit-date {
    font-size: 1.05rem;
    line-height: 1.45;
}

.visit-list {
    display: grid;
    gap: 10px;
}

.visit-item {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.55);
}

.visit-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.visit-heading span,
.visit-item small {
    color: var(--muted);
    font-size: 0.8rem;
}

.visit-item p {
    margin: 9px 0 5px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .visit-stats {
        grid-template-columns: 1fr;
    }

    .visit-heading {
        flex-direction: column;
        gap: 5px;
    }
}

/* END BESUCHERSTATISTIK */

/* BEGIN RUHE-BUTTON-HERVORHEBUNG */

.calm-link {
    min-width: 280px;
    padding: 18px 30px;
    border: 1px solid rgba(70, 132, 170, 0.22);
    background: #cfe9f7;
    color: #234e66;
    box-shadow: 0 14px 36px rgba(69, 126, 160, 0.16);
    font-size: 1.05rem;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.calm-link:hover {
    background: #bee1f3;
    box-shadow: 0 18px 42px rgba(69, 126, 160, 0.22);
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .calm-link {
        width: 100%;
        min-width: 0;
        max-width: 340px;
        padding: 17px 22px;
    }
}

/* END RUHE-BUTTON-HERVORHEBUNG */

/* BEGIN MUSIK-UPLOAD */

.music-upload-description {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.65;
}

.music-upload-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.music-file-field {
    flex: 1;
    min-width: 280px;
}

.music-file-field input[type="file"] {
    padding: 12px;
    background: rgba(255, 255, 255, 0.88);
}

.music-upload-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.music-upload-note code {
    padding: 3px 7px;
    border-radius: 6px;
    background: #ebe5dc;
    color: var(--text);
}

@media (max-width: 720px) {
    .music-upload-form {
        align-items: stretch;
        flex-direction: column;
    }

    .music-file-field {
        width: 100%;
        min-width: 0;
    }

    .music-upload-form button {
        width: 100%;
    }
}

/* END MUSIK-UPLOAD */

/* BEGIN BESUCHERSTATISTIK V2 */

.visit-subheading {
    margin: 38px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 400;
}

.visit-human {
    border-left: 4px solid #8db8a0;
}

.visit-bot {
    border-left: 4px solid #c99986;
}

.bot-details {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.bot-details summary {
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.bot-list {
    margin-top: 18px;
}

/* END BESUCHERSTATISTIK V2 */

/* BEGIN MUSIKVERWALTUNG NEU */

.music-admin-panel {
    overflow: hidden;
}

.music-upload-description {
    max-width: 760px;
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.65;
}

.music-preview {
    margin-bottom: 26px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

.music-preview p {
    margin: 0 0 12px;
    font-weight: 700;
}

.music-preview audio {
    width: 100%;
    max-width: 650px;
}

.music-upload-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.music-file-field {
    flex: 1;
    min-width: 290px;
}

.music-file-field input[type="file"] {
    padding: 12px;
    background: rgba(255, 255, 255, 0.88);
}

.music-upload-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.music-upload-note code {
    padding: 3px 7px;
    border-radius: 6px;
    background: #ebe5dc;
    color: var(--text);
}

@media (max-width: 720px) {
    .music-upload-form {
        align-items: stretch;
        flex-direction: column;
    }

    .music-file-field {
        width: 100%;
        min-width: 0;
    }

    .music-upload-form button {
        width: 100%;
    }
}

/* END MUSIKVERWALTUNG NEU */
