/* =============================================================
   round360 | contact.css
   Kontaktseite: Orbs, Eye Mascot, Glassmorphism Form
   ============================================================= */

/* ── Orb Background ──────────────────────────────────────────── */
.orb-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
}
.orb-1 {
    width: 680px; height: 680px;
    background: radial-gradient(circle, #3b82f6, #1d4ed8);
    top: -180px; left: -160px;
    animation: orbFloat1 11s ease-in-out infinite;
}
.orb-2 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, #8b5cf6, #6d28d9);
    bottom: -100px; right: -80px;
    animation: orbFloat2 14s ease-in-out infinite;
}
.orb-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #06b6d4, #0284c7);
    top: 40%; left: 55%;
    animation: orbFloat3 9s ease-in-out infinite;
}
.orb-4 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: 20%; right: 15%;
    animation: orbFloat1 7s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0)   scale(1); }
    40%     { transform: translate(40px,-50px) scale(1.08); }
    70%     { transform: translate(-30px,30px) scale(0.94); }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0)   scale(1); }
    35%     { transform: translate(-50px,40px) scale(1.1); }
    65%     { transform: translate(30px,-30px) scale(0.92); }
}
@keyframes orbFloat3 {
    0%,100% { transform: translate(0,0)   scale(1); }
    50%     { transform: translate(-40px,-40px) scale(1.15); }
}


/* ── Page Layout ─────────────────────────────────────────────── */
.contact-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: var(--nav-h);
}

.contact-wrapper {
    max-width: 1420px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}


/* ── Mascot Section ──────────────────────────────────────────── */
.mascot-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem 2rem;
    text-align: center;
}

/* SVG Eye */
.mascot-eye {
    width: 220px;
    height: 220px;
    margin-bottom: 1.75rem;
    filter: drop-shadow(0 0 36px rgba(59,130,246,0.5));
    animation: mascotPulse 3s ease-in-out infinite;
}
@keyframes mascotPulse {
    0%,100% { filter: drop-shadow(0 0 18px rgba(59,130,246,0.4)); }
    50%     { filter: drop-shadow(0 0 36px rgba(59,130,246,0.7)); }
}

/* Rotating dashes ring */
.eye-ring-rotate {
    animation: ringRotate 12s linear infinite;
    transform-origin: 100px 100px;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Eyelid blink */
#eye-eyelid {
    transform: scaleY(0);
    transform-origin: center bottom;
    transition: transform 0.07s ease;
}

/* Typing headline */
.typing-headline {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    min-height: 1.2em;
}
.type-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--blue);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 0.85s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.mascot-sub {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    max-width: 480px;
}


/* ── Contact Grid ────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    margin-top: 2.5rem;
}
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
}


/* ── Glass Card ──────────────────────────────────────────────── */
.contact-glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 1.25rem;
    padding: 2.5rem 2.25rem;
    transition: transform 0.15s ease;
    position: relative;
    overflow: hidden;
}
/* Subtle shimmer top border */
.contact-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.6), transparent);
}

.contact-glass h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.75rem;
}

/* Form fields */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
    background: rgba(59,130,246,0.07);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-group select option {
    background: #090f1e;
    color: #fff;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Send button */
.btn-send {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.btn-send::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}
.btn-send:hover {
    background: var(--blue-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.btn-send:active { transform: translateY(0); }
.btn-send:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Success state */
#form-success {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 3rem 1rem;
}
.success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(59,130,246,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}
#form-success h3 { color: #fff; font-size: 1.4rem; font-weight: 700; }
#form-success p  { color: var(--muted); font-size: 1rem; }


/* ── Contact Info Panel ──────────────────────────────────────── */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 0.875rem;
    padding: 1.5rem;
    transition: border-color 0.25s, background 0.25s;
}
.info-card:hover {
    border-color: rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.05);
}
.info-icon {
    width: 2.5rem; height: 2.5rem;
    background: rgba(59,130,246,0.12);
    color: var(--blue);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
}
.info-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.info-card p,
.info-card a {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
}
.info-card a:hover { color: var(--blue); }

/* Response time badge */
.badge-fast {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.875rem;
    padding: 0.35rem 0.75rem;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; }
    50%     { opacity: 0.4; }
}

/* ── Pflichtfeld-Fehler ──────────────────────────────────────── */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: #ef4444;
    background: rgba(239,68,68,0.06);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.form-error-hint,
.form-send-error {
    font-size: 0.875rem;
    color: #f87171;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 0.4rem;
}

/* Pflichtfeld-Asterisk im Label */
.form-group label span[aria-hidden] {
    color: #ef4444;
    margin-left: 2px;
}

/* ── Datenschutz-Checkbox ──────────────────────────────────── */
.form-group--consent {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Checkbox verstecken & durch Custom-Box ersetzen */
.consent-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
}
.consent-label input[type="checkbox"]:checked {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
/* Haken */
.consent-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px; left: 4px;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.consent-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
/* Fehlerzustand */
.consent-label input[type="checkbox"].field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.consent-text {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.55;
}
.consent-text a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.consent-text a:hover { color: #fff; }

.req-star { color: #ef4444; }


/* ══════════════════════════════════════════════════════════════
   TEAM-PORTRAITS
══════════════════════════════════════════════════════════════ */
#team {
    padding: 5rem 1.5rem 6rem;
    background: var(--bg);
    position: relative;
}

.team-inner {
    max-width: 1420px;
    margin: 0 auto;
}

.team-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Akzent-Balken unter dem Titel */
.team-accent {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
    margin: 0 auto 3rem;
    box-shadow: 0 0 12px rgba(59,130,246,0.5);
}

/* Grid: 4 Spalten Desktop – 2 Tablet – 1 Mobile */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}
@media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* Placeholder SVG füllt Container wie ein Bild */
.team-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Team-Karte */
.team-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
/* Shimmer-Linie oben */
.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.55), transparent);
    z-index: 1;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(59,130,246,0.45),
        0 0 24px rgba(59,130,246,0.14),
        0 20px 44px rgba(0,0,0,0.5);
}

/* Bild-Container */
.team-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(59,130,246,0.05);
    position: relative;   /* für Shimmer-Pseudo-Element */
}

/* Shimmer-Streifen */
.team-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255,255,255,0.18) 48%,
        rgba(255,255,255,0.22) 52%,
        transparent 70%
    );
    transform: translateX(-120%);
    pointer-events: none;
    z-index: 2;
}
.team-card:hover .team-img-wrap::after {
    animation: shimmerSweep 0.65s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes shimmerSweep {
    to { transform: translateX(120%); }
}

/* Bild: desaturiert im Ruhezustand, Vollfarbe beim Hover */
.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(45%) brightness(0.88) contrast(1.05);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.team-card:hover .team-img-wrap img {
    filter: grayscale(0%) brightness(1) contrast(1);
    transform: scale(1.05);
}

/* Name & Rolle */
.team-info {
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
}
.team-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}
.team-role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
}
