/* Main Content */
/* Main Content */
/* Main Content */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

/* Sektionen */
.section {
    min-block-size: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: background 0.5s ease-in-out;
}

.darkgray {
    background: #1b1b1b;
}

.offwhite {
    background: #282828;
    color: black;
}

/* Main Content */
/* Main Content */
/* Main Content */


/* Menu*/
/* Menu*/
/* Menu*/
/* Menü main */
#menu {
    position: fixed;
    inset-block-start: 20px; 
    inset-inline: 0;             /* links & rechts 0 */
    z-index: 1000;
    display: flex;
    justify-content: center;     /* statt flex-end → zentrieren */
    align-items: center;
    opacity: 0;
    animation: slideInRight 2s ease-out 1.5s forwards; 
    inline-size: 100%;
    background: rgba(15, 15, 15, 0.5); 
    padding: 10px 0;
    transition: background 0.3s ease;
}


/* Menü-Items */
#menu-items {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin: 0%;
    padding: 10px;
}

#menu-items li {
    margin-inline-start: 50px; 
}

/* Styling für Links */
#menu-items a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease, border-top 0.3s ease;
}

/* Hover-Effekt für Links */
#menu-items a:hover,
#menu-items a.active {
    color: #8b8b8b; 
    font-weight: bold;
    border-block-start: 2px solid #8b8b8b;
    padding-block-start: 3px;
}

/* Burger Menü */
#burger-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    #menu-items {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        inset-block-start: 60px;
        inset-inline-end: 0;
        inline-size: 200px;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    }

    #menu-items li {
        margin: 10px 0;
        text-align: center;
    }

    #burger-menu {
        display: block;
    }

    #menu.open #menu-items {
        display: flex;
    }
}

/* Keyframes Menu flight in */
@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1; /* Menü wird sichtbar */
    }
}

/* Menu*/
/* Menu*/
/* Menu*/


/* SEKTION START*/
/* SEKTION START*/
/* SEKTION START*/
#start {
    background: url('../images/bgr_start.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-block-size: 100vh;
    color: rgb(232, 229, 229);
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Allgemeine Textstile */
.title, .subtitle {
    position: absolute;
    opacity: 0;
    text-shadow: 2px 2px 10px rgba(124, 124, 124, 0.5);
}

/* Haupttitel */
.title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    letter-spacing: 5px;
    inset-block-start: 35vh;
    animation: slideInLeft 2s ease-out forwards;
}

/* Untertitel */
.subtitle {
    font-family: 'Raleway', sans-serif !important;
    font-size: clamp(1rem, 4vw, 2.5rem);
    font-weight: 400;
    inset-block-start: 65vh;
    animation: slideInRight 2s ease-out 0.5s forwards;
}

/* Gradient Bar */
.gradient-bar {
    position: absolute;
    inset-block-start: 60vh; 
    inline-size: 0%;
    block-size: 4px;
    background: linear-gradient(to right, transparent, rgb(216, 216, 216), transparent);
    animation: expandBar 2s ease-out 0.5s forwards;
}

