/* ============================================
   CSS Variables (leicht gedunkeltes Design)
   ============================================ */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #141414;
    --bg-tertiary: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #b0b0b0;
    --accent: #4D507D;
    --accent-hover: #6B6FA0;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --card-bg: #1a1a1a;
    --input-bg: #141414;
    --input-border: rgba(255, 255, 255, 0.2);
    --grad-soft: linear-gradient(135deg, rgba(11,69,149,0.18), rgba(77,80,125,0.18));
    --grad-accent: linear-gradient(135deg, rgba(11,69,149,0.3), rgba(77,80,125,0.3));
    --grad-accent-subtle: linear-gradient(135deg, rgba(11,69,149,0.1), rgba(42,32,80,0.1));
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Design Element */
.background-design {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.logo-design-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.05;
    transform: translate(-10%, -10%) rotate(-5deg);
    filter: blur(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    animation: floatDesign 30s ease-in-out infinite;
    will-change: transform;
    content-visibility: auto;
}

@keyframes floatDesign {
    0%, 100% {
        transform: translate(-10%, -10%) rotate(-5deg) scale(1);
    }
    50% {
        transform: translate(-8%, -12%) rotate(-3deg) scale(1.05);
    }
}

main {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: sticky;
    top: calc(1rem + 3.5rem);
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.85);
    color: #ffffff;
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    margin: 0 auto;
    max-width: calc(100% - 4rem);
    width: fit-content;
    min-width: 700px;
}

