/* ========================================
   TC Stockheim CMS – zentraler Grundstil
   ======================================== */

@font-face {
    font-family: "DM Sans";
    src: url("fonts/DMSans.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("fonts/PlayfairDisplay.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("fonts/PlayfairDisplay-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --red: #e63217;
    --red-dark: #bd2410;
    --black: #151515;
    --text: #171717;
    --gray: #737373;
    --line: #dddddd;
    --pink: #fff3f3;
    --soft: #f6f6f4;
    --white: #ffffff;

    --club-red: var(--red);
    --club-red-dark: var(--red-dark);
    --text-muted: var(--gray);
    --page-bg: var(--pink);
    --surface: var(--white);
    --border: var(--line);
    --radius: 3px;
    --shadow: 0 12px 35px rgba(21, 21, 21, .07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "DM Sans", Arial, Helvetica, sans-serif;
    background:
        linear-gradient(
            rgba(15, 15, 15, 0.58),
            rgba(15, 15, 15, 0.58)
        ),
        url("bilder/tennisanlage-1.webp") center / cover no-repeat;
    background-attachment: fixed;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Gemeinsamer Tennisplatz-Hintergrund */

.cms-background {
    background:
        linear-gradient(
            rgba(15, 15, 15, 0.58),
            rgba(15, 15, 15, 0.58)
        ),
        url("bilder/tennisanlage-1.webp") center / cover no-repeat;
    background-attachment: fixed;
}

/* Gemeinsame transparente Hauptbox */

.cms-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.70);
    border-top: 5px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Gemeinsames Logo an der oberen rechten Ecke */

.cms-logo-link {
    position: absolute;
    top: -24px;
    right: -24px;
    z-index: 2;
    display: block;
    width: 76px;
    height: 76px;
}

.cms-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Gemeinsame Buttons */

.cms-button {
    border: 1px solid var(--red);
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.cms-button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

/* Responsive-Grundregeln */

@media (max-width: 700px) {
    .cms-background {
        background-attachment: scroll;
    }

    .cms-logo-link {
        top: -18px;
        right: -12px;
        width: 64px;
        height: 64px;
    }
}