/* --------------------------------------------------------- */
/* ULTRA MODERN "SOFT UI" CONTACT SECTION - FINAL */
/* --------------------------------------------------------- */

.contact-section {
    /* Wir nutzen ein Bild oder einen leichten Verlauf im Hintergrund für Tiefe */
    background: linear-gradient(135deg, #ffffff 0%, #e8e6e4 100%);
    padding: 5rem 2rem 6rem 2rem; 
    position: relative;
    overflow: hidden;
    margin-top: 20rem;  /* Außenabstand: Schiebt die Sektion weg von der vorherigen */
    /* Dies verhindert den harten Schnitt nach oben */
    clip-path: inset(0); 
}

/* Dekorativer Hintergrund-Orb (Der "High Tech" Glow) */
.contact-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 51, 49, 0.15) 0%, rgba(47, 51, 49, 0) 70%);
    top: 10%;
    right: -10%;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none; /* Klicks gehen durch */
    animation: floatOrb 10s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 30px); }
}

.contact-container {
    max-width: 1200px; /* Etwas breiter für mehr Luft */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Das Grid System */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* --- LINKE SEITE: Text & Infos --- */
.contact-info {
    padding-right: 2rem;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 1rem;
    display: block;
}

.contact-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    /* Leichter Verlauf im Text für Modernität */
    background: -webkit-linear-gradient(45deg, var(--text-color), #555);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-subtitle {
    font-size: 1.6rem;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Glass-Style Links */
.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.4); /* Leicht transparent */
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-color: var(--text-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- RECHTE SEITE: Das Glass Formular --- */
.form-wrapper {
    /* DER GLAS EFFEKT */
    background: rgba(255, 255, 255, 0.25); /* Sehr transparent */
    backdrop-filter: blur(20px); /* Der Milchglas-Blur */
    -webkit-backdrop-filter: blur(20px); /* Für Safari */
    padding: 3.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8); /* Weißer Rand wie geschliffenes Glas */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.05), /* Schatten nach unten */
        inset 0 0 20px rgba(255, 255, 255, 0.5); /* Innerer Glanz */
    transition: transform 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px); /* Leichtes Schweben */
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Modern Inputs: Nur unten eine Linie oder sehr subtil */
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.5); /* Halbtransparent */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0; /* Oben rund, unten eckig für Linie */
    font-family: inherit;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* High Tech Focus Effekt */
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--main-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Checkbox Style */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #000000;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    padding-left: 5px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ffffff;
    cursor: pointer;
    accent-color: var(--text-color);
    margin-top: 2px;
}

.checkbox-wrapper a {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

.checkbox-wrapper a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.checkbox-wrapper a:hover::after {
    transform: scaleX(1);
}

/* --- SUBMIT BUTTON (Alternative Tech Animation) --- */
.submit-btn {
    width: 100%;
    padding: 20px;
    background: #000000; /* Dunkler Hintergrund */
    border: none;
    border-radius: 16px;
    
    /* TEXT STYLE */
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px; /* Schon von Anfang an etwas breiter */
    text-transform: uppercase;
    
    /* WICHTIG: Schrift erzwingen auf Weiß */
    color: #ffffff !important; 
    
    cursor: pointer;
    transition: all 0.4s ease; /* Weiche Transition für alles */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* Erzwingt Weiß auch für alle Inhalte im Button */
.submit-btn span, 
.submit-btn i,
.submit-btn div {
    color: #ffffff !important;
    z-index: 2;
    transition: all 0.4s ease; /* Damit der Text weich animiert */
}

/* NEUE ANIMATION: Text-Expansion & Statischer Glow */
.submit-btn:hover {
    background: #000000;
    /* Kein Transform/Scale, der Button bleibt fest liegen */
    transform: none; 
    
    /* Der Text weitet sich ("Cinematic"-Effekt) */
    letter-spacing: 4px; 
    
    /* Starker, weicher Glow an Ort und Stelle */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5); 
}

/* Beim Klicken ganz leicht eindrücken */
.submit-btn:active {
    transform: scale(0.99); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 2px; /* Reset beim Klick */
}

/* Status Messages */
.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-success { background: #e6fffa; color: #047481; }
.status-error { background: #fff5f5; color: #c53030; }
.hidden { display: none !important; }

/* Lade-Spinner (auch Weiß) */
.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff !important;
    border-radius: 50%;
    animation: rotation 0.8s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------- */
/* RESPONSIVE */
/* --------------------------------------------------------- */

/* ================================================= */
/* 📱 CONTACT – MOBILE & TABLET (FINAL)              */
/* ================================================= */

@media (max-width: 900px) {

  /* ===== SECTION ===== */
  .contact-section {
    margin-top: 5rem;
    padding: 4rem 1.5rem 5rem;
  }

  /* Deko stark entschärfen */
  .contact-section::before {
    opacity: 0.2;
    filter: blur(30px);
  }

  /* ===== GRID → STACK ===== */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  /* ===== TEXT ===== */
  .contact-info {
    text-align: center;
    padding-right: 0;
  }

  .contact-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
  }

  .contact-title {
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 1.2rem;
  }

  .contact-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 3rem;
  }

  /* ===== SOCIAL LINKS (REDUZIERT & SEKUNDÄR) ===== */
  .contact-details-list {
    display: none;
  }

  /* ===== FORM – PRIORITÄT ===== */
  .form-wrapper {
    padding: 2.4rem 1.8rem;
    border-radius: 1.8rem;
    transform: none;
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.08),
      inset 0 0 18px rgba(255, 255, 255, 0.5);
  }

  .form-wrapper:hover {
    transform: none;
  }

  .form-group {
    margin-bottom: 1.6rem;
  }

  .form-group label {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1.1rem;
    padding: 14px;
  }

  /* ===== CHECKBOX ===== */
  .checkbox-wrapper {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 2.2rem;
  }

  /* ===== BUTTON ===== */
  .submit-btn {
    padding: 18px;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    border-radius: 16px;
  }

  .submit-btn:hover {
    letter-spacing: 1.5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
}

/* ================================================= */
/* 📱 VERY SMALL PHONES                              */
/* ================================================= */

@media (max-width: 480px) {

  .contact-section {
    padding: 3.5rem 1.2rem 4.5rem;
  }

  .contact-title {
    font-size: 2.3rem;
  }

  .contact-subtitle {
    font-size: 1.4rem;
  }

  .form-wrapper {
    padding: 2rem 1.4rem;
  }

  .submit-btn {
    padding: 16px;
    font-size: 1rem;
  }
}

