:root {
    
    --primary: #c5023c;
    --primary-dark: #9e0230;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;

    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #9ca3af;

    
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);

    
    --radius: 8px;
    --radius-lg: 12px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6, p, li, dd, td, th, figcaption, blockquote {
    overflow-wrap: break-word;
}

h1 { font-size: 2.5rem; }

h2 { font-size: 2rem; }

h3 { font-size: 1.5rem; }

h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--marke-auf-dunkel, var(--primary));
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(197, 2, 60, 0.25);
}

[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] .btn:focus-visible {
    outline-color: #e8365d;
    box-shadow: 0 0 0 4px rgba(232, 54, 93, 0.3);
}

a:hover {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-main__spacer {
    flex: 1;
}

.site-header {
    background: var(--nav-bg-light, var(--white));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

:root {
    --kopfhoehe: 3.75rem;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--nav-logo-light, var(--text-primary));
    flex-shrink: 0;
}

.logo:hover {
    text-decoration: none;
    color: var(--marke-auf-dunkel, var(--primary));
}

.logo-img {
    display: block;
    height: 18px;
    width: auto;
}

.logo__wort {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-primary);
    border-inline-start: 1px solid var(--border-color);
    padding-inline-start: 0.5rem;
}

[data-theme="dark"] .logo__wort {
    color: var(--theme-text-primary, #e4e4e7);
    border-inline-start-color: var(--theme-border-color, #3f3f3f);
}

.nav-spacer {
    flex: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-link {
    color: var(--nav-text-light, var(--text-secondary));
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--marke-auf-dunkel, var(--primary));
    text-decoration: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 52rem) {
.nav-links { display: none; }
}

@media (max-width: 30rem) {
.nav-konto__text { display: none; }
.nav-actions .language-selector-display .text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.nav-actions .language-selector-wrapper {
    width: auto;
}

.nav-actions .language-selector-dropdown {
    left: auto;
    right: 0;
    min-width: 320px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--marke-auf-dunkel, var(--primary));
    border-color: var(--primary, #c5023c);
}

.btn-outline:hover svg {
    stroke: var(--primary, #c5023c);
}

.btn-outline:hover i {
    color: var(--marke-auf-dunkel, var(--primary));
}

.btn-outline:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(197, 2, 60, 0.25);
}

[data-theme="dark"] .btn-outline:focus-visible {
    outline-color: #e8365d;
    box-shadow: 0 0 0 4px rgba(232, 54, 93, 0.3);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.hero {
    position: relative;
    padding: 4rem 0 5rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    overflow: hidden;
    min-height: max(55vh, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    
    height: max(80px, calc(100vw * 0.0355));
    background: var(--theme-bg-primary, #ffffff);
    transform: skewY(2deg);
    transform-origin: bottom left;
    z-index: 2;
    border-top: 3px solid #d5d7da;
}

[data-theme="dark"] .hero::after {
    border-top-color: #333333;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero__title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero__title-text {
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fade-up 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fade-up 0.8s ease-out 0.4s both;
}

.help-band__actions .btn-outline:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(197, 2, 60, 0.25);
}

[data-theme="dark"] .help-band__actions .btn-outline:focus-visible {
    outline-color: #e8365d;
    box-shadow: 0 0 0 5px rgba(232, 54, 93, 0.3);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
.hero-subtitle, .hero-actions {
        animation: none;
    }
.hero-subtitle,
    .hero-actions {
        opacity: 1;
        transform: none;
    }
}

.features {
    position: relative;
    padding: 3rem 0 10rem;
    background: var(--theme-bg-primary, #ffffff);
}

.features::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--theme-bg-secondary, #f8f9fa);
    transform: skewY(-2deg);
    transform-origin: bottom right;
    border-top: 3px solid #d5d7da;
    z-index: 1;
}

[data-theme="dark"] .features::after {
    background: var(--theme-bg-secondary, #1e1e1e);
    border-top-color: #333333;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-section {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
}

.form-errors {
    padding: 1rem;
    background: #fff5f5;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
}

.error {
    color: var(--danger);
    font-size: 0.875rem;
}

.messages-container {
    padding: 1rem 0;
}

.messages-container:empty {
    display: none;
    padding: 0;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-success {
    background: #d4edda;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
}

.message-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
}

.message-close:hover {
    opacity: 1;
}

.error-page {
    padding: 6rem 0;
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.error-content h2 {
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.help-band {
    position: relative;
    z-index: 3;
    background: var(--theme-bg-tertiary, #e9ecef);
    padding: 3.5rem 0 3rem;
    margin-top: -40px;
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
}

[data-theme="dark"] .help-band {
    background: #181818;
}

.help-band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 43px;
    background: #d5d7da;
    clip-path: polygon(0 0, 0 3px, 100% 43px, 100% 40px);
    z-index: 2;
}

[data-theme="dark"] .help-band::before {
    background: #333333;
}

.help-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.help-band__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--theme-text-primary, var(--text-primary));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-band__title i {
    color: var(--marke-auf-dunkel, var(--primary));
    font-size: 1.25rem;
}

.help-band__text p {
    color: #595f66;
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
    font-size: 0.9375rem;
}

[data-theme="dark"] .help-band__text p {
    color: var(--theme-text-secondary, #a1a1aa);
}

.help-band__actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
}

.help-band__actions .btn-outline {
    white-space: nowrap;
    border-color: var(--primary, #c5023c);
    color: var(--marke-auf-dunkel, var(--primary));
}

.help-band__actions .btn-outline svg {
    stroke: var(--primary, #c5023c);
}

[data-theme="dark"] .help-band__actions .btn-outline {
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

[data-theme="dark"] .help-band__actions .btn-outline svg {
    stroke: currentColor;
}

@media (max-width: 700px) {
.help-band__inner {
        flex-direction: column;
        text-align: center;
    }
.help-band__text p {
        max-width: 100%;
    }
.help-band__title {
        justify-content: center;
    }
.help-band__actions {
        flex-direction: column;
        width: 100%;
    }
.help-band__actions .btn-outline {
        width: 100%;
        text-align: center;
    }
}

.site-footer {
    background: var(--light);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    color: #595f66;
}

[data-theme="dark"] .footer-info {
    color: var(--theme-text-secondary, #a1a1aa);
}

.footer-info p {
    margin: 0;
}

.footer-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
}

.footer-copy {
    color: inherit;
}

.footer-link,
.footer-info p a {
    color: #2b2f34;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-link:hover,
.footer-info p a:hover {
    color: #000;
}

.footer-link:focus-visible,
.footer-info p a:focus-visible {
    color: #000;
    border-bottom-color: currentColor;
}

[data-theme="dark"] .footer-link,
[data-theme="dark"] .footer-info p a {
    color: #9aa1a9;
}

[data-theme="dark"] .footer-link:hover,
[data-theme="dark"] .footer-link:focus-visible,
[data-theme="dark"] .footer-info p a:hover,
[data-theme="dark"] .footer-info p a:focus-visible {
    color: #e6e8ea;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--white);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(197, 2, 60, 0.25);
}

.theme-toggle-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle-light {
    display: none;
}

[data-theme="dark"] .theme-toggle-dark {
    display: inline;
}

.icon-external {
    vertical-align: -1px;
}

.text-muted { color: var(--text-secondary); }

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

@media (max-width: 768px) {
.main-nav {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
.nav-actions {
        gap: 0.5rem;
    }
.nav-link {
        display: none;
    }
.btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
.hero {
        padding: 5rem 0 4rem;
        min-height: 60vh;
    }
.hero__title {
        font-size: 2.5rem;
    }
.form-row {
        grid-template-columns: minmax(0, 1fr);
    }
.footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 22.5rem) {
.logo-img { height: 15px; }
.main-nav { gap: 0.5rem; }
.nav-actions { gap: 0.25rem; }
}
