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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navigation (Oben und Unten) */
header {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10px);
    max-width: 1200px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #333333;
}

footer {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10px);
    max-width: 1200px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #333333;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00aa66;
}

/* Content-Bereich */
main {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 22px;
}

p {
    margin-bottom: 15px;
    color: #cccccc;
}

/* Kachellayout (Grid) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.service-tile {
    background-color: #111111;
    border: 1px solid #222222;
    padding: 25px;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.service-tile:hover {
    border-color: #00aa66;
}

.service-tile h3 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 12px;
}

.service-tile p {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 0;
    line-height: 1.5;
}

/* 3D-Räume für die Logos */
.logo-container {
    perspective: 1000px;
    margin: 20px auto 40px auto;
    display: block;
    width: 100%;
    text-align: center;
}

.logo-main {
    width: 250px;
    height: auto;
    display: inline-block;
}

.logo-sub {
    width: 180px;
    height: auto;
    display: inline-block;
}

/* Animationsklassen (Einheitlich 2 Sekunden Dauer für 2 Umdrehungen) */
.anim-links-rechts {
    animation: rotate-links-rechts 2s ease-out forwards;
}

.anim-rechts-links {
    animation: rotate-rechts-links 2s ease-out forwards;
}

.anim-oben-unten {
    animation: rotate-oben-unten 2s ease-out forwards;
}

.anim-unten-oben {
    animation: rotate-unten-oben 2s ease-out forwards;
}

/* Keyframes für zwei volle Umdrehungen (720 Grad) */

/* 1. Startseite: Horizontal von links nach rechts (Y-Achse, positiv) */
@keyframes rotate-links-rechts {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(720deg); }
}

/* 2. Über mich: Horizontal von rechts nach links (Y-Achse, negativ) */
@keyframes rotate-rechts-links {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(-720deg); }
}

/* 3. Leistungen: Vertikal von oben nach unten (X-Achse, positiv) */
@keyframes rotate-oben-unten {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(720deg); }
}

/* 4. Kontakt: Vertikal von unten nach oben (X-Achse, negativ) */
@keyframes rotate-unten-oben {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-720deg); }
}

/* Kontaktdaten & Icons */
.contact-info {
    margin-top: 30px;
    text-align: left;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: #ffffff;
}

/* Rechtliche Texte */
.legal-text {
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
}

.legal-text h2 {
    border-bottom: 1px solid #333333;
    padding-bottom: 5px;
    margin-top: 30px;
}
