:root {
    --primary: #0097a9;
    --primary-dark: #008191;
    --bg: #f8fbfb;
    --card: #ffffff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --border: #d7d7dc;
    --border-focus: rgba(0, 151, 169, 0.4);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 15% 50px, rgba(0, 151, 169, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(0, 151, 169, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.hero {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 338px;
    max-height: 110px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px 0;
    color: #000;
}

.hero p {
    max-width: 480px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

form {
    background: #fff;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ================= INFO ACCORDION ================= */
.info-accordion {
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: #fafbfc;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-accordion details summary {
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none; /* Versteckt Standard-Pfeil (Chrome/Firefox) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.info-accordion details summary::-webkit-details-marker {
    display: none; /* Versteckt Standard-Pfeil (Safari) */
}

.info-accordion details summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
}

.info-accordion details[open] summary::after {
    content: '−';
}

.info-accordion details summary:hover {
    background-color: #f0f9fa;
}

.accordion-content {
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.accordion-content p {
    margin-bottom: 10px;
}

.accordion-content ul {
    padding-left: 20px;
}

.accordion-content li {
    margin-bottom: 6px;
}

/* ================= FORMULAR GRID ================= */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    margin-left: 4px;
}

input[type="text"], 
input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px !important;
    font-family: inherit;
    color: var(--text);
    background-color: #fafafa;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    outline: none;
    min-height: 50px;
}

input:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

/* ================= DURATION GRID ================= */
.duration-section {
    margin-top: 20px;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hidden-radio {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.duration-label {
    margin: 0;
    cursor: pointer;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.duration-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px solid var(--border);
    padding: 15px 8px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    width: 100%;
    height: 100%;
}

.duration-label:hover .duration-btn {
    border-color: var(--primary);
}

.hidden-radio:checked + .duration-btn {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 151, 169, 0.25);
}

/* ================= PRICE & CHECKBOX ================= */
#price-display {
    display: none;
    margin-top: 24px;
    padding: 18px;
    border-radius: 16px;
    background: #e7f8fa;
    border: 1px solid rgba(0, 151, 169, 0.2);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-dark);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
}

.checkbox-text {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ================= BUTTON ================= */
button[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0, 151, 169, 0.2);
    margin-top: 28px;
}

button[type="submit"]:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

/* ================= OVERLAY ================= */
#loading-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(248, 251, 251, 0.92); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999; 
    display: none; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 20px; 
}

.spinner { 
    border: 4px solid #e1e7e9; 
    border-top: 4px solid var(--primary); 
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 20px auto; 
}

.overlay-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text); 
    margin-bottom: 12px; 
}

.overlay-text { 
    font-size: 0.95rem; 
    color: var(--muted); 
    line-height: 1.5; 
    max-width: 400px; 
    margin: 0 auto; 
}

.result-icon { 
    margin-bottom: 20px; 
    display: flex;
    justify-content: center;
}

.success-icon { color: var(--primary); }
.error-icon { color: #ef4444; }

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
    body {
        padding: 25px 16px;
    }
    .hero {
        padding: 35px 20px;
        border-radius: 24px;
    }
    .logo {
        max-width: 260px;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    form {
        padding: 25px 20px;
        border-radius: 24px;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .duration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}