/* Grundlegende Struktur */
@font-face {
    font-family: 'Open Sans';
    font-style: NORMAL;
    font-weight: 400;
    src: url(../src/fonts/OpenSans/OpenSans-VariableFont_wdth\,wght.ttf) format('truetype');
}

html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f0f0f0;
}

@media screen and (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }
}

/* Bestehende Vollbild-Sektion (Splash Screen) */
.splash-screen {
    position: relative;
    display: table;
    table-layout: fixed;
    width: 100%;
    min-height: 100vh;
    /* Mindestens 100% der Viewport-Höhe */
    line-height: normal;
    text-align: center;
    font-size: 1.1em;
    color: #fff;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Beispielbildpfad: HIER MUSS DEIN BILDPFAD REIN */
    background-image: url("/Bilder/2.png");
}

/* Overlay für den Hintergrund (Abdunkelung/Transparenz) */
.splash-screen:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0.4;
    background-color: #000;
    z-index: 0;
}

/* Inhalt des Splash Screens */
.container {
    position: relative;
    display: table-cell;
    width: 100%;
    vertical-align: middle;
    padding: 1em 2em;
    z-index: 1;
}

/* ---------------------------------------------------- */
/* Lightblue Button Stil (Outline/Outline-Fill) */
/* ---------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: transparent;
    color: #51eded;
    border: 2px solid #51eded;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #51eded;
    color: #333;
    /* Dunkle Schrift auf hellem Hintergrund */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn:active {
    background-color: #30dcdc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

/* ---------------------------------------------------- */
/* BILD-FORM KLASSEN (einfach zu ändern) */
/* ---------------------------------------------------- */
/* Rund (Standard-Anforderung) */
.image-shape-round {
    border-radius: 9999px;
    /* Tailwind: rounded-full */
}

/* Quadratecke (Beispiel für Änderung) */
.image-shape-square {
    border-radius: 10px;
    /* Leichter Rand */
}

/* Abgeschnittene Ecke (Beispiel für komplexe Form) */
.image-shape-cutout {
    clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
    border-radius: 0;
    /* Clip-Path überschreibt runde Ecken */
}

.container-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1.h1 {
    color: #51eded;
    border-bottom: 4px solid #51eded;
    padding-bottom: 5px;
    margin-bottom: 25px;
    font-size: 2.5em;
}

h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4em;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

a {
    color: #51eded;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #30dcdc;
    text-decoration: underline;
}

.date {
    font-style: italic;
    display: block;
    margin-top: -15px;
    margin-bottom: 20px;
}


/* ======================================= */
/* Globale Voreinstellungen für Animationen */
/* ======================================= */
/* Animationen sollen nur einmal ablaufen, daher die initialen Zustände */

/* Elemente "Über mich" (links/rechts) */
#ueber-mich-section .md\:w-2\/3 {
    /* Text-Spalte (links) */
    opacity: 0;
    transform: translateX(-50px);
    /* Startposition links */
    transition: none;
    /* Deaktiviert Transition bis JS-Klasse hinzugefügt wird */
}

#ueber-mich-section .md\:w-1\/3 {
    /* Bild-Spalte (rechts) */
    opacity: 0;
    transform: translateX(50px);
    /* Startposition rechts */
    transition: none;
}

/* Elemente "Meine Leistungen" */
.grid>div {
    /* Die einzelnen Leistungs-Karten */
    opacity: 0;
    transform: translateY(50px);
    /* Startposition von unten */
    transition: none;
}

/* ======================================= */
/* Animations-Keyframes */
/* ======================================= */

/* Einflug-Animation von links (für Text) */
@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Einflug-Animation von rechts (für Bild) */
@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Einflug-Animation von unten (für Leistungen) */
@keyframes slideInFromBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text-Spalte (links) */
.animate-me .md\:w-2\/3 {
    animation: slideInFromLeft 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Bild-Spalte (rechts) */
.animate-me .md\:w-1\/3 {
    animation: slideInFromRight 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 2. MEINE LEISTUNGEN (Staggered Bottom Slide) */
.animate-leistungen .grid>div {
    /* Standard-Animation für alle Leistungskarten */
    animation: slideInFromBottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Versetzte Animation (Staggered Effect) - jede Karte 0.5s später */

/* 1. Karte */
.animate-leistungen .grid>div:nth-child(1) {
    animation-delay: .5s;
    /* Leichter Start-Delay */
}

/* 2. Karte */
.animate-leistungen .grid>div:nth-child(2) {
    animation-delay: 1s;
    /* 0.1s + 0.5s */
}

/* 3. Karte */
.animate-leistungen .grid>div:nth-child(3) {
    animation-delay: 1.5s;
    /* 0.6s + 0.5s */
}