/* Animationen */
@keyframes expandBar {
    0% { inline-size: 0%; }
    100% { inline-size: 75%; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Responsive Anpassungen */
@media (max-width: 1024px) { /* Laptops */
    .title {
        inset-block-start: 30vh;
        font-size: clamp(3rem, 7vw, 6rem);
    }

    .subtitle {
        inset-block-start: 60vh;
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .gradient-bar {
        inset-block-start: 47vh;
        block-size: 3px;
    }
}

@media (max-width: 768px) { 
    .title {
        inset-block-start: 28vh; 
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .subtitle {
        inset-block-start: 55vh;
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }

    .gradient-bar {
        inset-block-start: 45vh;
        block-size: 2px;
    }
}

@media (max-width: 480px) { /* Smartphones */
    .title {
        font-size: 3rem;
        inset-block-start: 25vh;
    }

    .subtitle {
        font-size: 1.5rem;
        inset-block-start: 50vh;
    }

    .gradient-bar {
        inset-block-start: 40vh;
        block-size: 2px;
    }

/* SEKTION START*/
/* SEKTION START*/
/* SEKTION START*/



/*SEKTION ABOUT*/
/*SEKTION ABOUT*/
/*SEKTION ABOUT*/

}
/* Container Main */
.container {
    display: flex;
    flex-wrap: wrap;
    max-inline-size: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: center;
    gap: 2rem;
}

.text {
    flex: 1; 
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;   /* Blocksatz */
    hyphens: auto;         /* automatische Silbentrennung */
}


/* Rechte Spalte: Bild */
.image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image img {
    inline-size: 100%;
    max-inline-size: 350px; 
    block-size: auto;
    border-radius: 10px; 
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

#begruesstext {
    font-size: 2rem; 
    font-weight: bold; 
    color: white; 
    text-align: start; 
    margin-block-end: 1rem; 
    display: block; 
}


/* Responsive Anpassungen */
@media (max-width: 768px) {
    .container {
        flex-direction: column; 
        text-align: center;
    }
    .text {
        font-size: 1rem;
    }
}

/*SEKTION ABOUT*/
/*SEKTION ABOUT*/
/*SEKTION ABOUT*/



/* SEKTION PROJEKTE */
/* SEKTION PROJEKTE */
/* SEKTION PROJEKTE */
.project-container {
    display: flex;
    flex-wrap: wrap; 
    max-inline-size: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: center;
    gap: 2rem;
}

/* Thumb Style */
.project {
    display: flex;
    flex-direction: column; 
    align-items: center;
    inline-size: 20%; 
    background-color:#282828;

    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff; 
    overflow: hidden; 
    flex: 1 1 30%; 
    box-sizing: border-box; 
    transition: background-color 0.3s ease; 
}

/* Hover-Effekt */
.project:hover {
    background-color: #1b1b1b; 
}

/* Thumb-Pic */
.project img {
    inline-size: 100%; 
    block-size: auto; 
    border-radius: 10px;
    margin-block-end: 10px; 
    transition: none; 
}

/* Titel */
h2 {
    font-size: 24px;
    margin-block-end: 10px;
    color: #ffffff;
}

/* Beschreibung */
p {
    font-size: 16px;
    color: #ffffff;
}

/* Links */
a {
    color: gray;
    text-decoration: none;
}

/* Responsives Layout */
@media (max-width: 768px) {
    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .project {
        max-inline-size: 90%; 
    }
}

.info-text {
    text-align: center;
    font-size: 0.8rem; 
    max-inline-size: 80%; 
    margin: 10px auto;
    line-height: 1.5;
    display: block; 
}

.project-icon {
    inline-size: 50%;   /* halb so groß wie Original */
    max-inline-size: 120px; /* optional: maximale Breite begrenzen */
    block-size: auto;
    margin-block-end: 15px;
    display: block;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

/* SEKTION PROJEKTE */
/* SEKTION PROJEKTE */
/* SEKTION PROJEKTE */



/* Kontaktbereich */
/* Kontaktbereich */
/* Kontaktbereich */
#contact {
    min-block-size: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    inline-size: 100%;
    box-sizing: border-box; /* WICHTIG: Berücksichtigt Padding und Border in der Gesamtgröße */
}

form {
    display: flex;
    flex-wrap: wrap;
    max-inline-size: 800px;
    inline-size: 100%;
    gap: 20px;
    align-items: flex-start;
    box-sizing: border-box; /* Sorgt dafür, dass keine überflüssigen Ränder oder Abstände entstehen */
}


h2 {
    text-align: center;
    color: #ffffff;
}

/* Neues flexibles Layout */
form {
    display: flex;
    flex-wrap: wrap;
    max-inline-size: 800px;
    inline-size: 100%;
    gap: 20px;
    align-items: flex-start;
}

/* Linke Spalte */
.form-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    margin-inline-end: 40px;
}

/* Rechte Spalte (größeres Nachrichtenfeld) */
.form-right {
    flex: 2;
}

/* Volle Breite für Inputs & Textarea */
input, textarea {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    inline-size: 100%;
}

textarea {
    block-size: 150px;
    resize: none;
}

/* Button unter das Formular setzen */
.form-bottom {
    display: flex;
    justify-content: center;
    inline-size: 100%;
    margin-block-start: 20px; /* Abstand zum Formular */
}

button {
    background-color: #5764ef;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #0056b3;
}

#form-status {
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    inline-size: 100%;
    margin-block-start: 20px;
}

#contact label {
    font-size: 1.2rem;   /* gleiche Größe wie p im about-Block */
    line-height: 1.6;
    color: white;        /* gleiche Farbe */
    display: block;      /* sorgt für saubere Ausrichtung über dem Input */
    margin-block-end: 5px;  /* etwas Abstand zum Input */
}

@media (max-width: 768px) {
  form {
    flex-direction: column; /* stapelt Spalten */
    gap: 15px;
  }

  .form-left {
    margin-inline-end: 0; /* Abstand rechts entfernen */
  }

  .form-right {
    flex: unset;          /* gleiche Breite wie form-left */
  }

  textarea {
    block-size: 200px;    /* darf auf Mobile etwas höher sein */
  }
}



/* Kontaktbereich */
/* Kontaktbereich */


/* ===== Impressum (nur diese Sektion) ===== */
#impressum .container {
  /* Container in der Mitte, etwas Innenabstand */
  display: block;              /* statt flex, damit nichts „nebeneinander“ erzwingt */
  max-inline-size: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;          /* seitlicher Puffer auf kleinen Screens */
}

#impressum .impressum {
  color: #a8a8a8;
  line-height: 1.7;
  /* sorgt dafür, dass sehr lange URLs/Worte umbrechen */
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

