html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #F4E1E0;
    color: #0E1627;
}

main {
    flex: 1;
}

header {
    padding: 2.5em 1.25em;
    background-color: #0E1627;
    text-align: center;
}

.logo img {
    width: 5em;
    margin-bottom: 0.625em;
}

nav {
    margin-top: 0.625em;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 0.625em;
    list-style: none;
    font-family: Didot, serif;
    background: transparent;
    padding: 0;
}

.navigation a {
    padding: 0.75em 1.25em;
    color: #F4E1E0;
    text-decoration: none;
    border-radius: 1.25em;
    transition: background 0.3s;
}

.navigation a:hover,
#akt_tab {
    background-color: #BD8E89;
    color: #0E1627;
}

.site-footer {
    background-color: #0E1627;
    color: #F4E1E0;
    text-align: center;
    padding: 3.75em 1.25em;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25em;
    margin-bottom: 2.5em;
}

.footer-logo img {
    width: 5em;
}

.footer-logo p {
    margin: 0.625em 0 0;
    color: #E5C5C1;
    font-size: 1rem;
}

.footer-info p {
    margin: 0.3125em 0;
    font-size: 0.95rem;
}

.footer-info a {
    color: #BD8E89;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #E5C5C1;
}

.footer-bottom {
    border-top: 0.0625em solid #7F6269;
    padding-top: 1.25em;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #E5C5C1;
}

section {
    padding: 3.75em 1.25em;
    text-align: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(1.25em);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animation {
    position: relative;
    height: 25em;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #E5C5C1;
}

.slideshow {
    display: flex;
    gap: 0.9375em;
    animation: slideShow 95s linear infinite;
    width: max-content;
}

.slideshow img {
    width: 15.625em;
    height: 21.875em;
    object-fit: cover;
    border-radius: 0.625em;
    box-shadow: 0 0.25em 0.5em rgba(0,0,0,0.3);
    opacity: 0.8;
    transition: transform 0.5s;
    position: relative;
    z-index: 1;
}

.slideshow img:hover {
    transform: scale(1.05);
    opacity: 1;
}

@keyframes slideShow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.überlagerung-text {
    position: absolute;
    z-index: 10;
    color: #0E1627;
    font-family: Didot, serif;
    text-shadow: 0.25em 0.25em 0.375em #7f6269;
}

.überlagerung-text h1 {
    font-size: 3rem;
    margin: 0;
}

.überlagerung-text a.button {
    margin-top: 1.25em;
    display: inline-block;
    padding: 0.75em 1.75em;
    border: 0.125em solid #0E1627;
    border-radius: 1.25em;
    color: #0E1627;
    background: transparent;
    transition: background 0.3s;
    text-decoration: none;
}

.überlagerung-text a.button:hover {
    background: #BD8E89;
    color: #FFF;
}

.überlagerung-text a.button {
    background-color: rgba(14, 22, 39, 0.7);
    color: #F4E1E0;
    border: none;
}

.section-img-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25em;
    margin-top: 1.25em;
}

.visitenkarten-wrapper {
    perspective: 62.5em;
    margin: 3rem auto;
    width: 18.75em;
    height: 12.5em;
}

.visitenkarte {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.visitenkarte:hover {
    transform: rotateY(180deg);
}

.vorderseite,
.rueckseite {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0.9375em;
    overflow: hidden;
}

.vorderseite img,
.rueckseite img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rueckseite {
    transform: rotateY(180deg);
}

h2 {
    font-family: Didot, serif;
    font-size: 2.25rem;
    color: #7F6269;
    margin-bottom: 2.5em;
}

.magazine-elegant-section {
    text-align: center;
    padding: 5em 1.25em;
    background: #F4E1E0;
    color: #7F6269;
}

.magazine-elegant-section h2 {
    font-family: Didot, serif;
    font-size: 2.25rem;
    color: #7F6269;
    margin-bottom: 2.5em;
}

.magazine-elegant-card {
    width: 80%;
    max-width: 53.125em;
    margin: 0 auto;
    border-radius: 1.25em;
    overflow: hidden;
    box-shadow: 0 0 1.875em rgba(127, 98, 105, 0.3);
    background: linear-gradient(135deg, #f0e6e5, #e5c5c1);
    padding: 0.625em;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.magazine-elegant-card::before {
    content: '';
    position: absolute;
    top: -0.1875em;
    left: -0.1875em;
    right: -0.1875em;
    bottom: -0.1875em;
    z-index: -1;
    background: linear-gradient(45deg, #e5c5c1, #f8f4f4);
    border-radius: 1.375em;
    filter: blur(0.5em);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.magazine-elegant-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 2.5em rgba(127, 98, 105, 0.4);
}

.magazine-elegant-card:hover::before {
    opacity: 0.8;
}

.magazine-elegant-card iframe {
    border: none;
    border-radius: 0.75em;
}

.tagline {
    background: #7F6269;
    color: #F4E1E0;
    font-family: Didot, serif;
}

.tagline .quote {
    font-size: 2rem;
    margin-bottom: 0.625em;
    font-style: italic;
    color: #F4E1E0;
}

.tagline .author {
    font-size: 1rem;
    color: #E5C5C1;
}
