/* --- DESIGN SYSTEM --- */
:root {
    --bg-color: #030307;
    --card-bg: #060612;
    --text-color: #ffffff;
    --text-muted: #62627a;
    --rainbow-glow: linear-gradient(90deg, #00f2fe, #7f00ff, #ff007f, #ff5e00, #ffea00, #00f2fe);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bg-glow {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- HEADER & LOGO --- */
header {
    text-align: center;
    padding: 70px 20px 30px;
}

.logo-container {
    width: 170px;
    height: 170px;
    margin: 0 auto 30px;
}

.main-logo {
    width: 100%;
    height: 100%;
    animation: smoothPulse 4s ease-in-out infinite alternate;
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #ffffff;
}

h1 span {
    font-weight: 700;
    background: var(--rainbow-glow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: moveGrad 8s linear infinite;
}

.tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* --- CARDS GRID --- */
main {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 30px;
    width: 100%;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

/* Der filigrane, bunte Rand beim Hovern */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 14px;
    padding: 1.5px; 
    background: var(--rainbow-glow);
    background-size: 200% auto;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 0.7;
    animation: moveGrad 4s linear infinite;
}

.card:hover {
    transform: translateY(-6px);
    background: rgba(6, 6, 18, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* --- SVGs IN DEN BOXEN --- */
.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.15));
    transition: filter 0.4s ease;
}

.card:hover .icon-box {
    transform: scale(1.12);
}

/* Farb-Glows exakt passend zur Positionierung steuern */
.card:nth-child(1):hover .icon-svg { filter: drop-shadow(0 0 10px #00f2fe); }
.card:nth-child(2):hover .icon-svg { filter: drop-shadow(0 0 10px #7f00ff); }
.card:nth-child(3):hover .icon-svg { filter: drop-shadow(0 0 10px #ff007f); }
.card:nth-child(4):hover .icon-svg { filter: drop-shadow(0 0 10px #ffea00); }

.card h3 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Farbliche Abstimmung der Überschriften laut Vorlage */
.card:nth-child(1) h3 { color: #00f2fe; }
.card:nth-child(2) h3 { color: #a14fff; }
.card:nth-child(3) h3 { color: #ff007f; }
.card:nth-child(4) h3 { color: #ffca00; }

.card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- ANIMATIONS --- */
@keyframes moveGrad {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes smoothPulse {
    0% { filter: drop-shadow(0 0 8px rgba(127, 0, 255, 0.2)); transform: scale(0.99); }
    100% { filter: drop-shadow(0 0 22px rgba(0, 242, 254, 0.4)); transform: scale(1.01); }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; letter-spacing: 5px; }
    .tagline { font-size: 0.7rem; letter-spacing: 3px; }
}

/* --- KONTAKT SECTION --- */
.contact-section {
    max-width: 600px;
    margin: 60px auto 100px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-section h2 span {
    font-weight: 700;
    background: var(--rainbow-glow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: moveGrad 8s linear infinite;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* --- FORMULAR DESIGN --- */
.contact-form {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Der leuchtende Unterstrich bei Klick */
.form-group input:focus,
.form-group textarea:focus {
    border-image: var(--rainbow-glow) 1;
}

/* Futuristische Floating Labels */
.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Wenn das Feld fokussiert ist oder Text enthält, wandert das Label hoch */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.75rem;
    color: #00f2fe;
    letter-spacing: 2px;
}

/* --- BUTTON MIT GLOW --- */
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 12px 28px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 30px;
    padding: 2px;
    background: var(--rainbow-glow);
    background-size: 200% auto;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}