#impressum .impressum p.contact-line {
  text-align: center;
}


/* Überschriften & Text: responsive mit clamp() */
#impressum .impressum h1 {
  color: #fff;
  text-align: center;
  margin-block-end: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
}

#impressum .impressum h2 {
  color: #fff;
  margin-block-start: 1.5rem;
  margin-block-end: 0.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

/* Absätze linksbündig (bessere Lesbarkeit), mit responsive Fontgröße */
#impressum .impressum p {
  margin-block-end: 1rem;
  color: #fff;
  text-align: start;
  font-size: clamp(0.95rem, 1.8vw, 1rem);
}

/* Links */
#impressum .impressum a {
  color: #adadad;
  text-decoration: none;
  font-weight: 500;
}
#impressum .impressum a:hover {
  text-decoration: underline;
}

/* Feinheiten nach Breite */
@media (max-width: 1024px) {
  #impressum .container { max-inline-size: 820px; }
  #impressum .impressum { line-height: 1.75; }
}

@media (max-width: 768px) {
  #impressum .container { max-inline-size: 680px; padding: 1.5rem 1rem; }
  #impressum .impressum { line-height: 1.8; }
  /* Kontaktzeilen auf kleineren Screens etwas luftiger */
  #impressum .impressum p { margin-block-end: 0.9rem; }
}

@media (max-width: 480px) {
  #impressum .container { max-inline-size: 95%; padding: 1.25rem 0.75rem; }
  #impressum .impressum h1 { margin-block-end: 0.75rem; }
}




/*FOOTER*/
/*FOOTER*/
/*FOOTER*/
footer {
    position: fixed;
    inset-block-end: 0;
    inline-size: 100%;
    background: linear-gradient(0deg, rgb(19, 19, 19), rgba(0, 0, 0, 0)); /* Schwarz (unten) → Transparent (oben) */
    color: white;
    text-align: center;
    padding: 5px 0; /* Schmaler Footer */
    font-size: 12px; /* Falls der Text zu groß ist, kannst du hier anpassen */
}



footer p {
    font-size: 12px;
    line-height: 0px;
}

/*FOOTER*/
/*FOOTER*/
/*FOOTER*/

/*MODE*/
/*MODE*/
/*MODE*/
#floating-theme-toggle {
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 20px; /* Falls du ihn links willst: inset-inline-start: 20px; */
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%; /* Rundes Icon */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1000; /* Damit er über anderen Elementen bleibt */
}

#floating-theme-toggle:hover {
    background: white;
    color: black;
}

/* Die gesamte Scrollbar */
::-webkit-scrollbar {
    inline-size: 12px;
    block-size: 12px;
}

/* Daumen der Scrollbar */
::-webkit-scrollbar-thumb {
    background-color: #444; /* Dunkler Daumen */
    border-radius: 6px;
}

/* Track der Scrollbar */
::-webkit-scrollbar-track {
    background-color: #222; /* Dunkler Track */
}

/*MODE*/
/*MODE*/
/*MODE*/

.project-iframe {
    inline-size: 100%;
    block-size: 500px; /* oder anpassen je nach Inhalt */
    border: none;
}


/*MODAL*/
/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* sichtbar */
.modal.active {
  display: flex;
}

/* Modal Content dunkelgrau + Text weiß */
.modal-content {
  background: #111; /* fast schwarz */
  color: #fff;
  padding: 2rem 1.5rem; /* oben/unten 2rem, links/rechts 1.5rem */
  border-radius: 12px;
  max-inline-size: calc(100% - 10cm); /* horizontale Breite bleibt perfekt */
  inline-size: calc(100% - 6cm);
  max-block-size: calc(100% - 2cm);  /* jetzt vertikal ca. 2cm Abstand oben/unten */
  overflow-y: auto;                  /* scroll falls nötig */
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  position: relative;
  animation: fadeIn 0.3s ease;
}



/* Schließen */
.modal-close {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Modal Content dunkelgrau + Text weiß */
.modal-content {
  background: #111; /* fast schwarz */
  color: #fff;
}

/* Container für alle Spiele im Modal */
.modal-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

/* Einzelne Spiel-Karte */
.modal-project {
  flex: 1 1 300px; /* klein, stabil */
  max-inline-size: 300px;
}

.modal-img {
  inline-size: 100%;        /* passt sich der Kachel an */
  block-size: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  margin-block-end: 0.5rem;
}


.modal-img:hover {
  transform: scale(1.05);
}

/* Titel */
.modal-project h2 {
  font-size: 1rem;
  margin: 0.3rem 0;
}

/* Beschreibung */
.modal-project p {
  font-size: 0.8rem;
  margin-block-end: 0.5rem;
}

/* Button */
.modal-button {
  display: inline-block;
  background-color: #222;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.modal-button:hover {
  background-color: #444;
}

/* Schließen X weiß */
.modal-close {
  color: #fff;
}