.header.scrolled {
    background: rgba(20, 20, 20, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    transition: padding 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled .header-container {
    padding: 0.65rem 2.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.logo-image {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
    color: #ffffff;
}

/* Desktop Navigation */
.nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

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

/* Side Controls (Language & Theme Switcher) */
.side-controls {
    position: sticky;
    top: 1rem;
    left: 0;
    width: auto;
    height: fit-content;
    z-index: 999;
    pointer-events: none;
    transition: top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.side-controls-inner {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    pointer-events: auto;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.side-controls.scrolled .side-controls-inner {
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 0.45rem;
}

/* Language Toggle (Symbol) */
.side-controls .language-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.side-controls .language-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.side-controls .language-toggle:active {
    transform: scale(0.95);
}

.side-controls .lang-flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
}

.side-controls .flag-icon {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.language-dropdown {
    position: absolute;
    left: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    min-width: 60px;
    z-index: 1001;
}

.language-toggle[aria-expanded="true"] .language-dropdown {
    display: flex;
}

.lang-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option .flag-icon {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    width: 100%;
    padding: 2rem;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    padding: 1rem 2rem;
    display: block;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-overlay.active .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-overlay.active .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-overlay.active .mobile-nav-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-overlay.active .mobile-nav-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.mobile-lang {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-lang-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-lang-link:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-lang-link.active {
    background: #ffffff;
    color: #000000;
}

.mobile-lang-link .flag-icon {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


.section {
    padding: 6rem 0;
    min-height: 60vh;
}

.section-kontakt {
    position: relative;
    background-image: url('images/LinienDesign.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.section-kontakt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.section-kontakt .container {
    position: relative;
    z-index: 1;
}

.hero-intro {
    padding: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 8rem;
    background-image: url('images/HeroBild4.jpg');
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    align-items: center;
    content-visibility: auto;
}

.hero-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 0;
}

.hero-intro::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(11, 69, 149, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(77, 80, 125, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(42, 32, 80, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(2%, -2%) rotate(1deg);
    }
    66% {
        transform: translate(-2%, 2%) rotate(-1deg);
    }
}

.hero-shell {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.2);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hero-heading {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-align: center;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Über uns Sektion */
.about-content-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}


.board-members-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.board-label-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.board-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.board-members-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text-content {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1400px) {
    .about-text-content {
        max-width: 2000px;
    }
}

@media (min-width: 1600px) {
    .about-text-content {
        max-width: 2400px;
    }
}

.board-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.board-member-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.board-member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(77, 80, 125, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(77, 80, 125, 0.2);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    cursor: pointer;
    isolation: isolate;
}

.board-member-link:hover .board-member-image {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(77, 80, 125, 0.4);
    border-color: rgba(77, 80, 125, 0.6);
    transform: scale(1.05);
}

.member-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 50%;
}

.board-member-link:hover .member-photo {
    opacity: 1;
}



.board-member-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.body-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Legal Content Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-primary);
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0;
}

.legal-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Projekte Sektion */
.section-projekte-hinweis {
    background: var(--grad-soft);
    text-align: center;
}

.section-projekte-hinweis .form-submit {
    margin-top: 1.5rem;
}

/* Projekte eigene Seite */
.projects-placeholder-text {
    font-size: 2.5rem;
    line-height: 1.4;
    text-align: center;
    margin: 3rem 0;
    background: linear-gradient(135deg, #FF6B35, #FF8C69, #FF6B9D, #C77DFF, #8B5CF6, #6D4CFF, #4D507D, #0B4595);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 18px var(--shadow-hover);
}

.project-image {
    width: 100%;
    height: 180px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 64px;
    height: 64px;
    background: var(--text-tertiary);
    opacity: 0.25;
    border-radius: 12px;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Kontakt Sektion */
.contact-surface {
    /* Background wird jetzt von .section-kontakt gehandhabt */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.contact-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact-info-item:hover .contact-icon {
    color: var(--accent-hover);
    transform: scale(1.1);
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--accent);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(77, 80, 125, 0.2);
}

.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-input.error:focus,
.form-textarea.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}


.textarea-wrapper {
    position: relative;
    width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    padding-bottom: 2.5rem;
}

.char-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    pointer-events: none;
    user-select: none;
}

.char-counter.warning {
    color: #ffa500;
}

.char-counter.error {
    color: #dc3545;
}

.form-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 80, 125, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    background-color: rgba(77, 80, 125, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-submit:disabled:hover {
    background-color: rgba(77, 80, 125, 0.5);
    transform: none;
    box-shadow: none;
}

.form-checkbox-group {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.form-checkbox {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-checkbox-text {
    flex: 1;
}

.privacy-link {
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
}

.privacy-link:hover {
    color: inherit;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 24px var(--shadow);
    z-index: 1200;
    max-width: 90%;
    width: 420px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.cookie-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-actions .form-submit {
    margin-top: 0;
    padding: 0.6rem 1.1rem;
}

/* Email Redirect Modal */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.email-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.email-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.email-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px var(--shadow-hover);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 1;
}

.email-modal.active .email-modal-content {
    transform: scale(1);
}

.email-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: inherit;
}

.email-modal-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: inherit;
}

.email-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.email-modal-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-modal-button-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.email-modal-button-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 80, 125, 0.4);
}

.email-modal-button-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.email-modal-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--input-border);
}

/* Disclaimer Banner */
.disclaimer-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(77, 80, 125, 0.95);
    color: #ffffff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
    z-index: 1300;
    box-shadow: 0 2px 8px var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-banner-text {
    max-width: 1200px;
    margin: 0 auto;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: rgba(20, 20, 20, 0.95);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    align-items: start;
    justify-items: center;
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 2rem;
    }
    
    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-social {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}

.footer-brand {
    text-align: left;
}

.footer-brand .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-copy {
    margin-top: 0.35rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    align-items: flex-start;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--accent);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (min-width: 768px) {
    .nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    .header-container {
        padding: 0.75rem 2rem;
    }
    
    .header.scrolled .header-container {
        padding: 0.65rem 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .section {
        padding: 8rem 0;
    }
    
    .container {
        padding: 0 3rem;
    }
}

@media (max-width: 1024px) {
    .about-content-layout {
        gap: 2.5rem;
    }
    
    .board-members-wrapper {
        gap: 1.5rem;
    }
    
    .board-label {
        font-size: 1.3rem;
    }
    
    .board-members-container {
        gap: 3rem;
    }
    
    .board-member-image {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        overflow: hidden;
    }
    
    .board-member-name {
        font-size: 1.1rem;
    }
    
    .about-text-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-intro {
        background-size: cover;
        min-height: 60vh;
    }
    
    .side-controls {
        display: none;
    }
    
    .about-content-layout {
        gap: 2rem;
    }
    
    .board-members-wrapper {
        gap: 1.5rem;
    }
    
    .board-label {
        font-size: 1.2rem;
    }
    
    .board-members-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .board-member {
        flex-direction: column;
        gap: 1rem;
    }
    
    .board-member-image {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
    }
    
    
    
    .side-controls-inner {
        left: 1rem;
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .side-controls.scrolled .side-controls-inner {
        padding: 0.55rem;
    }
    
    
    .header {
        margin: 0 auto;
        max-width: calc(100% - 2rem);
        width: fit-content;
        min-width: auto;
        border-radius: 12px;
        top: calc(0.75rem + 3.5rem);
    }
    
    .header.scrolled {
        border-radius: 14px;
    }
    
    .header-container {
        padding: 0.65rem 1.5rem;
        gap: 2rem;
    }
    
    .header.scrolled .header-container {
        padding: 0.6rem 1.5rem;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .logo-image {
        height: 36px;
    }
    
    .nav-list {
        gap: 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .lead-text {
        font-size: 1.25rem;
    }
    
    .body-text {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


