
:root {
    --primary-color: #d90429;
    --secondary-color: #ef233c;
    --dark-color: #2b2d42;
    --light-color: #edf2f4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 650px;
    width: 100%;
    padding: 40px;
    text-align: center;
    overflow: hidden;
}

.header-banner {
    margin: -40px -40px 25px -40px;
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
    margin-bottom: 25px;
}

.profile-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    text-align: left;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.profile-box h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.profile-box ul {
    margin: 0;
    padding-left: 20px;
}

.profile-box li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.profile-box li strong {
    color: var(--primary-color);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="file"] {
    background-color: #f9f9f9;
    cursor: pointer;
}

.file-hint {
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

.footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Back to Top Button Styling */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, opacity 0.3s;
}

#backToTopBtn:hover {
    background-color: var(--secondary-color);
}

/* SKTC: Links ohne Unterstreichung in allen Zuständen. */
a:any-link,
a:any-link:hover,
a:any-link:focus,
a:any-link:focus-visible,
a:any-link:active,
a:any-link * {
    text-decoration: none !important;
}

/* SKTC: Flache Formularfelder ohne native 3D-Raender. */
:where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"])
    :not([type="hidden"]):not([type="submit"]):not([type="button"])
    :not([type="reset"]):not([type="image"]):not([type="file"])
    :not([type="color"]),
    textarea,
    select
) {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    background-image: none;
    border: 1px solid #8b96a3 !important;
    border-radius: 8px;
    background-color: rgba(255,255,255,.8);
    color: inherit;
    font: inherit;
    box-sizing: border-box;
}

:where(input,textarea,select):focus-visible {
    outline: 2px solid #224579;
    outline-offset: 2px;
    box-shadow: none !important;
}

select {
    padding-right: 2rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2330343b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right .65rem center !important;
    background-size: 16px !important;
}

select[multiple],
select[size]:not([size="1"]) {
    background-image: none !important;
    padding-right: .65rem !important;
}

input[type="file"]::file-selector-button {
    border: 1px solid #8b96a3;
    border-radius: 8px;
    background: #f2f5f9;
    color: #30343b;
    box-shadow: none;
    font: inherit;
    padding: .5rem .8rem;
}

/* SKTC: Aktionsbuttons in Modal-Fenstern linksbuendig. */
:is(dialog,[role="dialog"],.modal-content)
:is(button,input[type="submit"],input[type="button"],input[type="reset"],a.button,a.btn)
:not(.modal-close):not(.story-close):not(.close):not(.btn-close)
:not([aria-label][data-close]:empty) {
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start !important;
}

:is(dialog,[role="dialog"],.modal-content)
:is(.modal-footer,.dialog-actions,.modal-actions,.form-actions,.actions,.button-row) {
    justify-content: flex-start !important;
    text-align: left !important;
}

:is(dialog,[role="dialog"],.modal-content)
:is(form,.button-group,.buttons) {
    text-align: left;
}

/* Pflichtbestätigung unmittelbar vor dem Casting-Absenden-Button */
#casting-form .privacy-consent {
    margin-top: 20px;
    margin-bottom: 12px;
}

#casting-form .privacy-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.45;
}

#casting-form .privacy-consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 3px 0 0;
    accent-color: #19385e;
    cursor: pointer;
}

/* Datenschutzlink rot und fett, ohne Unterstreichung */
#casting-form .privacy-consent-label a:any-link,
#casting-form .privacy-consent-label a:any-link:hover,
#casting-form .privacy-consent-label a:any-link:focus-visible {
    color: #d90429 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Rotes Pflichtsternchen direkt hinter dem Link */
#casting-form .privacy-consent-label .required-star {
    color: #d90429;
    font-weight: 700;
}
