/* style.css */
@charset "UTF-8";

/* Gradient im Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #ffffff, #d0fff5);
    color: #333;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Animations-Container */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Grundstil für Kreise */
.circle {
    position: absolute;
    bottom: -150px;
    background: rgba(80, 227, 194, 0.35); /* leicht transparentes Türkis */
    border-radius: 50%;
    animation: rise linear infinite;
}

/* Verschiedene Kreise */
.circle:nth-child(1) {
    width: 120px; height: 120px; left: 10%;
    animation-duration: 25s;
}
.circle:nth-child(2) {
    width: 200px; height: 200px; left: 30%;
    animation-duration: 30s;
}
.circle:nth-child(3) {
    width: 150px; height: 150px; left: 55%;
    animation-duration: 22s;
}
.circle:nth-child(4) {
    width: 250px; height: 250px; left: 75%;
    animation-duration: 35s;
}
.circle:nth-child(5) {
    width: 180px; height: 180px; left: 90%;
    animation-duration: 28s;
}

@keyframes rise {
    from {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    to {
        transform: translateY(-120vh) scale(1.6);
        opacity: 0;
    }
}



/* Header und Menü */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Wrapper für Logo + Text */
.logo-wrapper {
    display: flex;
    align-items: center;
}

header img {
    max-height: 50px;
}

.logo-text {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-left: 10px;        /* Abstand zwischen Logo und Text */
    background-color: transparent;
    white-space: nowrap;
}

/*Menue*/

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none !important;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0 10px;
    border-right: 1px solid rgba(0,0,0,0.1); /* leichtere Linie */
}

nav a:last-child {
    border-right: none; /* letzte Linie entfernen */
}

nav a:hover {
    color: #4a90e2;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}


@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #fff;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        border-radius: 8px;
    }
    
    nav a {
        border-right: none;
        padding: 5px 0;
    }

    nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

     
}

/* Container */
.container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffffcc;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    text-align: left;
}

h1 {
    font-size: 2.5em;
    margin: 20px 0;
    color: #000000;
}

h2 {
    font-size: 1.8em;
    color: #000;
    margin-top: 30px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

h2:hover {
    color: #b18853;
}

h2::before {
    content: "\2605"; /* Unicode für Stern */
    margin-right: 10px;
    color: #ed992b;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 40px 0;
}

.text-block:hover hr {
    border-top-color: #4a90e2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #ed992b;
    transform: scale(1.05);
    border: none;
}


/* Platzhalterbild */
.hero-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0px 0px 0 0;
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    color: #333;
    margin-top: 40px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

footer a {
    color: #4a90e2;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Impressum */
.impressum {
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffffcc;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.impressum h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #4a90e2;
}

/* Fix für Sticky Header bei Scrollen */
.text-block {
    scroll-margin-top: 80px;
}

#impressum {
    scroll-margin-top: 80px;
}

.sub-section h3 {
    font-size: 1.4em;
    color: #333;
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.sub-section h3::before {
    content: "\2192"; /* Unicode für Pfeil → */
    margin-right: 8px;
    color: #50e3c2;
}

/* Alle Links grundlegend gestalten */
a:link, a:visited {
    color: black;       
    text-decoration: underline; 
}

a:hover {
    color: #4a90e2;   
    text-decoration: underline; 
}

a:active {
    color: #4a90e2; 
}

/* Links innerhalb von .btn überschreiben */
a.btn, .btn a {
    color: white !important;           /* weiß */
    font-weight: bold !important;      /* fett */
    text-decoration: none !important;  /* keine Unterstreichung */
}

a.btn:hover, .btn a:hover {
    color: black !important;           
    text-decoration: none !important;  
}

a.btn:active, .btn a:active {
    color: white !important;           
}


/* Extra-Text */
.extra-text {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #4a90e2;
    border-radius: 5px;
}

form input {
    padding: 10px;
    width: 80%;
    margin-bottom: 10px;
}

.cookie-hinweis {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    margin-top: 20px;
}

.cookie-hinweis a {
    color: #ed992b;
    text-decoration: none;
}

.cookie-hinweis a:hover {
    text-decoration: underline;
}

/*Tabelle Unterrichtsdokumentation*/
table.unterricht {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

table.unterricht th {
  background-color: #4a90e2;
  color: white;
  padding: 10px;
  text-align: left;
}

table.unterricht td {
  border: 1px solid #ddd;
  padding: 8px;
}

/* Tabelle in einen flexiblen Container packen */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* sanftes Scrollen auf iOS */
}

table.unterricht {
  border-collapse: collapse;
  width: 100%;
  min-width: 400px; /* sorgt dafür, dass die Tabelle nicht gequetscht wird */
}
