.futsch-intern-user-bar {
    position: relative;
    z-index: 99999;
    width: 100%;
    box-sizing: border-box;
    background: #111111;
    color: #ffffff;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.futsch-intern-user-bar-inner {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    max-width: calc(var(--wp--style--global--wide-size, 1340px) + 2 * var(--wp--style--root--padding-left, 30px));
    margin: 0 auto;
    padding: 9px var(--wp--style--root--padding-left, 30px);
}

.futsch-intern-user-bar a {
    color: #ffffff;
    text-decoration: none;
}

.futsch-intern-user-bar-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.futsch-intern-user-bar-hint svg {
    flex: none;
    color: #e72782;
}

.futsch-intern-user-bar-user a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.futsch-intern-user-bar a:hover,
.futsch-intern-user-bar a:focus {
    color: #ffed00;
}

@media (max-width: 600px) {
    .futsch-intern-user-bar-inner {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Schloss im Header: gefüllt, solange man im internen Bereich angemeldet ist */
.futsch-is-intern .cf-intern-icon {
    border-color: #e72782;
    background: #e72782;
    color: #ffffff;
}

.futsch-is-intern .cf-intern-icon:hover {
    border-color: #111111;
    background: #111111;
}


.futsch-intern-login-error {
    margin: 0 0 1em;
    padding: 10px 14px;
    border-radius: 4px;
    background: #fdeef5;
    color: #111111;
    border: 1px solid #e72782;
}


/* ------------------------------------------------------------------
 * Login-Seite im café-futsch-Stil (weiße Fläche, Karte mit schwarzem Rand)
 * ------------------------------------------------------------------ */

body.futsch-login-page {
    overflow-x: clip;
}

/* Abstände und Seitentitel des Themes ausblenden – die Karte hat ihre eigene Überschrift */
body.futsch-login-page main {
    margin-top: 0 !important;
}

body.futsch-login-page main > .wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.futsch-login-page .wp-block-post-title {
    display: none;
}

body.futsch-login-page .wp-block-post-content {
    margin-top: 0 !important;
}

.futsch-login {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: none !important;
    min-height: 560px;
    margin: 0 calc(50% - 50vw) !important;
    padding: 80px 20px;
    background: #ffffff;
    font-family: Manrope, system-ui, sans-serif;
}

.futsch-login-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    padding: 48px 44px;
    border: 2px solid #111111;
    border-radius: 20px;
    background: #ffffff;
    color: #111111;
}

.futsch-login-card p {
    margin: 0;
}

.futsch-login-kicker {
    color: #e72782;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.futsch-login-card .futsch-login-title {
    margin: 10px 0 0;
    color: #111111;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.futsch-login-text {
    margin-top: 10px !important;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.45;
}

.futsch-login-card .futsch-intern-login-error {
    margin: 22px 0 0;
    padding: 10px 14px;
    border: 0;
    border-left: 4px solid #e72782;
    border-radius: 0;
    background: #fdeef5;
    font-size: 15px;
}

.futsch-login-card form {
    margin-top: 26px;
}

.futsch-login-card .login-username,
.futsch-login-card .login-password {
    margin: 0 0 16px;
}

.futsch-login-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.futsch-login-card input[type="text"],
.futsch-login-card input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f2f2f2;
    color: #111111;
    font: inherit;
    font-size: 18px;
}

.futsch-login-card input[type="text"]:focus,
.futsch-login-card input[type="password"]:focus {
    border-color: #111111;
    outline: none;
    background: #ffffff;
}

.futsch-login-card .login-submit,
.futsch-login-submit {
    margin-top: 28px !important;
}

.futsch-login-card #wp-submit,
.futsch-login-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.futsch-login-card #wp-submit:hover,
.futsch-login-button:hover {
    background: #e72782;
    color: #ffffff;
}

.futsch-login-card #wp-submit:focus-visible,
.futsch-login-button:focus-visible {
    outline: 3px solid #e72782;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .futsch-login {
        align-items: flex-start;
        min-height: 0;
        padding: 40px 16px 56px;
    }

    .futsch-login-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .futsch-login-card .futsch-login-title {
        font-size: 36px;
    }

    .futsch-login-card input[type="text"],
    .futsch-login-card input[type="password"] {
        font-size: 16px; /* verhindert Zoom auf dem iPhone */
    }
}



