/* Container für Formular + Bild */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Formular links, Bild rechts */
    gap: 2rem;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Formular Card */
.card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Bild-Container */
.contact-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-image img {
    width: 600px;
    height: 600px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    object-fit: cover;
    max-height: 600px;
}

/* Formular */
form {
    display: grid;
    gap: 12px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Labels */
label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #621A74;
    display: block;
    margin-bottom: 6px;
}

/* Eingabefelder */
input,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Button */
button {
    background: #FF914D;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: #621A74;
}

button:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Feedback-Nachrichten */
.msg {
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.msg.success {
    background: #ecfdf5;
    color: #065f46;
}

.msg.error {
    background: #fff1f2;
    color: #881337;
}

/* Visually Hidden */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* Portfolio-Interesse Checkbox */
.portfolio-interest {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    width: 100%;
}

.portfolio-interest input[type="checkbox"] {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.portfolio-interest label {
    font-weight: 400;
    color: #333;
    margin: 0;
    cursor: pointer;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Feedback */
#feedback {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .contact-image {
        order: -1;
    }
    
    .contact-image img {
        max-height: 400px;
    }
}

@media (max-width: 600px) {
    .contact-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .row {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }

    h2 { 
        font-size: 1.8rem; 
    }
    
    .card {
        padding: 1rem;
    }
    
    .contact-image img {
        max-height: 300px;
    }
}

/* Desktop-Version anzeigen, Mobile verstecken */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Ab einer bestimmten Bildschirmbreite (z.B. 768px) umschalten */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
}
