html {
    scroll-behavior: smooth;
}
nav{
	font-family: 'Arial', sans-serif;
	font-size: 1em;
}
/* Globale Einstellungen */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: #fff; /* Ganz helles Grau für den Hintergrund */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sorgt dafür, dass der Footer immer unten bleibt */
}
img{
	max-width: 100%;
	height: auto;
}
a img{
	border-radius: 5px;
	margin: 5px 15px;
}

/* Hauptinhalts-Bereich */
main {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}
/* Typografie im Inhaltsbereich */
main h2 {
    color: #999999;
    border-bottom: 2px solid #3498db;
    padding: 5px 0 10px 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
}
main h3 {
	color: #3498db;
	font-size: 1.4em;
	font-weight: 600;
}

.category-header {
    background: #f8f8f8;
    padding: 15px 20px;
    border-left: 4px solid #8b0000;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

.category-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.active-category-title {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
    font-family: serif; /* Passend zum Archiv-Stil */
}

/* Container für die Kacheln */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Einzelne Kachel */
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #007bff;
}

.card .category-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}
.card-image img {
    transition: transform 0.3s ease;
	width: 100%;
    height: 180px;
    object-fit: cover; /* Schneidet das Bild sauber zu, ohne es zu verzerren */
    object-position: center;
    background-color: #f0f0f0; /* Falls das Bild mal gar nicht lädt */
	overflow: hidden;
}

.card:hover img {
    transform: scale(1.05); /* Leichter Zoom-Effekt beim Drüberfahren */
}
/* Grundlegende Header-Struktur */
header {
    background-color: #2c3e50; /* Dunkles Alpin-Blau/Anthrazit */
    color: #ffffff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container für Logo und Navigation (zentriert den Inhalt) */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo / Seitentitel */
.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo a::before {
    margin-right: 10px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 450px; /* ZWINGEND notwendig, sonst ist der Slider 0px hoch */
    background-color: #333; /* Test-Farbe: Wenn du Grau siehst, fehlen nur die Bilder */
    overflow: hidden;
    border-radius: 12px;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* WICHTIG: Hier sind sie versteckt */
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* NUR der aktive Slide wird eingeblendet */
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Der dunkle Verlauf über dem Bild */
.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2; /* Text über den Schatten legen */
    color: white;
    text-align: center;
    padding: 0 20px;
}
.slide-content h1 {
    font-family: 'Raleway', sans-serif; /* Deine neue gewählte Schrift */
    font-size: clamp(2rem, 5vw, 3.5rem); /* Schriftgröße passt sich dem Bildschirm an */
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 10px;
}

.slide-content p {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Höher als die Slides! */
    
    background: rgba(0, 0, 0, 0.4); /* Dunkler Hintergrund, damit weißes Icon sichtbar ist */
    color: #ffffff; /* Weiße Pfeile */
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s ease;
    
    /* Verhindert, dass man den Text der Buttons markieren kann */
    user-select: none;
}

.slider-prev:hover, .slider-next:hover {
    background: #007bff;
	opacity: .7;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.dot.active {
    background-color: #007bff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

/* Hover-Effekt und aktiver Link */
nav ul li a:hover,
nav ul li a.active {
    color: #ffffff;
	text-decoration: none !important;
    border-bottom: 2px solid #3498db; /* Hellblaues Highlight */
}

article a{
	color: #007dff;
	text-decoration: none;
}
article a:hover{
	color: #ff722a;
	text-decoration: underline;
}

.article-content a{
	color: #007dff;
	text-decoration: none;
}
.article-content a:hover{
	color: #ff722a;
	text-decoration: underline;
}

.btn-nav{
	text-decoration: none;
	background: #2c3e50;
	color: white;
	padding: 8px 15px;
	border-radius: 5px;
}
.btn-nav:hover{
	background: #3498db;
}
.search-box form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 15px;
}
.search-box input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 5px;
}
.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}
/* Container für die Suchergebnisse */
.search-container {
    margin-top: 2rem;
    max-width: 800px;
}

