/* Allgemeine Einstellungen */
html { scroll-behavior: smooth; }
body {
  background-color: #656565;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Maximale Breite */
.container {
  max-width: 1200px;
}

/* Header */
/* Header (stabil, ohne Layout-Shift) */
.blog-header {
  background-color: #2C2C2C;
  color: #fff;
  /* feste vertikale Höhe via konstantes Padding -> kein Reflow beim Shrink */
  padding: 1.25rem 0;
  border-bottom: 5px solid #FFC107;
  will-change: transform; /* für flüssige GPU-Animationen */
}

/* Flex-Alignments bleiben wie gehabt */
.blog-header .container {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo-Bereich: nur optisch skalieren */
.blog-header .logo {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.5rem); /* Basisgröße */
  font-weight: bold;
  transform-origin: left center;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s cubic-bezier(.4,0,.2,1);
}

.blog-header .logo a { color: #fff; }
.blog-header .logo a:hover { color: #FFC107; }

.blog-header p { margin: 0; color: #ccc; }

/* Logo-Grafik hat feste Höhe; wird NICHT mehr auf 0 gefahren */
.logo-icon {
  height: 2em;
  width: auto;
  vertical-align: middle;
  transition: opacity .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
}

/* Shrink-Zustand: nur transform/opacity, keine padding/border-width-Änderung */
.blog-header.is-shrunk .logo {
  transform: scale(.86);
  opacity: .96;
}

.blog-header.is-shrunk .logo-icon {
  transform: scale(.82);   /* leicht mit schrumpfen lassen */
  opacity: .95;            /* optional minimal abdunkeln */
}

/* Optionale mini-Einrückung im Shrink */
.blog-header.is-shrunk .logo { padding-left: .2rem; }

/* === Header Shrink Override === */
.blog-header {
  transition: padding .25s cubic-bezier(.4,0,.2,1),
              border-bottom-width .25s cubic-bezier(.4,0,.2,1);
}

.blog-header.is-shrunk {
  padding: .15rem 0;
  border-bottom-width: 2px;
}

.blog-header.is-shrunk .logo { transform: scale(.75); opacity:.96; }
.blog-header.is-shrunk .logo-icon { transform: scale(.75); opacity:.95; }

/* Navbar Toggler */
.navbar-toggler {
	background: none;
	border: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 24px;
	width: 30px;
	min-width: 30px; /* Mindestbreite */
	min-height: 30px; /* Mindesthöhe */
	padding: 5px;     /* Innenabstand */
	cursor: pointer;
}

.navbar-toggler span {
	display: block;
	height: 4px;
	width: 100%;
	background-color: white;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Off-Canvas Navbar */
.offcanvas {
	background-color: #444;
	color: #fff;
}

.offcanvas-title {
 	font-size: 2rem;
}

.offcanvas .nav-link {
 	color: #fff;
 	font-size: 1.2rem;
}

.offcanvas .nav-link:hover {
 	color: #FFC107 !important;
}

.offcanvas a.nav-link.currentPage {
 	color: #FFC107 !important;
}

.offcanvas .nav-link:focus,
.offcanvas .nav-link:active {
 	color: #FFC107 !important;
}

.main-content {
	background-color: #fff;
	color: #000;
}

a {
	color: #0D6EFD;
	text-decoration: none;
}

a:hover {
 	color: #000;
}

/* Blog Posts */
.blog-post a {
	color: #0D6EFD;
}

.blog-post a:hover {
 	color: #FFC107;
}

.blog-post-title a {
  	color: #000;
}

.blog-post-title a:hover {
 	color: #FFC107;
}

.blog-post-date {
	line-height: 0.7rem;
	font-size: 0.8rem;
}

.blog-post::after {
    content: "";
    display: table;
    clear: both;
}

.main-content img {
    max-width: 100%;
    height: auto;
}




/* Sidebar */
aside {
  	margin-top: 1rem;
}

.bg-light {
  	background-color: #444 !important;
  	color: #fff;
}

.bg-light a {
  	color: #fff;
}

.bg-light a:hover {
  	color: #FFC107;
}

/* Footer */
footer {
  	background-color: #2C2C2C;
  	color: #aaa;
}

footer a {
  	color: #FFC107;
}

footer a:hover {
  	color: #fff;
}

.blog-footer {
  	background-color: #2C2C2C;
  	color: #fff;
  	padding: 0rem 0;
}

.blog-footer .container {
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.text-nowrap   { white-space: nowrap !important; }

/* Labels */
label {
	font-weight: 700;
	margin-bottom: 0.5rem;
	display: block;
	color: #000;
}

/* OWN */
#cookie-banner {
	transition: opacity 0.3s ease, bottom 0.3s ease;
    opacity: 0;
    bottom: -200px; /* Startposition leicht versteckt */
    
    position: fixed;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: #2c2c2c;
    border-top: 5px solid #FFC107;
    color: #fff;
    text-align: left;
    z-index: 999;
}

#cookie-banner a { color: #FFC107; }
#cookie-banner a:hover { color: #fff; }

#cookie-banner.show {
    opacity: 1;
    bottom: 0; /* In Position schieben */
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 100;
    padding: 10px 20px;
    transition: padding 0.3s ease; /* Glatte Übergänge */
}

.cursorpointer {
	cursor: pointer !important;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-body {
  flex: 1;
}

.card-body p {
    word-break: break-word;
    overflow-wrap: break-word;
}


.card-img-top {
  height: 200px; /* gewünschte feste Höhe – anpassen nach Bedarf */
  object-fit: cover;
  object-position: center;
}

.bg-gradient-dark {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

.object-fit-cover {
    object-fit: cover;
    height: 100%;
}

.card-img-overlay a:hover {
    text-decoration: underline !important;
}

.autocomplete-suggestions {
    display: none; /* Standardmäßig versteckt */
    position: absolute;
    border: 1px solid #ccc;
    background: white;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 100%; /* Passt sich der Input-Breite an */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    color: #000;
}

.suggestion-item:hover, .suggestion-item.selected {
    background-color: #007bff;
    color: white;
}


	input[type=text],
	input[type=url],
	input[type=email],
	input[type=password],
	input[type=datetime-local],
	textarea,
	select {
		padding: 15px 20px !important;
	}

	hr {
		margin: 2rem 0;
		width: 100%;
	}
	
code {
	color: #aa8000 !important;
	white-space: pre-wrap;
}

@media (max-width: 450px) {
	body {
        font-size: 1rem; /* Weniger Padding */
    }
	
    .card-img-overlay {
        padding: 1rem; /* Weniger Padding */
    }

    .card-title {
        font-size: 1.1rem; /* Kleinere Schriftgröße */
    }
}


/* Dark Mode (wird automatisch angewendet, wenn das GerÃ¤t auf Dark Mode steht) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212 !important;
        color: #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .main-content {
		background-color: #2c2c2c;
		color: #fff;
	}
	
	a {
		color: #00bbff;
	}
	a:hover {
		color: #fff;
	}
	
	table, tr, td {
		border: 1px solid #777 !important;
	}
    
    th {
    	background-color: #444 !important;
    	color: #fff !important;
    }
    
    tr, td {
    	background-color: #333 !important;
    	color: #fff !important;
    }
    
    .modal-content {
    	background-color: #444 !important;
    	color: #fff !important;
    }

	.text-muted {
		color: #999 !important;
	}
	
	ul li button .nav-link .active {
		background-color: #888 !important;
		border: 1px solid #777 !important;
	}
	
	.nav-tabs {
		border-bottom: 1px solid #777 !important;
	}
	
	.nav-link {
		background-color: #444 !important;
		border: 0 !important;
		color: #fff !important;
	}
	
	.nav-link.active {
		background-color: #777 !important;
		border: 0 !important;
		color: #fff !important;
	}
	
	.alert-info {
		background-color: #032830 !important;
		color: #68D6EC !important;
		border: 1px solid #087990 !important;
	}
	.alert-primary {
		background-color: #031633 !important;
		color: #60b7ff !important;
		border: 1px solid #084298 !important;
	}
	.alert-secondary, .alert-secondary label {
		background-color: #051B11 !important;
		color: #c0c0c0 !important;
		border: 1px solid #41464B !important;
	}
	.alert-danger {
		background-color: #630008 !important;
		color: #F8D7DA !important;
		border: 1px solid #842029 !important;
	}
	.alert-warning {
		background-color: #332701 !important;
		color: #FFC107 !important;
		border: 1px solid #997404 !important;
	}
	.alert-success {
		background-color: #051B11 !important;
		color: #00f281 !important;
		border: 1px solid #0F5132 !important;
	}
	
	.input-group-text {
		background-color: #444 !important;
		border: 1px solid #777 !important;
		color: #fff !important;
	}
	
	.card {
		background-color: #444 !important;
		border: 1px solid #777 !important;
		color: #fff !important;
	}
	.card a {
		color: #fff !important;
	}
	
	hr {
		border: none;
		border-top: 1px solid #777 !important;
		margin: 2rem 0;
		width: 100%;
	}
	
	/* Standard Input-Felder im Dark Mode */
	input[type=text],
	input[type=url],
	input[type=email],
	input[type=number],
	input[type=password],
	input[type="datetime-local"],
	input[type="date"],
	input[type="file"],
	textarea,
	select {
	    background-color: #444 !important;
	    border: 1px solid #777 !important;
	    color: #fff !important;
	}
	
	/* ðŸŽ¨ Hover-Effekt */
	input[type=text]:hover,
	input[type=url]:hover,
	input[type=email]:hover,
	input[type=number]:hover,
	input[type=password]:hover,
	input[type="datetime-local"]:hover,
	input[type="date"]:hover,
	input[type="file"]:hover,
	textarea:hover,
	select:hover {
	    background-color: #555 !important;
	}
	
	/* ðŸš€ Fokus (wenn das Feld aktiv ist) */
	input[type=text]:focus,
	input[type=url]:focus,
	input[type=email]:focus,
	input[type=number]:focus,
	input[type=password]:focus,
	input[type="datetime-local"]:focus,
	input[type="date"]:focus,
	input[type="file"]:focus,
	textarea:focus,
	select:focus {
	    background-color: #555 !important;
	    outline: none !important;
	    color: #fff !important;
	}
	
	/* Placeholder-Farbe Ã¤ndern */
	input::placeholder,
	textarea::placeholder {
	    color: #fff !important; /* Helleres Grau fÃ¼r den Platzhalter */
	    opacity: 0.8 !important; /* Weniger auffÃ¤llig */
	}
	
	/* Webkit (Chrome, Safari, Edge) */
	input::-webkit-input-placeholder,
	textarea::-webkit-input-placeholder {
	    color: #fff; !important
	}
	
	/* Mozilla (Firefox) */
	input::-moz-placeholder,
	textarea::-moz-placeholder {
	    color: #fff !important;
	}
	
	/* Microsoft Edge */
	input:-ms-input-placeholder,
	textarea:-ms-input-placeholder {
	    color: #fff !important;
	}
	
	/* Edge/IE */
	input::-ms-input-placeholder,
	textarea::-ms-input-placeholder {
	    color: #fff !important;
	}
	
	.form-label {
		color: #fff !important;
	}
	.form-check-label {
		color: #fff !important;
	}
	
	.accordion-item {
	    background-color: #444 !important; /* Heller Hintergrund */
	    border: 1px solid #555 !important; /* DÃ¼nner Rand */
	    border-radius: 5px; /* Abgerundete Ecken */
	    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
	}
	
	.accordion-button {
	    background-color: #333 !important; /* Blaue Farbe */
	    color: white; /* WeiÃŸe Schrift */
	    font-weight: bold;
	}
	
	.accordion-button:not(.collapsed) {
	    color: red !important; /* Dunklerer Blauton, wenn aktiv */
	}
	
	.accordion-body {
	    background-color: #444 !important;
	    color: #fff !important;
	    padding: 15px;
	    font-size: 1rem;
	}
	
	.accordion-button::after {
	    content: "\f078"; /* Pfeil nach unten (Font Awesome) */
	    font-family: "Font Awesome 5 Free"; /* Falls du Font Awesome nutzt */
	    font-weight: 900;
	    transition: transform 0.3s ease;
	}
	
	.accordion-button:not(.collapsed)::after {
	    transform: rotate(180deg); /* Pfeil zeigt nach oben, wenn ausgeklappt */
	}
	
  .pagination {
    background-color: transparent;
  }

  .pagination .page-link {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #555;
  }

  .pagination .page-link:hover {
    background-color: #444;
    color: #ffc107;
  }

  .pagination .page-item.active .page-link {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
  }

  .pagination .page-item.disabled .page-link {
    background-color: #333;
    color: #777;
    border-color: #555;
  }
  
	.list-group-item {
		background-color: transparent !important;
  		color: #fff !important;
  	  	border: none !important;
  	}
  	
  	

	code {
		color: #FFC107 !important;
	}
}

/* --- FIX FÜR ANKER-LINKS MIT STICKY HEADER --- */
/* Wählt alle Elemente aus, deren ID mit "comment-" beginnt */
[id^="comment-"] {
    /* Das ist der Zaubertrick: Abstand beim Scrollen zum Anker */
    scroll-margin-top: 150px; /* Passe diesen Wert an die Höhe deines Headers an + 20px Luft */
}

/* --- VISUELLES FEEDBACK --- */
/* Wenn ein Kommentar per Anker-Link angesprungen wird (:target) */
[id^="comment-"]:target {
    animation: highlightComment 3s ease-out forwards;
}

/* Animation für das Aufleuchten */
@keyframes highlightComment {
    0% {
        background-color: rgba(255, 193, 7, 0.3); /* Startet gelblich */
        transform: scale(1.02);
    }
    100% {
        background-color: transparent; /* Blendet aus */
        transform: scale(1);
    }
}

/* sanfter Zoom nur auf Geräten mit echtem Hover */
@media (hover: hover) {
  /* Liste alle Bild-Varianten in Cards auf, die du nutzt */
  .card .ratio .object-fit-cover,
  .card .card-img-top.object-fit-cover,
  .card .card-img.object-fit-cover {
    transition: transform .35s ease, filter .3s ease;
    will-change: transform;
  }
  .card:hover .ratio .object-fit-cover,
  .card:hover .card-img-top.object-fit-cover,
  .card:hover .card-img.object-fit-cover {
    transform: scale(1.05);
    filter: brightness(1.05);
  }
}

/* Motion-Preference respektieren */
@media (prefers-reduced-motion: reduce) {
  .card .ratio .object-fit-cover,
  .card .card-img-top.object-fit-cover,
  .card .card-img.object-fit-cover {
    transition: none;
  }
}