/* ===========================
   CSS VARIABLES & THEME
   =========================== */
:root {
    --primary: #1f2937;
    --midnight-blue: #1F344D;
    --medium-blue: #28527C;
    --amber-gold: #DDB961;
    --light: #f9fafb;
    --light-gray: #e5e7eb;
    --dark-gray: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    color: var(--primary);
    background-color: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===========================
   NAVIGATION BAR
   =========================== */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--light-gray);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.navbar-brand h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--medium-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-logo {
    height: 150px;
    width: auto;
    display: block;
}

.navbar-logo-fallback {
    display: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--midnight-blue);
}

img[alt="Talentschmiede Karlsruhe"] {
    display: block !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--medium-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
    display: flex;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ===========================
   .hero-placeholder alt
   =========================== 
.hero-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.hero-placeholder svg {
    width: 200px;
    height: 200px;
}

.hero-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(221, 185, 97, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}
*/
.hero-placeholder {
    display: none;
}

.hero-player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}


/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-gold) 0%, #c99f3a 100%);
    color: var(--midnight-blue);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* ===========================
   SECTIONS
   =========================== */
section {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary);
}

/* ===========================
   ABOUT SECTION
   =========================== */
/* ===========================
   about alt 
   =========================== 
.about {
    background-image: 
        linear-gradient(180deg, #f9fafb 0%, transparent 70%),
        url('fussballfeld.webp');
    background-position: 
        center,
        center bottom;
    background-size: 
        100% 100%,
        cover;
    background-repeat: 
        no-repeat,
        no-repeat;
    background-color: #f9fafb;
}


.about {
    background-image: 
        linear-gradient(180deg, #f9fafb 0%, transparent 50%),
        url('fussballfeld.webp');
    background-position: 
        center,
        center 25%;
    background-size: 
        100% 100%,
        cover;
    background-repeat: 
        no-repeat,
        no-repeat;
    background-color: #f9fafb;
}
    */

.about {
    background-image: 
        linear-gradient(to top, rgba(249, 250, 251, 0.3) 0%, rgba(249, 250, 251, 0.8) 50%, #f9fafb 100%),
        url('fussballfeld.webp');
    background-position: 
        center,
        center 25%;
    background-size: 
        100% 100%,
        cover;
    background-repeat: 
        no-repeat,
        no-repeat;
    background-color: #f9fafb;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
/* ===========================
   about-text p  Alt
   =========================== 
.about-text p {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}
*/

.about-text {
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* ===========================
   credentials SECTION Alt
   =========================== 
.credentials {
    list-style: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.credentials li {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.credentials li::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--amber-gold) 0%, #c99f3a 100%);
    color: var(--midnight-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}


.credentials {
    list-style: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.credentials li {
    margin-bottom: 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(221, 185, 97, 0.1) 0%, rgba(40, 82, 124, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--amber-gold);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credentials li::before {
    content: '✓';
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: var(--amber-gold);
    color: var(--midnight-blue);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
    */

.credentials {
    list-style: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.credentials li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.6;
}

.credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--amber-gold);
    color: var(--midnight-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--amber-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    background: linear-gradient(135deg, var(--amber-gold) 0%, #c99f3a 100%);
    color: var(--midnight-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--amber-gold);
}

.service-card.highlight {
    background: linear-gradient(135deg, var(--amber-gold) 0%, #c99f3a 100%);
    color: var(--midnight-blue);
    border: none;
    box-shadow: var(--shadow-lg);
}

.service-card.highlight:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover .service-features li::before {
    color: var(--midnight-blue);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.service-features {
    list-style: none;
    font-size: 14px;
}

.service-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--amber-gold);
}

.service-card.highlight .service-features li::before {
    color: var(--midnight-blue);
}

/* ===========================
   REGISTRATION SECTION
   =========================== */
.registration {
    background: linear-gradient(135deg, rgba(31, 52, 77, 0.05) 0%, rgba(40, 82, 124, 0.05) 100%);
}

.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--amber-gold);
    box-shadow: 0 0 0 3px rgba(221, 185, 97, 0.1);
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--amber-gold);
    flex-shrink: 0;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input {
    margin: 0;
    margin-right: 5px;
    cursor: pointer;
    accent-color: var(--amber-gold);
    flex-shrink: 0;
}

.privacy-link {
    color: var(--amber-gold);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
}

.privacy-link:hover {
    color: var(--midnight-blue);
}

.form-success-message {
    color: var(--midnight-blue);
    font-weight: 600;
    padding: 15px;
    background: rgba(221, 185, 97, 0.1);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border-left: 4px solid var(--amber-gold);
}

/* ===========================
   FORM FIELDSETS
   =========================== */
.form-fieldset {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background: var(--light);
}

.form-fieldset legend {
    font-size: 16px;
    font-weight: 700;
    color: var(--midnight-blue);
    padding: 0 10px;
    margin-left: -10px;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--midnight-blue);
    color: var(--white);
    padding: 20px;
    z-index: 999;
    display: none;
    box-shadow: var(--shadow-xl);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--amber-gold);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-text a:hover {
    color: var(--white);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--amber-gold);
    color: var(--midnight-blue);
}

.cookie-btn-accept:hover {
    background: #c99f3a;
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #111827 100%);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    text-decoration: underline;
    text-decoration-color: var(--amber-gold);
}

.link:hover {
    color: var(--amber-gold);
}

/* Links auf hellen Hintergruenden (content pages) */
.content-page .link {
    color: var(--amber-gold);
    text-decoration: underline;
    text-decoration-color: var(--amber-gold);
}

.content-page .link:hover {
    color: #4b5563;
    text-decoration: underline;
    text-decoration-color: var(--amber-gold);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        border-bottom: 1px solid var(--light-gray);
        gap: 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--light-gray);
        padding: 15px 0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-placeholder {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .registration-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .qr-container {
        justify-content: center;
    }

    .qr-box {
        max-width: 100%;
    }

    .stat-card {
        padding: 20px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 {
        font-size: 20px;
    }

    .nav-menu {
        gap: 10px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .form-container {
        padding: 25px 20px;
    }

    .cookie-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }

    .footer-content {
        gap: 25px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}
