/* ===== Dunkles Farbschema (überschreibt main.css) ===== */
:root {
	--bg-card: #262f38;
	--bg-deep: #1d242b;
	--text: #c3c9cf;
	--text-dim: #8b939b;
	--head: #ffffff;
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.22);
	--accent: #18bfef;
}

body, input, select, textarea { color: var(--text); }
a { color: var(--accent); border-bottom-color: rgba(24, 191, 239, 0.4); }
a:hover { color: #6fd8f6 !important; border-bottom-color: transparent; }
strong, b, h1, h2, h3, h4, h5, h6, label, table th { color: var(--head); }
h2 a, h3 a { color: var(--head); }
hr, blockquote, code, .box, ul.divided li, table tbody tr, table thead, table tfoot, table.alt tbody tr td { border-color: var(--line); }
header.major .date:before, header.major .date:after { border-top-color: var(--line); }

/* Hauptbereich */
#main { background-color: var(--bg-card); }
#main > * { border-top-color: var(--line); }
#main > .posts > article { border-color: var(--line); }

/* Navigation: aktiver Reiter verschmilzt mit dem Inhalt */
#nav ul.links li.active { background-color: var(--bg-card); }
#nav ul.links li.active a { color: var(--accent); }

/* Buttons */
input[type="submit"], input[type="reset"], input[type="button"], button, .button {
	box-shadow: inset 0 0 0 2px var(--line-strong);
	color: var(--head) !important;
}
input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, button:hover, .button:hover {
	box-shadow: inset 0 0 0 2px var(--accent);
	color: var(--accent) !important;
}
input[type="submit"].primary, input[type="reset"].primary, input[type="button"].primary, button.primary, .button.primary {
	background-color: var(--accent);
	box-shadow: none;
	color: #ffffff !important;
}
input[type="submit"].primary:hover, input[type="reset"].primary:hover, input[type="button"].primary:hover, button.primary:hover, .button.primary:hover {
	background-color: #3fcbf2;
	color: #ffffff !important;
}

/* Formulare */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
	border-color: var(--line-strong);
	color: var(--head);
	background: rgba(0, 0, 0, 0.15);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background-color: var(--bg-deep); color: var(--head); }
.select-wrapper:before { color: var(--text-dim); }
::placeholder { color: var(--text-dim) !important; }
input[type="checkbox"] + label, input[type="radio"] + label { color: var(--text); }
input[type="checkbox"] + label:before, input[type="radio"] + label:before { border-color: var(--line-strong); background: rgba(0, 0, 0, 0.15); }
input[type="checkbox"]:checked + label:before, input[type="radio"]:checked + label:before {
	background-color: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}

/* Footer */
#footer { background-color: var(--bg-deep); color: var(--text); }
#footer > section, #footer > section.split > section { border-color: var(--line); }
#footer input[type="text"], #footer input[type="email"], #footer textarea { border-color: var(--line-strong); }
#footer h2, #footer h3, #footer label { color: var(--head); }
#footer a { color: var(--accent); }

/* Mobile-Menü */
#navPanel { background: var(--bg-deep); color: var(--text); }
#navPanel .links li { border-top-color: var(--line); }
#navPanel .links li a { color: var(--head); }
#navPanel .close:hover { color: var(--accent); }
#navPanelToggle.alt { background-color: rgba(29, 36, 43, 0.92); color: var(--head); }
#navPanelToggle.alt:hover { background-color: var(--bg-deep); }

/* Eigene Elemente */
.service-icon { background: radial-gradient(ellipse at center, #2f3a45 0%, var(--bg-deep) 75%); }
.small-note { color: var(--text-dim); }
.timeline li::before { background: var(--bg-card); }
.timeline .tl-date { color: var(--accent); }
.result-box { background: var(--bg-deep); border: 1px solid var(--line); }
.section-title { border-top-color: var(--line); }
.upload-box { border-color: var(--line-strong); color: var(--text-dim) !important; }

/* ===== Fotos mit weichem Übergang ===== */
.about-photo img { box-shadow: none; border-radius: 0; } /* Übergang ist ins Bild eingerechnet */
#main .posts .image.fit img,
#main .image.main img {
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 50%, transparent 100%);
	mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 50%, transparent 100%);
}
#main .posts .image.fit:before { display: none; }

/* Sprachumschalter */
#nav ul.icons li a.lang-switch {
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 900;
	font-size: 0.8rem;
	letter-spacing: 0.075em;
	border: 2px solid rgba(255, 255, 255, 0.5);
	padding: 0.2rem 0.45rem;
	margin-left: 0.5rem;
	border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}
#nav ul.icons li a.lang-switch:hover { border-color: #18bfef; color: #18bfef !important; }

/* ===== Projekt-Galerie ===== */
.gallery-nav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0 0 1rem 0; }
.gallery-nav li { padding: 0; }
.gallery-nav a { display: inline-block; padding: 0.35rem 0.9rem; border: 2px solid var(--line-strong); border-radius: 2rem; color: var(--head); font-size: 0.85rem; }
.gallery-nav a:hover { border-color: var(--accent); }
.gallery-title { margin: 3.5rem 0 0.25rem 0; padding-top: 2rem; border-top: 2px solid var(--line); }
.gallery-lead { color: var(--text-dim); margin-bottom: 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; }
.gallery a { display: block; border: 0; overflow: hidden; border-radius: 6px; position: relative; }
.gallery a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 1.5rem 0.25rem var(--bg-card); pointer-events: none; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: 0.85rem; line-height: 1.5; color: var(--text); padding: 0.6rem 0.2rem 0 0.2rem; }
#lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 19, 23, 0.94); display: none; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
#lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 4px; }
#lightbox figcaption { color: #e2e2e2; margin-top: 0.75rem; font-size: 0.95rem; }
#lightbox button { position: absolute; background: none; box-shadow: none; border: 0; color: #fff !important; font-size: 3rem; line-height: 1; padding: 0 1rem; height: auto; cursor: pointer; }
#lightbox button:hover { color: var(--accent) !important; box-shadow: none; }
#lightbox .lb-close { top: 1rem; right: 1rem; font-size: 2.5rem; }
#lightbox .lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
