/* ---- Basics ------------------------------------------------------ */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    background-color: #fbfbfb;
    color: #151515;
}

/* ---- Fade in and out ------------------------------------------------------ */
.fade-in-left {
    opacity: 0;
    transform: translateX(-120px); /* Startposition - links außerhalb des sichtbaren Bereichs */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0); /* Zielposition - im sichtbaren Bereich */
}

.fade-in-left.fade-out {
    opacity: 0;
    transform: translateX(120px); /* Zielposition - rechts außerhalb des sichtbaren Bereichs */
}

.fade-in-right {
    opacity: 0;
    transform: translateX(120px); /* Startposition - rechts außerhalb des sichtbaren Bereichs */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0); /* Zielposition - im sichtbaren Bereich */
}

.fade-in-right.fade-out {
    opacity: 0;
    transform: translateX(-120px); /* Zielposition - links außerhalb des sichtbaren Bereichs */
}

.fade-in-bottom {
    opacity: 0;
    transform: translateY(120px); /* Startposition - unten außerhalb des sichtbaren Bereichs */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-in-bottom.visible {
    opacity: 1;
    transform: translateY(0); /* Zielposition - im sichtbaren Bereich */
}

.fade-in-bottom.fade-out {
    opacity: 0;
    transform: translateY(120px); /* Zielposition - unten außerhalb des sichtbaren Bereichs */
}

/* Langsames Einfaden für das Bild im "Über mich"-Abschnitt */
.fade-in-slow {
    transition: opacity 3s ease-in-out, transform 3s ease-in-out;
}

/* Verzögerung für das Einfaden von Texten */
.fade-in-delay {
    transition-delay: 0.33s;
}

/* Verzögerung für die Themenblöcke */
.fade-in-stagger-1 {
    transition-delay: 0.33s;
}

.fade-in-stagger-2 {
    transition-delay: 0.67s;
}

.fade-in-stagger-3 {
    transition-delay: 1.0s;
}



/* ---- Farben ------------------------------------------------------ */
.white {color: #fbfbfb;}
.black {color: #151515;}
.grey {color:#414141;}
.light-grey {color: #959595;}
.yellow {color: #FFAD00;}
.blue {color: #434C6b;}
.red {color: #A8302E;}
.green {color: #457149;}
.violet {color: #5d436b;}
.light-yellow {color: #ffd680;}
.light-blue {color: #929ab5;}
.light-red {color: #d38687;}
.light-green {color: #96b997;}
.light-violet {color: #ffd680;}



/* ---- Schriftarten und Ligaturen entfernen ------------------------------------------------------ */
@font-face {
    font-family: 'Amatic SC';
    src: url('../fonts/AmaticSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Amatic SC';
    src: url('../fonts/AmaticSC-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Walter Turncoat';
    src: url('../fonts/WalterTurncoat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

p, h1, h2, h3, h4, h5, h6, a, a:hover, a:focus, a:visited, ol, ul, li {
	-moz-font-feature-settings: "liga=0";
	font-feature-settings: "liga" 0;
}

/* headlines */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
        font-family: 'Lora', serif;
        margin: 0.5em 0 0.2em 0;
        color: #FFAD00;
}


h1, .h1 { font-size: 3.0em; font-weight: 500; letter-spacing: 0.1em;}
h2, .h2 { font-size: 2.0em; font-weight: 500; letter-spacing: 0.1em; }
h3, .h3 { font-size: 1.2em; font-weight: 500; letter-spacing: 0.1em; }
h4, .h4 { font-size: 1.1em; font-weight: 500; letter-spacing: 0.1em; }
h5, .h5 { font-size: 1.0em; font-weight: 500; letter-spacing: 0.1em; }


/* links */

a[href^='http://'],
a[href^='https://'],
a[href^='http://']:hover,
a[href^='https://']:hover
{
	padding-right: 16px;
	height: 1em;
	background: url(../img/icon-link-extern.png) right no-repeat;
	border-bottom: 1.5px dotted #151515;
    text-decoration: none;
	color: #434C6b;
}

a,
a:hover,
a:checked {
	text-decoration: none;
	color: #151515;
}

hr {
    border: 2px solid #FFAD00;
    height: 1px;
    width: 200px;
    margin: 10px 0;
}

/* ---- Menue ------------------------------------------------------ */
nav.navbar {
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: none;
    padding: 10px 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert das Logo horizontal */
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert den Text vertikal zum Logo */
    margin-left: 10px; /* Fügt Abstand zwischen Logo und Text hinzu */
}

.brand-name {
    font-family: 'Lora', serif;
    color: #FBFBFB; /* oder jede andere gewünschte Farbe */
    font-size: 1.2em; /* Anpassen nach Bedarf */
}

.brand-slogan {
    font-family: 'Amatic SC', cursive;
    color: #FBFBFB; /* oder jede andere gewünschte Farbe */
    font-size: 1em; /* Slogan kleiner machen */
}

.nav-link {
    color: #FBFBFB !important; /* Textfarbe weiß und wichtig gesetzt */
    transition: color 0.3s; /* Glatter Übergang nur für Farbänderung */
    text-decoration: none; /* Entfernt die Textdekoration */
    padding: 10px 15px; /* Hinzugefügt für Hintergrundfarbe auf volle Breite des Links */
    background-color: transparent !important; /* Entfernt jegliche Hintergrundfarbe */
}

.nav-link:hover, .nav-link:focus {
    background-color: transparent !important; /* Entfernt die Mouseover-Box */
    color: #FFAD00 !important; /* Textfarbe beim Hover auf Gelb setzen und wichtig markieren */
    text-decoration: none; /* Keine Textdekoration beim Hover */
}

/* ---- Header ------------------------------------------------------ */
header {
    background: url('../img/desk.png') no-repeat center center/cover;
    background-color: #66886d;
    height: 100vh;
    background-size: 100vw auto;
    position: relative;
    color: #FBFBFB;
}

.header-content {
    text-align: left;
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
}

.header-content hr {
    border: 2px solid #FFAD00;
    height: 0px;
    width: 55%;
    margin: 10px 0;
}

.header-content p {
    margin: 5px 0;
}

.subtext {
    font-family: 'Amatic SC', cursive;
    font-size: 1.5em;
}

/* ---- Über mich ------------------------------------------------------ */
.about-me {
    background-color: #FBFBFB;
    color: #151515;
    padding: 50px 20px;
}

.about-me img {
    width: 100%; /* Bild nimmt die volle Breite der Spalte ein */
    transition: transform 0.2s;
}

.about-me img.fade-in-right {
    opacity: 0;
    transform: translateX(100px); /* Startposition - rechts außerhalb des sichtbaren Bereichs */
    transition: opacity 2s ease-in-out, transform 2s ease-in-out; /* Schnelleres Einfaden */
}

.about-me img.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0); /* Zielposition - im sichtbaren Bereich */
}

.about-me img.fade-in-right.fade-out {
    opacity: 0;
    transform: translateX(-100px); /* Zielposition - links außerhalb des sichtbaren Bereichs */
}

.about-me img:hover {
    transform: scale(1.05);
}

.about-me p {
    margin: 0 0 20px;
}

.about-me .btn-contact {
    background-color: #FFAD00;
    color: #151515;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.about-me .btn-contact:hover {
    background-color: #FFD680;
}

#about-me-extended {
    opacity: 0;
    transform: translateY(120px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    margin-bottom: 100px;
}

#about-me-extended.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---- Text im "Über mich"-Abschnitt ------------------------------------------------------ */
.about-me .col-md-8.fade-in-left {
    opacity: 0;
    transform: translateX(-100px); /* Startposition - links außerhalb des sichtbaren Bereichs */
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.about-me .col-md-8.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0); /* Zielposition - im sichtbaren Bereich */
}

.about-me .col-md-8.fade-in-left.fade-out {
    opacity: 0;
    transform: translateX(100px); /* Zielposition - rechts außerhalb des sichtbaren Bereichs */
}

/* ---- Themen Boxen ------------------------------------------------------ */
.card {
    cursor: pointer;
    transition: transform 0.2s;
}

.card:hover, .card.expanded {
    transform: scale(1.05);
}

.card-title {
    color: #5D436B;
    font-family: 'Lora', serif;
}

.card-body p {
    color: #414141;
}

/* START --> Test Section for textboxes */
.slim-button {
    background-color: #FFAD00;
    color: #151515;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
    float: right;
    margin-top: 10px;
}

.slim-button:hover {
    background-color: #FFD680;
}

.additional-text {
    margin: 10px 0;
}

.expanded-info-container {
    margin-top: 20px;
}

.expanded-info {
    background-color: #FBFBFB;
    color: #414141;
    display: block;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #FFAD00;
    font-size: 20px;
}

/* Optional, adjust according to your design needs */
.card-text {
    display: block; /* Ensure the content is visible when moved to the overlay */
}

/* Styles for clickable elements within the overlay to ensure they look interactive */
a {
    color: #007BFF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Adjust the width and position of the overlay box to better match the content area */
.overlay-box {
    width: 80%; /* Example width, adjust as needed */
    margin: auto; /* Centering the box horizontally */
}

/* Optionally, ensure any interactive elements within the card text are visible and functional */
a {
    color: #007BFF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

#themes-container {
    background-color: #434C6B;
    width: 100%;
    padding: 50px 0;
}

#themes {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---- Themenblöcke ------------------------------------------------------ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%; /* Für bessere mobile Ansicht angepasst */
    max-height: 80%;
    overflow-y: auto; /* Ermöglicht das Scrollen innerhalb des Overlays */
}

/* Allgemeines Styling für den Close-Button */
.close-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FFAD00; /* Gelber Kreis */
    color: white; /* Weißes X */
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100; /* Stellt sicher, dass der Button über dem Overlay-Inhalt liegt */
}

/* Anpassungen für Mobile Devices */
@media (max-width: 767px) {
    .overlay-content {
        width: 95%; /* Anpassung für eine größere Ansicht auf kleinen Bildschirmen */
        padding: 20px; /* Reduzierter Innenabstand */
        position: relative; /* Wichtig für die relative Positionierung des Close-Buttons */
        margin: 10px auto; /* Zentriert die Textbox in der Mitte des Overlays und fügt einen kleinen Rand hinzu */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Schatten zur Hervorhebung der Textbox */
        background-color: white; /* Weiße Hintergrundfarbe der Textbox */
        border-radius: 8px; /* Weiche Kanten */
        max-height: 85vh; /* Beschränkt die Höhe der Textbox */
        overflow-y: auto; /* Ermöglicht das Scrollen innerhalb der Textbox */
    }

    .close-button {
        position: fixed; /* Fixiert den Button in der oberen rechten Ecke des Bildschirms */
        right: 10px; /* Abstand vom rechten Rand des Bildschirms */
        top: 10px; /* Abstand vom oberen Rand des Bildschirms */
    }
}

/* Anpassungen für Desktop-Ansicht */
@media (min-width: 768px) {
    .overlay-content {
        width: 55%; /* Größer für Desktop-Ansicht */
        padding: 20px; /* Reduzierter Innenabstand */
        position: relative; /* Wichtig für die relative Positionierung des Close-Buttons */
        margin: 20px auto; /* Zentriert die Textbox in der Mitte des Overlays und fügt einen kleinen Rand hinzu */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Schatten zur Hervorhebung der Textbox */
        background-color: white; /* Weiße Hintergrundfarbe der Textbox */
        border-radius: 8px; /* Weiche Kanten */
        max-height: 85vh; /* Beschränkt die Höhe der Textbox */
        overflow-y: auto; /* Ermöglicht das Scrollen innerhalb der Textbox */
        overflow: visible; /* Stellt sicher, dass der Close-Button nicht abgeschnitten wird */
    }

    .close-button {
        position: absolute; /* Relativ zum .overlay-content positioniert */
        right: -15px; /* 15px außerhalb des rechten Randes */
        top: -15px; /* 15px außerhalb des oberen Randes */
    }
}










/* ---- Kontakt ------------------------------------------------------ */
.contact-text {
    margin-bottom: 20px;
}

/* Responsive Einstellungen für den Kontaktbereich */
@media (max-width: 767px) {
    #contact .row {
        flex-direction: column; /* Blöcke untereinander im mobilen Modus */
    }

    #contact .col {
        margin-bottom: 20px; /* Abstand zwischen den Blöcken */
    }
}

/* ---- Footer ------------------------------------------------------ */
footer {
    background-color: #414141;
    color: #FFD680;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

footer a {
    color: #FFD680;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ---- Responsive Einstellungen ------------------------------------------------------ */
@media (min-width: 768px) {
    .about-me {
        flex-direction: row; /* Bild und Text nebeneinander im Desktop-Modus */
    }

    .about-me img {
        margin-right: 20px; /* Abstand zwischen Bild und Text */
        margin-bottom: 0; /* Entfernt den unteren Rand im Desktop-Modus */
    }
}

@media (max-width: 767px) {
    .about-me {
        flex-direction: column; /* Bild und Text übereinander im mobilen Modus */
        text-align: center; /* Zentriert den Text im mobilen Modus */
    }

    .about-me img {
        margin-bottom: 20px; /* Abstand zwischen Bild und Text im mobilen Modus */
        transform: none; /* Keine Hover-Transformation im mobilen Modus */
    }

    .about-me .col-md-8 {
        text-align: center; /* Zentriert den Text im mobilen Modus */
    }

    .about-me .btn-contact {
        width: 100%; /* Kontakt-Button über die gesamte Breite im mobilen Modus */
        padding: 15px; /* Größerer Puffer im mobilen Modus */
    }

    .fade-in-left, .fade-in-right, .fade-in-bottom {
        opacity: 1; /* Stellen Sie sicher, dass die Elemente im mobilen Modus sichtbar sind */
        transform: none; /* Keine Transformation im mobilen Modus */
        transition: none; /* Keine Übergänge im mobilen Modus */
    }
}



/* ---- Cookie-Warnung ------------------------------------------------------ */
.cookie-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.cookie-image {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-left: 150px;
}

.cookie-content {
    max-width: 300px;
}

.cookie-content strong {
    font-size: 1.0em;
    margin-bottom: 10px;
    display: inline-block;
}

.cookie-content p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #333;
}

.cookie-link {
    color: #FFAD00;
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-button {
    background-color: #FFAD00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.cookie-button:hover {
    background-color: #e6a500;
}