/* ------------------------------------------------------------------
 * Interne Startseite als Dashboard (Seite „intern“)
 * ------------------------------------------------------------------ */

body.futsch-intern-page main {
    margin-top: 0 !important;
}

body.futsch-intern-page main > .wp-block-group {
    padding-top: 56px !important;
}

body.futsch-intern-page .wp-block-post-title {
    display: none;
}

body.futsch-intern-page .wp-block-post-content {
    margin-top: 0 !important;
}

.cf-dash {
    font-family: Manrope, system-ui, sans-serif;
}

.cf-dash p {
    margin: 0;
}

/* Kopf: Begrüßung links, Terminkarte rechts */
.cf-dash-kopf {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
}

.cf-dash-gruss {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cf-dash-kicker {
    color: #e72782;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cf-dash .cf-dash-titel {
    margin: 10px 0 0;
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.cf-dash-intro {
    margin-top: 16px !important;
    font-size: 20px;
    font-weight: 300;
}

.cf-dash-termin {
    padding: 26px;
    border-radius: 4px;
    background: #e72782;
    color: #ffffff;
}

.cf-dash-termin .ft-hero-vor {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cf-dash-termin .ft-hero-datum {
    margin-top: 8px !important;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cf-dash-termin .ft-hero-zeit {
    margin-top: 6px !important;
    font-size: 17px;
}

.cf-dash-termin .wp-block-buttons {
    margin-top: 18px !important;
}

.cf-dash .wp-block-button__link {
    padding: 12px 24px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.cf-dash .wp-block-button__link:hover {
    background: #ffffff;
    color: #111111;
}

/* Kacheln */
.cf-kacheln {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px !important;
}

.cf-kachel {
    position: relative;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    margin: 0 !important;
    padding: 60px 22px 22px;
    border-radius: 4px;
    background: #f2f2f2;
    color: #111111;
    transition: transform 0.15s ease;
}

.cf-kachel::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 22px;
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: var(--cf-icon) center / contain no-repeat;
    mask: var(--cf-icon) center / contain no-repeat;
}

.cf-kachel-titel {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cf-kachel-titel a {
    color: inherit;
    text-decoration: none;
}

/* ganze Kachel klickbar */
.cf-kachel-titel a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.cf-kachel-text {
    margin-top: 2px !important;
    font-size: 14px;
}

.cf-kachel:has(a):hover {
    transform: translateY(-3px);
}

.cf-kachel:has(a:focus-visible) {
    outline: 3px solid #111111;
    outline-offset: 3px;
}

.cf-kachel-gelb     { background: #ffed00; }
.cf-kachel-tuerkis  { background: #00a19b; color: #ffffff; }
.cf-kachel-hellblau { background: #c2e8e7; }
.cf-kachel-bald     { background: #f2f2f2; color: #888888; }
.cf-kachel-pink     { background: #e72782; color: #ffffff; }
.cf-kachel-blau     { background: #004b84; color: #ffffff; }

.cf-icon-liste  { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E"); }
.cf-icon-video  { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='M16 10l5-3v10l-5-3'/%3E%3C/svg%3E"); }
.cf-icon-cloud  { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18h10a4 4 0 0 0 .5-8A6 6 0 0 0 6 9.5 4.3 4.3 0 0 0 7 18z'/%3E%3C/svg%3E"); }
.cf-icon-mail   { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.cf-icon-leute  { --cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18.5 20a6.5 6.5 0 0 0-2.5-5.1'/%3E%3C/svg%3E"); }

/* Teilnahme */
.cf-dash .cf-dash-h2 {
    margin: 56px 0 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cf-dash-teilnahme-text {
    margin-top: 8px !important;
    font-size: 18px;
    font-weight: 300;
}

.cf-dash-umfrage {
    margin-top: 18px !important;
}

.cf-dash-hinweis {
    margin-top: 14px !important;
    color: #555555;
    font-size: 14px;
}

.cf-dash-hinweis strong {
    color: #e72782;
}

@media (max-width: 1000px) {
    .cf-kacheln {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 781px) {
    .cf-dash-kopf {
        grid-template-columns: minmax(0, 1fr);
    }

    .cf-kacheln {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cf-kachel {
        min-height: 120px;
        padding: 54px 18px 18px;
    }

    .cf-kachel::before {
        top: 18px;
        left: 18px;
    }

    body.futsch-intern-page main > .wp-block-group {
        padding-top: 32px !important;
    }
}