/* Einzelne Kategorie-Blöcke */
.search-group {
    margin-bottom: 2.5rem;
    background: #fdfdfd;
    border-left: 4px solid #3498db; /* Deine Akzentfarbe, z.B. Dunkelrot */
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Titel der Kategorie (z.B. Archiv, Alpin) */
.search-cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Die kleine Zahl neben der Kategorie */
.search-cat-title .badge {
    background: #3498db;
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: bold;
}

/* Die Liste der Treffer */
.search-list {
    list-style: none;
    padding: 0;
}

.search-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.search-list li:last-child {
    border-bottom: none;
}

.search-list a {
    text-decoration: none;
    color: #0056b3;
    font-weight: 500;
    transition: color 0.2s;
}

.search-list a:hover {
    color: #8b0000;
    text-decoration: underline;
}
.page-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.page-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #666; 
}

.sub-title {
    margin: 5px 0 0 0;
    font-size: 1.3rem; 
    color: #3498DB;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Erlaubt Zeilenumbruch auf kleinen Bildschirmen */
    list-style: none;
    padding: 15px 0; /* Etwas mehr Platz nach oben/unten */
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5; /* Verhindert Überlappen bei Zeilenumbruch */
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    white-space: nowrap; /* Verhindert, dass ein einzelnes Wort umbricht */
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 12px;
    color: #bdc3c7;
    font-weight: normal;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0; /* Größere Klickfläche */
}

.breadcrumbs a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.breadcrumbs li:last-child {
    color: #2c3e50;
    font-weight: bold;
    white-space: normal; /* Der letzte Punkt (Titel) darf umbrechen */
    overflow: hidden;
    text-overflow: ellipsis; /* Kürzt extrem lange Titel zur Not ab */
}

/* Responsives Design für mobile Geräte */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        padding: 8px 12px;
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
    }
}

.random-feature {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-top: 5px solid #3498db; /* Akzent oben für Abwechslung */
    text-align: center;
}

.feature-label {
    display: inline-block;
    background: #e8f1f6;
    color: #3498db;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.feature-content h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-meta {
    font-size: 0.95rem;
    color: #95a5a6;
    margin-bottom: 20px;
}

