/* general */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, sans-serif;
    font-size: clamp(16px, 2.5vw, 18px);
}

body {
    line-height: 1.6;
    min-height: 100vh;
}

h1 {
    font-size: clamp(26px, 6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #1e40af;
}

h2 {
    color: #2563eb;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: clamp(18px, 3.5vw, 26px);
    margin-bottom: 0.8rem;
}

a {
    text-decoration: none;
    color: #9f9191;
}

button,
.nav-link {
    margin-top: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

button {
    background: #1e40af;
    color: #ffffff;
}

button > a {
    display: inline-table;
    padding: 1.5vh 4vh;
    color: #ffffff;
}

.nav-link:hover,
.nav-link.active {
    background: #f1f5f9;
}

button:hover:not(:disabled) {
    opacity: 0.8;
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
}

ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.error {
    color: red;
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 3vh 4vh 2vh;
}

header .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

/* welcome */
.hero {
    text-align: left;
    position: relative;
}

.hero button {
    margin-top: 1.5rem;
}

.hero-overlay {
    min-height: min(80vh, 800px);
    padding: 14vh 4vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #f8fafc;
    clip-path: path(
        "M0,0 L900,0 C800,50 800,100 800,150 L800,300 C800,350 750,420 700,420 L400,420 C350,420 300,420 250,500 C250,500 220,550 150,550 L0,550 Z"
    );
    z-index: 10;
    color: #162e7f;
}

.hero-base {
    min-height: min(80vh, 800px);
    padding: 14vh 4vh;
    background: linear-gradient(135deg, #1e40af 50%, #333);
    color: #eff6ff;
}

.hero-base h2 {
    color: #97bfe3;
}

.hero-img {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: calc(10vh + 25vw);
    max-height: calc(15vh + 10vw);
    object-fit: contain;
    object-position: center right;
    border-top-left-radius: 100px;
    z-index: 10;
    background-color: #164d8d;
}

.support-img {
    position: absolute;
    right: calc(10vh + 25vw - min(22vw, 200px) / 2);
    bottom: calc(min(22vw, 200px) / -5);
    width: min(22vw, 200px);
    height: min(22vw, 200px);
    object-fit: cover;
    object-position: bottom;
    border-radius: 150%;
    z-index: 10;
}

.hero h2 {
    font-size: clamp(26px, 6vw, 42px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 6vh 4vh;
    gap: 1rem;
}

.feature-card {
    text-align: center;
    transition: all 0.2s ease;
    padding: 3vh 2vh;
    background: rgba(102, 149, 208, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.feature-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.cta {
    text-align: center;
    padding: 15vh 4vh;
    background-image: url("/images/phonecall.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.cta > h2 {
    color: #e2e8f0;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(51, 51, 51, 0.7) 50%,
        rgba(30, 64, 175, 0.7)
    );
    z-index: 1;
}

.cta > * {
    position: relative;
    z-index: 2;
}

/* terminvorschlag */
.hint {
    color: #64748b;
}

.notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-weight: 500;
}

form {
    padding: 10vh 4vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.time-slot {
    display: flex;
    flex-direction: column;
}

.time-slot input {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.time-slot label {
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 2vh;
    display: inline-block;
    width: 80%;
    text-align: center;
    align-self: center;
}

.time-slot label:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
}

.time-slot input:checked + label {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
}

.form-contact {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4vh;
}

label {
    display: block;
    color: #374151;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    padding: 1.5vh;
    margin: 1vh 0 1.5vh;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* footer */
.footer {
    color: #eff6ff;
    background: linear-gradient(45deg, rgba(51, 51, 51) 50%, rgba(30, 64, 175));
    padding: 3vh 4vh 20vh;
}

.footer a {
    color: #afd0fc;
}

.footer > .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.footer-section {
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* shared styles */

.notice,
.time-slot label {
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active,
.feature-card h3,
.contact-item a {
    color: #2563eb;
}

/* media queries */
@media (min-width: 768px) {
    header .content {
        flex-direction: row;
    }
}

@media (min-width: 1600px) {
    .hero-overlay {
        clip-path: path(
            "M0,0 L1200,0 C1100,70 1100,120 1100,170 L1100,320 C1100,370 1050,440 1000,440 L900,440 C850,440 800,440 750,520 C750,520 720,570 650,570 L0,570 Z"
        );
    }
}

@media (min-width: 2400px) {
    .hero-overlay {
        clip-path: path(
            "M0,0 L1500,0 C1400,70 1400,120 1400,170 L1400,320 C1400,370 1350,440 1300,440 L1200,440 C1150,440 1100,440 1050,520 C1050,520 1020,570 950,570 L0,570 Z"
        );
    }
}
