/* 1. Einbinden der lokalen Schriftart Carlito */
@font-face {
    font-family: 'Carlito';
    src: url('../fonts/Carlito-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 2. Grundlegendes Styling */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.07),
        rgba(0, 0, 0, 0.07) 1px,
        transparent 1px,
        transparent 10px
    );
    font-family: 'Carlito', Calibri, Arial, sans-serif;
}

.pc, .mobile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: black;
    box-sizing: border-box;
    text-align: center;
}

.header-image { 
    width: 100%; 
    flex-shrink: 0;
    background-color: #FFFFCC;
    padding-top: 20px;
}

.header-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Grüner mobiler Button */
.call-button {
    width: 100%;
    margin-top: 0px;
    background-color: #25D366; /* Smartphone-Grün */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.call-button a {
    display: flex; /* Flex für Icon + Text Nebeneinander */
    justify-content: center;
    align-items: center;
    gap: 10px; /* Abstand zwischen Icon und Text */
    width: 100%;
    padding: 18px 0;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
}

.call-button svg {
    fill: white;
}

/* Divider */
.divider {
    width: 100%;
    height: 15px;
    flex-shrink: 0;
    line-height: 0;
    overflow: hidden;
}

.divider img {
    width: 100%;       
    height: 15px;      
    display: block;
    object-fit: fill;
}

/* Footer */
.footer {
    width: 100%;
    background-color: black;
    color: #FFFFCC; 
    padding: 0 0 10px 0;
    font-size: 0.65rem; 
    line-height: 1.2;
    flex-shrink: 0;
}

.footer p {
    margin: 0;
    padding: 0 10px;
}

.footer a {
    color: #FFFFCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FFED00;
    text-decoration: underline;
}

/* Responsive Logik */
@media (min-width: 769px) {
    .pc {
        display: flex;
        background-color: #FFFFCC; 
        max-width: 1000px;
        min-height: 100vh;
        margin: 0 auto;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    }
    .mobile { display: none; }
}

@media (max-width: 768px) {
    .mobile {
        display: flex;
        background-color: #FFFFCC; 
        width: 100%;
        min-height: 100vh;
    }

    @media (orientation: portrait) {
        .mobile {
            height: 100dvh;
            min-height: 100dvh;
			padding-top: 10px;
            overflow: hidden;
        }
        .content {
            overflow: hidden;
			font-size: 0.9rem;
        }
    }

    @media (orientation: landscape) {
        .mobile { height: auto; }
    }

    .pc { display: none; }
}

.content img {
    max-height: 20vh;
    width: auto;
    align-self: center; /* Verhindert das horizontale Strecken/Quetschen */
    object-fit: contain; /* Garantiert, dass der Inhalt innerhalb der Box bleibt */
}

/* Container für die Slideshow */
#mobile-slideshow {
    position: relative;
    /*height: 250px;*/ /* Hier die Höhe deines Header-Bildes eintragen */
    overflow: hidden;
}
.placeholder {
	visibility: hidden;
}

#mobile-slideshow img:not(.placeholder) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Das weiche Verschwimmen/Faden */
}

/* Das aktive Bild ist sichtbar */
#mobile-slideshow img.active {
    opacity: 1;
}