.feature-text {
    font-family: 'Lora', serif; /* Die neue Serif-Schrift für Lesbarkeit */
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.btn-feature {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-feature:hover {
    background: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.rot{
	color: #ff0000; 
}

#sagen
{
	padding: 10em 1em 4em 1em;
	border: 2px dotted #607A95;
	-moz-border-radius: 10px;
	border-radius: 10px;
	background: url(/images/sagen_logo.jpg) no-repeat 1em 1em;
}
#sagen:after
{
	clear:both;
}

#kistel
{
	margin: 1em 2em 2em 0;
	float: left;
	font-family: 'Raleway', sans-serif;
	font-size: 0.6em;
	color: #7d7d7d;
	text-align: center;
	letter-spacing: 0.1em;
	line-height: 1.25em;
	max-width: 350px;
}
#kister
{
	margin: 1em 0 2em 2em;
	float: right;
	font-family: 'Raleway', sans-serif;
	font-size: 0.6em;
	color: #7d7d7d;
	text-align: center;
	letter-spacing: 0.1em;
	line-height: 1.25em;
	max-width: 350px;
}
#kister img{
	max-width: 325px !important;
	border-radius: 5px;
}
#kistel img{
	max-width: 325px !important;
	border-radius: 5px;
}
.rund{
	border-radius:5px;
}
.klein{
	font-size: 0.8em;
	color: #7d7d7d;
}
.stext{
	color: #717171;
	font-family: 'Lora', serif;
	font-size: .9em;
	letter-spacing: .04em;
	padding-left: 1.5em;
	border-left: 22px solid #12445a;
}
.hervor {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}
.hervor h2 {
    background: linear-gradient(120deg, #0056b3 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
	font-size: 1.5rem;
    margin-bottom: 1rem;
}

.history-today {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.history-card {
    background: #fdfaf3; /* Altpapier-Ton */
    border: 1px solid #e2d1b3;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
}

.history-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: #8e44ad; /* Ein edles Violett für Historisches */
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.history-year {
    /* Wie zuvor, sorgt für den großen Effekt im Hintergrund */
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0,0,0,0.05);
    pointer-events: none;
}

.history-body h3 {
    font-family: 'Raleway', sans-serif;
    color: #2c3e50;
    margin-top: 10px;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

.history-text {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5d4037;
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.history-link {
    color: #8e44ad;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.history-link:hover {
    border-bottom-color: #8e44ad;
    padding-left: 5px;
	text-decoration: none;
}
.history-meta-top {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.epoch-tag {
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.location-tag {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.stats-container {
    max-width: 800px; /* Etwas breiter für 4 Spalten */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Erzwingt 4 gleiche Spalten */
    text-align: center;
    gap: 15px;
}

.stat-number {
    display: block;
    font-size: 2.5rem; /* Leicht verkleinert von 3rem */
    font-weight: 800;
    color: #3498db;
    margin-bottom: 5px;
}

/* Tablet & Mobile Anpassung */
@media (max-width: 900px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 Layout auf Tablets */
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr; /* Alle untereinander auf kleinen Handys */
    }
}

.accordion-container {
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.accordion-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.word-de {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.accordion-header .icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: #3498db;
}

/* Wenn aktiv: Icon drehen und Header färben */
.accordion-item.active .icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    background: #f2f8fd;
    border-bottom: 1px solid #eee;
}

/* Content-Steuerung */
.accordion-content {
    display: none;
    padding: 15px;
    background: #fafafa;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Dialekt-Anordnung (Grid) */
.dialect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.dialect-entry {
    font-size: 0.95rem;
    padding: 5px 0;
}

.dialect-entry strong {
    color: #3498db;
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.dialect-note {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    font-size: 0.9rem;
    color: #666;
}

/* Spezifisches Design NUR für die Suche im Mundart-Lexikon */
.mundart-lexikon .search-box {
    background: #fdfdfd; 
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Das Eingabefeld im Lexikon */
.mundart-lexikon .search-box input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #bbb; /* Etwas dezenterer Rand */
    border-radius: 4px;
    font-size: 1rem;
    color: #333 !important; 
    background-color: #ffffff !important;
}

/* Fokus-Effekt */
.mundart-lexikon .search-box input[type="text"]:focus {
    border-color: #8b0000;
    outline: none;
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.1);
}

/* Der Button im Lexikon */
.mundart-lexikon .search-box button {
    padding: 12px 25px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.mundart-lexikon .search-box .btn-reset {
    text-decoration: none;
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

/* Mobile Korrektur nur für diesen Bereich */
@media (max-width: 600px) {
    .mundart-lexikon .search-box {
        flex-direction: column;
        align-items: stretch;
    }
}

.alphabet-filter a {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.2s;
}

.alphabet-filter a:hover, 
.alphabet-filter a.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Einheitliches Paginierungs-Design für Galerie, Archiv & Alpin */
.pagination-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.page-link, .page-dots {
    display: inline-block;
	margin: 8px 0;
    padding: 10px 18px;
    color: #3498db;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

/* Hover-Effekt: Der schicke Lift-Up */
.page-link:hover {
    background-color: #f1f3f5;
    border-color: #3498db;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Aktive Seite */
.page-link.active {
    background-color: #3498db !important;
    color: #ffffff !important;
    border-color: #3498db !important;
    cursor: default;
    transform: none !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Die Punkte (...) */
.page-dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #666;
}

/* Footer-Design */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    border-top: 4px solid #3498db;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3498db;
}

.copyright {
    font-size: 0.8rem;
    color: #7f8c8d;
}

#backToTop {
    /* Positionierung */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    
    /* Design: Jetzt als abgerundetes Quadrat */
    border: none;
    outline: none;
    background-color: #2c3e50;
    color: white;
    cursor: pointer;
    
    /* Gleiche Breite und Höhe für ein Quadrat */
    width: 50px;
    height: 50px;
    
    /* Abgerundete Ecken (hier kannst du mit dem Wert spielen) */
    border-radius: 8px; /* Kleiner Wert = quadratischer, großer Wert = runder */
    
    /* Zentrierung des Inhalts (Pfeil) */
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);

    /* Animationen */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, transform 0.3s ease, background-color 0.3s;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #e67e22;
    transform: translateY(-5px); /* Kleiner "Hüpf"-Effekt nach oben */
}
/* Spezifisch für das Archiv-Intro */
.category-grid {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
	position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Etwas mehr Platz für das Bild */
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    margin-bottom: 10px;
	text-decoration: none !important;
}

.category-card .cat-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px); /* Blur-Effekt hinter der Badge */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.category-card:hover .cat-badge {
	transform: scale(1.05);
}

.category-card .cat-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}


/* Stil für das Icon im Book-Button */
.category-card svg {
    margin-bottom: 5px;
    color: #3498db;
    transition: transform 0.3s ease, color 0.3s ease;
}

.category-card:hover svg {
	transform: translateY(-3px) scale(1.1);
    color: #3498db;
}
.card-overlay {
    position: absolute;
    inset: 0;
    /* Verlauf von transparent zu dunkel unten, damit Text lesbar bleibt */
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.cat-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.cat-name {
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
    .category-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .filter-link { padding: 6px 15px; background: #f8f9fa; border: 1px solid #ddd; border-radius: 20px; text-decoration: none; color: #555; font-size: 0.9em; transition: all 0.2s; }
    .filter-link:hover { background: #e9ecef; }
    .filter-link.active { background: #007bff; color: white; border-color: #007bff; }
    .page-link { padding: 8px 14px; background-color: #fff; border: 1px solid #dee2e6; color: #007bff; text-decoration: none; border-radius: 4px; transition: all 0.2s; }
    .page-link:hover { background-color: #e9ecef; }
    .page-link.active { border-color: #007bff; color: #007bff; cursor: default; }
    .page-dots { padding: 8px; color: #6c757d; }
    .card:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
	.back-to-intro:hover {background-color: #0056b3 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
	
.login-box {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.admin-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.btn-admin {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.btn-admin:hover { background: #16a085; }

/* Versteckt alle Bilder/Flaggen in der Leaflet-Attribution */
.leaflet-control-attribution img, 
.leaflet-control-attribution .flag-icon,
.leaflet-control-attribution svg {
    display: none !important;
}

/* Falls die Flagge als Hintergrundbild (Background-Image) eingebunden ist */
.leaflet-control-attribution * {
    background-image: none !important;
}

.btn-primary {
    background-color: #007bff;
    border-color: #0069d9;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary.border-0 {
    color: #6c757d;
    text-decoration: underline;
    font-size: 0.85rem;
}

.btn-outline-secondary.border-0:hover {
    background: transparent;
    color: #343a40;
}

/* Der abdunkelnde Hintergrund */
.consent-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Halbtransparentes Schwarz */
    backdrop-filter: blur(4px); /* Optional: macht den Hintergrund unscharf */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Das weiße Fenster */
.consent-modal {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-align: center;
    animation: popIn 0.3s ease-out;
	border-top: 5px solid #007bff;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.consent-header h3 { margin-bottom: 15px; font-weight: 700; }
.consent-body { margin-bottom: 25px; line-height: 1.5; }
.consent-footer { display: flex; flex-direction: column; gap: 10px; }

/* Desktop-Anpassung für Buttons nebeneinander */
@media (min-width: 576px) {
    .consent-footer { flex-direction: row; justify-content: space-between; align-items: center; }
}