/* Reset & Basis */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Farben */
    --gelb: #f6d049;
    --orange: #ed852e;
    
    --header-color: var(--orange);
    --card-heading-color: var(--orange);
    --footer-color: black;
    --footer-background: var(--orange);
    
    /* Schriftgrößen */
    --base-font-size: 18px;
    --h1-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.1rem;
    --logo-font-size: clamp(0.8rem, 2vw, 1.1rem);
    --hero-h1-font-size: clamp(1.4rem, 4vw, 2rem);
    --footer-font-size: 0.9rem;
    --reduced-nav-font-size: 0.7rem; /* für schmale Bildschirme */
}

html {
    font-size: var(--base-font-size);
}

body {
    margin: 0;
    font-family: Avenir, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-color: #f9fafb;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-size: var(--h1-font-size);
}

h2 {
    font-size: var(--h2-font-size);
}

h3 {
    font-size: var(--h3-font-size);
}

.large {
    font-size: 1.2rem;
}

/* Layout-Helfer */
.container {
    width: min(1180px, 95%);
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    align-items: top;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--header-color);
}

.logo {
    font-weight: 700;
    font-size: var(--logo-font-size);
}

.breit {
    display: inline;
}

.schmal {
    display: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Impressum im Nav */
.nav .detailangaben {
    align-self: end;
    position: relative;
}

.nav .detailangaben summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.nav .detailangaben summary:hover,
.nav .detailangaben[open] > summary {
    background-color: #e5e7eb;
}

.nav .detailangaben[open] > summary {
    font-weight: 700;
}

.nav .detailangaben-inhalt {
    position: absolute;
    bottom: 100%;
    background-color: #f9fafb;
    color: black;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.2rem 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-weight: normal;
    font-size: 0.65rem;
    
    width: 100vw;
    left: 0;
    box-sizing: border-box;
}

.nav .detailangaben-inhalt h1 {
    font-size: 1.2rem;
    font-weight: 500;
}

.nav .detailangaben-inhalt h2 {
    font-size: 1rem;
    font-weight: 500;
}

.nav .impressum {
    max-width: 500px;
    margin-right: -150px;
}

.nav .datenschutz {
    max-width: 700px;
    margin-right: -200px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--gelb), var(--orange));
    color: black;
    padding: 1rem 0;
}

.hero h1 {
    font-size: var(--hero-h1-font-size);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 1000px;
    margin-bottom: 1rem;
}

.person {
    display: flex;
    justify-content: space-between;
}

.nobr {
    white-space: nowrap;
}

.portrait {
    margin-left: 1rem;
}

.portrait img {
    border-radius: 10px;
}

/* Features */
.features {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
    padding-bottom: 3rem;
}

.card {
    background: white;
    padding: 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card h2 {
    margin-top: 0;
}

.card h2, h3 {
    color: var(--card-heading-color);
}

.card a {
    font-weight: 500;
}

.price-line, .telefon {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    margin-top: 0;
    margin-bottom: 0;
}

.price, .zeiten {
    white-space: nowrap;
    padding-left: 1rem;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--footer-background);
    color: var(--footer-color);
    padding: 1rem 0;
    font-size: var(--footer-font-size);
}

/* Responsive Breakpoints */
@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .breit {
        display: none;
    }

    .schmal {
        display: inline;
    }
    
    .header-content .telefon {
        font-size: var(--logo-font-size);
    }
    
    .nav {
        font-size: var(--reduced-nav-font-size);
    }
    
    .nav .detailangaben-inhalt {
        width: fit-content;
    }
    
    .nav .datenschutz {
        max-width: 600px;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 0.9rem;
    }
    
    .nav .detailangaben-inhalt {
        font-size: 0.6rem;
    }

    .nav .impressum {
        width: fit-content;
    }

    .nav .datenschutz {
        width: fit-content;
    }
}
