*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #232323;
    font-size: 18px;
    font-family: 'Open Sans' !important;
    min-height: 100vh;
}

body {
    min-height: 100vh;
    padding: 0 !important;
    background: #fff;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: 2vh auto 0;
    text-align: center;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(60, 40, 20, 0.07), 0 1.5px 6px 0 rgba(60, 40, 20, 0.03);
    padding: 2rem 1rem 1.8rem;
    border: 1.5px solid #ece7df;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.container:hover {
    box-shadow: 0 12px 48px 0 rgba(60, 40, 20, 0.13), 0 2px 8px 0 rgba(60, 40, 20, 0.05);
}

h1 {
    font-size: 2.2rem;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #181818;
    line-height: 1.2;
    padding: 0 0.5rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media screen and (max-width: 730px) {
    h1 {
        font-size: 1.8rem;
        padding: 0 0.3rem;
    }
    
    .container {
        padding: 1.5rem 0.8rem 1.5rem;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0.5rem auto 1.5rem;
    max-width: 80%;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.desc {
    margin-bottom: 1.2rem;
    margin-top: -0.5rem;
    color: #1C2023;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-align: center;
}

.contact-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 0 0;
}

.contact {
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(60,40,20,0.06);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    border: 1.5px solid #ece7df;
    margin-bottom: 1.2rem;
    color: #232323;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.7;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact .firma {
    font-weight: 700;
    color: #1C2023;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 0.1rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    text-transform: none;
}

.contact .person {
    font-weight: 400;
    color: #232323;
    margin-bottom: 0.2rem;
    display: block;
    font-size: 1.04rem;
    letter-spacing: 0.01em;
}

.contact .mail {
    /* color: #1C2023; */
    font-weight: 600;
    font-size: 1.04rem;
    text-decoration: underline;
    margin-top: 0.7rem;
    display: inline-block;
    letter-spacing: 0.01em;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    border: none;
}

.impressum {
    margin-top: 1.2rem;
    font-size: 0.99rem;
    color: #181818;
    letter-spacing: 0.01em;
    border: none;
    padding-top: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: none;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .impressum {
        margin-bottom: 20px;
    }
}

.impressum-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 740px) {
    h1 {
        font-size: 1.9rem;
        padding: 0 0.75rem;
        line-height: 1.3;
        white-space: nowrap;
    }

    .container {
        max-width: 99vw;
        padding: 1.2rem 0.5rem 1.1rem 0.5rem;
        border-radius: 14px;
    }

    body {
        padding: 0;
    }

    .contact-section {
        margin: 1.5rem 0 0 0;
    }
    .contact {
        max-width: 98vw;
        padding: 1.1rem 0.5rem 1rem 0.5rem;
        border-radius: 12px;
        font-size: 1rem;
    }
    .contact .firma {
        font-size: 1.07rem;
    }
    .contact .person, .contact .mail {
        font-size: 1rem;
    }

    .impressum-section {
        margin-top: 1.2rem;
    }
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh;
    margin-bottom: 5vh;
    margin-top: 7vh;
    padding-bottom: 24px;
}

.placeholder-image {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfa16a;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 4px 24px 0 rgba(60,40,20,0.10);
    position: static;
    overflow: hidden;
}

.main-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh;
    margin-bottom: 5vh;
    margin-top: 7vh;
    padding-bottom: 24px;
}

.headline-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow-x: hidden;
    container-type: inline-size;
    container-name: headline-container;
}

.headline {
    font-size: clamp(1.5rem, 8vw, 2.7rem);
    margin: 0 0 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0;
    display: block;
    box-sizing: border-box;
    color: #1C2023;
    line-height: 1.3;
    padding-bottom: 0.7rem;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    overflow: visible;
}

.responsive-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
}

@media (max-width: 740px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .main-container {
        max-width: 98vw;
        width: 98vw;
        padding: 0;
        margin: 3vh auto 0;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .headline-section {
        width: 100%;
        max-width: 100%;
        padding: 0.3rem 0;
        margin: 0;
        overflow: visible;
        container-type: inline-size;
        container-name: headline-container;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .headline-section > div {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        display: block;
        text-align: center;
        overflow: visible;
    }
    .headline {
        /* Fallback-Schriftgröße - wird von JavaScript überschrieben */
        font-size: clamp(1.2rem, 5.8vw, 2.2rem);
        width: 100%;
        max-width: 100%;
        padding: 0.2rem 0;
        margin: 0;
        box-sizing: border-box;
        letter-spacing: 0.02em;
        text-align: center;
        display: block;
        white-space: nowrap;
        overflow: visible;
        line-height: 1.3;
    }
    .placeholder-image {
        width: 100%;
        max-width: 99vw;
        border-radius: 0;
        margin-left: 0;
        left: auto;
    }
    .responsive-image {
        max-width: 800px;
        border-radius: 10px;
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }
}

a {
    text-decoration: none;
}

@font-face {
  font-family: 'Open Sans';
  src: url('./OpenSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Open Sans';
  src: url('./OpenSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}