/* ============================================================
   ALTMANN IT — DESIGN SYSTEM
   ============================================================
   INDEX:
   ─────────────────────────────────────────────────────────
   001  Design Tokens (CSS-Variablen) ........ Zeile 5
   055  Layout ................................ Zeile 55
   064  Header ................................ Zeile 64
   104  Logo .................................. Zeile 104
   188  Navigation ............................ Zeile 188
   270  Admin Navigation - Dropdowns .......... Zeile 270
   440  Responsive Navigation ................. Zeile 440
   524  Hero Section .......................... Zeile 524
   671  Buttons ............................... Zeile 671
   747  Section Header ........................ Zeile 747
   765  Overview Grid (Home Cards) ............ Zeile 765
   887  Card Grid (Blog / Portfolio) .......... Zeile 887
   980  Fade-In (IntersectionObserver) ........ Zeile 980
   993  Breadcrumb ............................ Zeile 993
   998  Forms ................................. Zeile 998
   1103 Footer ................................ Zeile 1103
   1164 Detail Pages .......................... Zeile 1164
   1258 Utilities ............................. Zeile 1258
   1265 Admin ................................. Zeile 1265
   1303 Image Slider .......................... Zeile 1303
   1447 About Page — Public ................... Zeile 1447
   1610 About Page — Admin .................... Zeile 1610
   1648 Responsive (extra small) .............. Zeile 1648
   1668 Cookie-Consent-Banner (DSGVO) ......... Zeile 1668
   1772 Modals ................................ Zeile 1772
   1964 Kontakt-Detail-Ansicht ................ Zeile 1964
   2284 DSGVO-Admin Styles .................... Zeile 2284
   2466 Tankkostenrechner (Premium Design) .... Zeile 2466
   ─────────────────────────────────────────────────────────
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  color-scheme: dark;
  --bg:              #0b0904;
  --surface:         rgba(20, 12, 2, 0.95);
  --surface-glass:   rgba(15, 9, 2, 0.65);
  --border:          rgba(252, 211, 77, 0.12);
  --border-active:   rgba(252, 211, 77, 0.32);
  --gold:            #f59e0b;
  --gold-light:      #fbbf24;
  --gold-bright:     #fde047;
  --gold-glow:       rgba(245, 158, 11, 0.38);
  --gold-dark:       #b45309;
  --gold-muted:      #dcc97a;
  --gold-text:       #e2c97a;
  --gold-bright-text:#fff4c7;
  --text:            #f9f1d0;
  --text-dim:        #cbd5e1;
  --text-muted:      #94a3b8;
  --text-light:      #f8fafc;
  --text-dark:       #111827;
  --success:         #22c55e;
  --danger:          #dc3545;
  --danger-dark:     #c82333;
  --info:            #007bff;
  --radius-xl:       2rem;
  --radius-lg:       1.5rem;
  --radius-md:       1rem;
  --radius-sm:       0.75rem;
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --gold-glow-dynamic:   rgba(245, 158, 11, 0.65);
  --gold-shadow-dynamic: rgba(245, 158, 11, 0.55);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0904;
  color: #f9f1d0;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 8% 92%, rgba(120, 53, 15, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 40% at 92% 8%,  rgba(245, 158, 11, 0.09) 0%, transparent 50%),
    var(--bg);
}

main { flex: 1; }

img, picture, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 9, 4, 0.75);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border);
  z-index: -1;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.scrolled::before {
  background: rgba(8, 6, 2, 0.93);
  border-color: rgba(252, 211, 77, 0.22);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  transition: padding 0.3s var(--ease);
}

.site-header.scrolled .header-bar {
  padding: 0.6rem 0;
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow-dynamic), transparent 65%);
  animation: logo-pulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%       { opacity: 1.0; transform: scale(1.12); }
}

.logo:hover .logo-mark { transform: scale(1.06); }

.site-logo {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--gold-shadow-dynamic));
  transition: filter 0.35s ease;
}

.logo:hover .site-logo {
  filter: drop-shadow(0 0 22px var(--gold-shadow-dynamic));
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 32px var(--gold-shadow-dynamic);
  transition: box-shadow 0.3s ease;
}

.logo:hover .logo-placeholder {
  box-shadow: 0 0 52px var(--gold-shadow-dynamic);
}

.logo-text {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
/* Nav-Toggle nur auf mobilen Geräten sichtbar */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
}

nav a {
  position: relative;
  color: var(--gold-muted);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.8rem);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

nav a:hover { color: var(--gold-light); background: rgba(251, 191, 36, 0.07); }
nav a:hover::after, nav a.active::after { transform: translateX(-50%) scaleX(1); }
nav a.active { color: var(--gold-bright); font-weight: 700; }

.nav-admin {
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  padding: 0.35rem 0.75rem !important;
  border: 1px solid rgba(107, 114, 128, 0.2) !important;
  border-radius: 0.5rem !important;
  background: rgba(107, 114, 128, 0.06) !important;
  margin-left: 0.3rem;
}

.nav-admin::after { display: none !important; }

.nav-admin:hover {
  color: var(--text-muted) !important;
  background: rgba(107, 114, 128, 0.12) !important;
  border-color: rgba(107, 114, 128, 0.35) !important;
}

/* ============================================================
   ADMIN NAVIGATION - DROPDOWNS
   ============================================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  position: relative;
  color: var(--gold-muted);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-toggle::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.8rem);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.nav-dropdown-toggle:hover { color: var(--gold-light); background: rgba(251, 191, 36, 0.07); }
.nav-dropdown-toggle:hover::before { transform: translateX(-50%) scaleX(1); }
.nav-dropdown.open .nav-dropdown-toggle { color: var(--gold-bright); font-weight: 700; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(15, 9, 2, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--gold-light);
  background: rgba(251, 191, 36, 0.08);
}

.nav-dropdown-menu a.active {
  color: var(--gold-bright);
  background: rgba(251, 191, 36, 0.12);
  font-weight: 600;
}

.nav-dropdown-menu a .icon {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

/* Mobile: Dropdowns im Hamburger-Menü */
@media (max-width: 900px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.5rem;
    font-size: 0.98rem;
    border-radius: 0.5rem;
  }

  .nav-dropdown-toggle::after {
    content: '▾';
    position: static;
    transform: none;
    font-size: 0.8rem;
  }

  .nav-dropdown.open .nav-dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0;
    padding-left: 0.5rem;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease, padding 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 0.5rem;
    padding-left: 0.5rem;
  }

  .nav-dropdown-menu a {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
  }
}

/* ============================================================
   RESPONSIVE NAVIGATION
   ============================================================ */
@media (max-width: 900px) {
  .container { width: calc(100% - 1.5rem); }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(252, 211, 77, 0.25);
    background: rgba(251, 191, 36, 0.08);
    border-radius: 0.65rem;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav-toggle:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(252, 211, 77, 0.45);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s var(--ease), opacity 0.25s ease, width 0.25s ease;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  nav {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    order: 3;
  }

  nav.open { max-height: 520px; opacity: 1; }

  nav a {
    width: 100%;
    padding: 0.85rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.98rem;
  }

  nav a::after { display: none; }

  .nav-admin { margin-left: 0 !important; margin-top: 0.25rem !important; width: auto !important; }

  .header-bar { flex-wrap: wrap; }

  .hero { min-height: 72vh; padding: 4rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .buttons { flex-direction: column; align-items: stretch; }
  .button, .button-small { width: 100%; justify-content: center; }
  .button-primary { min-width: auto; }
  /* Admin-Header: Logout-Button soll nicht 100% breit sein */
  .header-bar .button-small { width: auto; }

  .form-grid { gap: 0.875rem; }

  .page-detail #project-detail,
  .page-detail #post-detail,
  .page-legal #page-content { padding: 1.5rem; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 3rem;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.13) 0%, rgba(245, 158, 11, 0.04) 45%, transparent 70%);
  top: -30%;
  left: -25%;
  filter: blur(120px);
  animation: orb-drift-a 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 45%, transparent 70%);
  top: 0%;
  right: -18%;
  filter: blur(140px);
  animation: orb-drift-b 11s ease-in-out infinite;
}

.hero-orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(120, 53, 15, 0.22) 0%, rgba(120, 53, 15, 0.04) 45%, transparent 70%);
  bottom: -15%;
  left: 35%;
  filter: blur(130px);
  animation: orb-drift-a 17s ease-in-out infinite reverse;
}

@keyframes orb-drift-a {
  0%, 100% { transform: translate(0px, 0px); }
  30%       { transform: translate(26px, -18px); }
  65%       { transform: translate(-14px, 22px); }
}

@keyframes orb-drift-b {
  0%, 100% { transform: translate(0px, 0px); }
  40%       { transform: translate(-22px, 16px); }
  72%       { transform: translate(18px, -12px); }
}

.hero-code-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: min(800px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100vw - 1100px) / 2));
  animation: hero-enter 0.9s var(--ease) both;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: dot-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text);
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-bright) 70%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 250% auto;
  animation: text-shimmer 5s linear infinite;
}

@keyframes text-shimmer {
  from { background-position: 250% center; }
  to   { background-position: -250% center; }
}

.hero p {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 0 0 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
}

.button, .button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: 0.85rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.button:hover, .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 100%);
}

.button:active { transform: translateY(0); }

.button-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  min-width: 200px;
}

.button-primary:hover, .button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 100%);
}

.button-secondary {
  background: rgba(251, 191, 36, 0.08);
  color: var(--gold-light);
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: none;
}

.button-secondary:hover, .button-secondary:focus-visible {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.14);
}

.button-small { padding: 0.65rem 1rem; font-size: 0.88rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-top: 3rem;
  margin-bottom: 1.75rem;
}

.section-header h2, .section-header h1 {
  margin: 0 0 0.6rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-header p { color: var(--text-muted); margin: 0; }

/* ============================================================
   OVERVIEW GRID (HOME CARDS)
   ============================================================ */
.overview-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 1.5rem 0 1rem;
}

.overview-grid article {
  position: relative;
  background: rgba(15, 9, 2, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(252, 211, 77, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 280px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.overview-grid article::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.11) 0%, transparent 60%);
  left: calc(var(--mouse-x, 0px) - 210px);
  top:  calc(var(--mouse-y, 0px) - 210px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translateZ(0);
}

.overview-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(251, 191, 36, 0.1),
    inset 0 1px 0 rgba(251, 191, 36, 0.18);
}

.overview-grid article:hover::after { opacity: 1; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.18);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.overview-grid article:hover .card-icon {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.2);
}

.overview-grid article > div { flex: 1; }

.overview-grid article h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.overview-grid article p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

.overview-grid article a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.overview-grid article a::after {
  content: 'arrow_forward';
  font-family: sans-serif;
  content: '→';
  transition: transform 0.2s ease;
}

.overview-grid article a:hover {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
}

.overview-grid article a:hover::after { transform: translateX(4px); }

/* ============================================================
   CARD GRID (Blog / Portfolio)
   ============================================================ */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(20, 12, 2, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  /* Admin-Listen: lange Inhalte dürfen Buttons nicht überlagern/verdrängen */
  overflow-wrap: anywhere;
  min-width: 0;
}

.card.small-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

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

.card.small-card .button-row {
  margin-top: auto;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.card h3 { margin-top: 0; font-size: 1.1rem; font-weight: 700; }
.card p  { margin: 0.75rem 0 0; color: var(--gold-text); }
.card a:not(.button)  { display: inline-block; margin-top: 1rem; color: var(--gold-light); text-decoration: none; font-weight: 600; }
.card a:not(.button):hover { color: var(--gold-bright); }
.meta { color: var(--gold-light); font-size: 0.88rem; }

/* Card Mini-Slider */
.card-slider-wrap {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.card-img-single {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease;
}

.card-slider-track img {
  flex: 0 0 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-slider-dots {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}

.card-slider-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.card-slider-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

/* ============================================================
   FADE-IN (IntersectionObserver)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.65s var(--ease) var(--delay, 0s),
    transform 0.65s var(--ease) var(--delay, 0s);
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; gap: 1rem; }
.form-grid button.button-primary { width: auto; align-self: flex-start; }

label { display: grid; gap: 0.5rem; color: var(--text-dim); }

input, textarea {
  width: 100%;
  background: rgba(20, 12, 2, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus { outline: none; border-color: rgba(251, 191, 36, 0.4); }

/* DSGVO-Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-label a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-label a:hover {
  color: var(--gold-bright);
}

.dsgvo-hinweis {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.dsgvo-hinweis a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dsgvo-hinweis a:hover {
  color: var(--gold-bright);
}

.file-upload-label { position: relative; display: grid; gap: 0.75rem; color: var(--text-dim); }

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--text-dark);
  border-radius: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: fit-content;
}

.file-upload-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(251, 191, 36, 0.25); }

.file-upload-label input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.upload-row { display: grid; grid-template-columns: 1fr 220px; gap: 1rem; align-items: center; }
.upload-field { display: grid; gap: 0.75rem; }

.preview-box {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(249, 115, 22, 0.35);
  border-radius: 0.85rem;
  color: var(--gold-text);
  padding: 1rem;
}

.preview-box img { max-height: 80px; max-width: 180px; object-fit: contain; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 1, 0.72));
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.site-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.38), transparent);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer p { margin: 0; color: var(--gold-text); font-size: 0.92rem; flex: 1 1 280px; }

.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.footer-links a {
  position: relative;
  color: var(--gold-bright-text);
  text-decoration: none;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a::before {
  content: 'bullet';
  content: '•';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
}

.footer-links a:hover { color: var(--gold-bright); }

.nav-admin-footer {
  opacity: 0.5;
  font-size: 0.82rem;
  transition: opacity 0.2s ease;
}
.nav-admin-footer:hover {
  opacity: 1;
}

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.page-detail #project-detail,
.page-detail #post-detail,
.page-legal #page-content {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Zurück-Button */
.back-link {
  margin-bottom: 1.5rem;
}

/* Blog-Übersicht: Auszug darf HTML enthalten (Titel/Meta bleiben escaped im JS) */
.post-excerpt {
  margin: 0.75rem 0 0;
  color: var(--gold-text);
  overflow-wrap: anywhere;
  min-width: 0;
}

.post-excerpt p { margin: 0.5rem 0; }
.post-excerpt p:first-child { margin-top: 0; }
.post-excerpt p:last-child { margin-bottom: 0; }
.post-excerpt a { color: var(--gold-light); }
.post-excerpt img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Code-Darstellung (Blog-Auszug & Beitragsinhalt) */
.post-excerpt pre,
.page-detail .content pre {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(252, 211, 77, 0.18);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post-excerpt pre code,
.page-detail .content pre code {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gold-bright-text);
  white-space: pre;
}

.post-excerpt code,
.page-detail .content code {
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--gold-bright-text);
  overflow-wrap: anywhere;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(-4px);
}

/* Project Detail Layout */
.detail-back {
  margin-bottom: 1.5rem;
}
.detail-back a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.detail-back a:hover { color: var(--gold-light); }

.project-header { margin-bottom: 1.25rem; }
.project-header h1 { margin: 0 0 0.5rem; }
.project-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.65;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
}
.tech-tag {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.tech-tag--secondary {
  background: rgba(99, 102, 241, 0.1);
  color: var(--info);
  border-color: rgba(99, 102, 241, 0.28);
}

.project-body {
  color: var(--text-dim);
  line-height: 1.8;
  margin: 1.5rem 0 0;
}

.project-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.status  { min-height: 1.5rem; color: var(--text-light); }
button   { cursor: pointer; }
.hidden  { display: none; }

/* ============================================================
   ADMIN
   ============================================================ */
.page-admin { padding-bottom: 3rem; }

.admin-card { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
.admin-card h2 { margin-top: 0; }
.admin-card button { align-self: flex-start; }

.admin-link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.visitor-stats {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visitor-stats h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.visitor-stats .dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================================
   IMAGE SLIDER
   ============================================================ */
.project-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  margin: 1.5rem 0;
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.slider-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.6);
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 9, 4, 0.72);
  border: 1px solid var(--border-active);
  color: var(--gold-light);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  padding: 0;
}

.slider-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev { left: 0.75rem; }
.slider-btn.next { right: 0.75rem; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border-active);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.slider-counter {
  position: absolute;
  bottom: 0.65rem;
  right: 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-dim);
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 5;
}

/* Admin image gallery */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.image-gallery-item {
  position: relative;
  width: 7rem;
  height: 5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-gallery-item .delete-image-btn {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* ============================================================
   ABOUT PAGE — PUBLIC
   ============================================================ */
.page-about { padding-bottom: 3rem; }

.about-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about-avatar {
  flex-shrink: 0;
}
.about-avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}
.about-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 3px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.about-intro { flex: 1; min-width: 200px; }
.about-name   { margin: 0 0 0.4rem; font-size: 2rem; }
.about-tagline {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.about-social-link {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: var(--gold-light);
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.about-social-link:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold);
}

.about-section { margin-bottom: 1.5rem; }
.about-section h2 { margin-top: 0; }
.about-bio-text { color: var(--text-dim); line-height: 1.8; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.skill-category-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.skill-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
}
.skill-item-name { font-size: 0.9rem; color: var(--text-dim); }
.skill-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
  width: 90px;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.skill-level-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Vita Timeline */
.vita-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}
.vita-timeline::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 1px;
}
.vita-entry {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}
.vita-marker {
  position: absolute;
  left: -1.65rem;
  top: 0.85rem;
  font-size: 1rem;
  line-height: 1;
  width: 1.4rem;
  text-align: center;
}
.vita-content { flex: 1; }
.vita-year {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.vita-title {
  margin: 0.2rem 0 0.15rem;
  font-size: 1rem;
}
.vita-org  { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.vita-desc { margin: 0.35rem 0 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   ABOUT PAGE — ADMIN
   ============================================================ */
.about-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.about-admin-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
.about-admin-row-main { flex: 1; font-size: 0.9rem; }
.about-admin-row-meta { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }

.section-divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  margin: 1.25rem 0;
}
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}
.form-inline input,
.form-inline select {
  min-width: 0;
  flex: 1;
}

/* ============================================================
   RESPONSIVE (extra small)
   ============================================================ */
@media (max-width: 700px) { .upload-row { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .footer-links { width: 100%; }
  .section-header { margin-top: 2rem; }
  .card,
  .admin-card,
  .page-detail #project-detail,
  .page-detail #post-detail,
  .page-legal #page-content { padding: 1.25rem; }
}

@media (min-width: 900px) {
  .dashboard-grid { grid-template-columns: 1.4fr 1fr; }
}

/* ============================================================
   Cookie-Consent-Banner (DSGVO-konform)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.cookie-banner-text {
  flex: 1 1 320px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.cookie-banner-text strong {
  color: var(--text);
}
.cookie-banner-text a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover {
  color: var(--gold-bright);
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.cookie-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
  background: transparent;
  color: var(--text-dim);
}
.cookie-btn:hover {
  border-color: var(--border-active);
  color: var(--text);
}
.cookie-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg);
  border-color: transparent;
  font-weight: 700;
}
.cookie-btn-primary:hover {
  box-shadow: 0 0 20px var(--gold-glow);
  color: var(--bg);
  border-color: transparent;
}
.cookie-btn-link {
  border: none;
  background: none;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.65rem 0.5rem;
}
.cookie-btn-link:hover {
  color: var(--gold-bright);
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 1rem 1.25rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 9, 4, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--ease);
}

.modal-overlay:not(.hidden) .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content.modal-large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 12, 2, 0.5);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(20, 12, 2, 0.3);
}

/* Panel Header Row */
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header-row h2 {
  margin: 0;
}

.panel-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Mailbox Tabs */
.mailbox-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.mailbox-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mailbox-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.mailbox-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mailbox-tab-content {
  display: none;
}

.mailbox-tab-content.active {
  display: block;
}

/* Mail Meta in Modal */
.mail-meta {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
}

.mail-meta p {
  margin: 0.25rem 0;
}

/* Responsive Modals */
@media (max-width: 768px) {
  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }
  
  .modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
  }
  
  .modal-footer .button,
  .modal-footer .button-small {
    flex: 1;
  }
}

/* ============================================================
   KONTAKT-DETAIL-ANSICHT
   ============================================================ */
.contact-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}

.contact-detail-message .contact-detail-value {
  background: var(--surface-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* DSGVO-Seite Styles */
.dsgvo-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.dsgvo-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.dsgvo-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.dsgvo-card p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.dsgvo-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.dsgvo-form label {
  font-weight: 600;
  color: var(--text);
}

.dsgvo-form input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--surface-alt);
  color: var(--text);
  transition: border-color 0.3s;
}

.dsgvo-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.dsgvo-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text);
}

.button-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.button-danger:hover {
  background: var(--danger-dark);
}

.status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-weight: 500;
}

.status.success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.status.error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.status.info {
  background: rgba(0, 123, 255, 0.1);
  color: var(--info);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.status.loading {
  background: rgba(108, 117, 125, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.dsgvo-list {
  list-style: none;
  padding: 0;
}

.dsgvo-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.dsgvo-list li:last-child {
  border-bottom: none;
}

.dsgvo-list a {
  color: var(--accent);
  text-decoration: none;
}

.dsgvo-list a:hover {
  text-decoration: underline;
}

/* Cookie-Banner Verbesserungen */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 90%;
  max-width: 600px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: transform 0.4s ease;
  border: 1px solid var(--border);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-inner {
  padding: 2rem;
}

.cookie-banner-text h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: var(--text);
}

.cookie-banner-text p {
  margin: 0 0 1rem 0;
  color: var(--text-dim);
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.cookie-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  cursor: pointer;
}

.cookie-option label {
  flex: 1;
  cursor: pointer;
}

.cookie-option label strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cookie-option label small {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.cookie-legal {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

.cookie-legal a {
  color: var(--accent);
  text-decoration: none;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9375rem;
}

.cookie-btn-primary {
  background: var(--accent);
  color: white;
}

.cookie-btn-primary:hover {
  background: var(--accent-hover, var(--gold-dark));
}

.cookie-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.cookie-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cookie-btn-link {
  background: transparent;
  color: var(--text-dim);
  text-decoration: underline;
}

.cookie-btn-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 1rem;
    width: 95%;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

/* ============================================================
   DSGVO-ADMIN STYLES
   ============================================================ */

.dsgvo-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dsgvo-filters button {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-weight: 500;
}

.dsgvo-filters button:hover {
  border-color: var(--gold);
  color: var(--text);
}

.dsgvo-filters button.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.dsgvo-request-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  align-items: center;
  transition: all 0.3s var(--ease);
}

.dsgvo-request-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.dsgvo-request-item.pending {
  border-left: 4px solid var(--gold);
}

.dsgvo-request-item.processed {
  border-left: 4px solid var(--success);
  opacity: 0.8;
}

.dsgvo-request-item.rejected {
  border-left: 4px solid var(--danger);
  opacity: 0.6;
}

.dsgvo-request-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dsgvo-request-type {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.dsgvo-request-email {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.dsgvo-request-date {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.dsgvo-request-status {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dsgvo-request-status.pending {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold);
}

.dsgvo-request-status.processed {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.dsgvo-request-status.rejected {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.dsgvo-request-actions {
  display: flex;
  gap: 0.5rem;
}

.dsgvo-detail-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.dsgvo-detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dsgvo-detail-row strong {
  min-width: 150px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .dsgvo-request-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .dsgvo-request-actions {
    flex-direction: column;
  }
  
  .dsgvo-detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .dsgvo-detail-row strong {
    min-width: auto;
  }
}

/* Version Badge */
.version-info-container {
  text-align: center;
  padding: 1.5rem 0;
  background: rgba(11, 9, 4, 0.5);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.version-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  cursor: help;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.version-badge:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-dim);
}

/* ============================================================
   TANKKOSTENRECHNER STYLES - PREMIUM DESIGN
   ============================================================ */

.page-tankkosten {
  padding: 1rem 0 2rem;
  position: relative;
}

/* Hero Section für Tankkostenrechner - Kompakt */
.tool-hero {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.tool-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-bright) 70%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.tool-hero p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.4;
}

/* Grid Layout - Kompakter */
.tankkosten-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .tankkosten-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .tankkosten-results {
    position: sticky;
    top: 80px;
  }
}

/* Glassmorphism Cards */
.tankkosten-inputs,
.tankkosten-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-section,
.results-section,
.share-section {
  position: relative;
  background: rgba(15, 9, 2, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(252, 211, 77, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  overflow: visible;
  transition: transform 0.3s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.tool-section::before,
.results-section::before,
.share-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
  top: -50%;
  left: -50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-section:hover,
.results-section:hover,
.share-section:hover {
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(251, 191, 36, 0.1),
    inset 0 1px 0 rgba(251, 191, 36, 0.18);
}

.tool-section:hover::before,
.results-section:hover::before,
.share-section:hover::before {
  opacity: 1;
}

.tool-section h2,
.results-section h2,
.share-section h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-section h2::before,
.results-section h2::before,
.share-section h2::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* Input Groups - Kompakter */
.page-tankkosten .input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.page-tankkosten .input-row > .input-group {
  min-width: 0;
}

@media (max-width: 480px) {
  .page-tankkosten .input-row {
    grid-template-columns: 1fr;
  }
}

.input-group {
  margin-bottom: 0;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(251, 191, 36, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.price-input-wrapper {
  position: relative;
}

.price-input-wrapper .price-unit {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-input-wrapper input {
  padding-right: 3rem;
}

.hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: italic;
}

/* Toggle Switch - Premium */
.toggle-group {
  margin: 0.4rem 0;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.toggle-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.4rem 0;
}

.toggle-inline .toggle-group {
  margin: 0;
  flex-shrink: 0;
}

.toggle-inline .input-group {
  flex: 1;
  min-width: 120px;
  margin: 0;
}

.toggle-inline .input-group label {
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
}

.toggle-inline .input-group input {
  padding: 0.4rem 0.6rem;
}

/* Kompakte Inline-Anordnung für Toggle + Input */
.toggle-inline .toggle-group {
  margin: 0;
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
}

.toggle-inline .input-group {
  flex: 1;
  min-width: 100px;
  margin: 0;
}

.toggle-inline .input-group label {
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
}

.toggle-inline-small {
  margin: 0 !important;
  padding: 0.5rem 0.75rem !important;
}

.toggle-inline-small .toggle-label span:not(.toggle-switch) {
  font-size: 0.8rem !important;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header-row h2 {
  margin: 0 !important;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  transition: background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-label input:checked + .toggle-switch {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
}

.toggle-label input:checked + .toggle-switch::after {
  transform: translateX(22px);
  background: #fff;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
}

.toggle-label span:not(.toggle-switch) {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Buttons - Premium */
.btn-add,
.btn-add-small {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  width: 100%;
}

.btn-add:hover,
.btn-add-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 100%);
}

.btn-add-small {
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  width: auto;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--bg);
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-small {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  margin-top: 1rem;
}

.btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn-remove,
.btn-remove-small {
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent);
  border: 1px solid rgba(231, 76, 60, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-remove:hover,
.btn-remove-small:hover {
  background: rgba(231, 76, 60, 0.2);
  transform: scale(1.1);
}

.btn-remove-small {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

/* Persons Section */
.persons-container {
  margin-bottom: 0.5rem;
}

.person-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-bottom: 0.4rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.person-item:hover {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.person-row {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: nowrap;
}

.person-row input {
  flex: 1;
  min-width: 50px;
  padding: 0.3rem 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.75rem;
  transition: border-color 0.2s ease;
}

.person-row input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

/* Additional Costs */
.additional-costs {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.additional-costs .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.additional-costs h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cost-item-row {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  align-items: center;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.cost-item-row input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
  min-width: 0;
}

.cost-item-row input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Results Section */
.cost-breakdown {
  margin-bottom: 1rem;
}

.cost-item,
.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.cost-item span:first-child {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.cost-item span:last-child {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.cost-total {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-top: 0.5rem;
  padding: 0.75rem;
}

.cost-total span {
  font-size: 1rem;
  font-weight: 800;
}

.cost-total span:last-child {
  color: var(--gold-light);
  font-size: 1.2rem;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Per Person Costs */
.per-person-costs {
  margin-bottom: 1rem;
}

/* Per Person Costs */
.per-person-costs h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.per-person-costs h3::before {
  content: '👥';
}

.person-cost-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: border-color 0.2s ease;
}

.person-cost-item:hover {
  border-color: rgba(251, 191, 36, 0.2);
}

.person-cost-item .person-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.person-cost-item .person-distance {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.person-cost-item .person-cost {
  font-weight: 800;
  color: var(--gold-light);
  text-align: right;
  font-size: 1rem;
}

/* Share Section */
.share-option {
  margin-bottom: 1rem;
}

.share-option label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-option select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.share-option select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.share-actions {
  margin-bottom: 1.5rem;
}

/* QR Code */
.qr-section {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.qr-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.qr-code {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Share Info */
.share-info {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(52, 152, 219, 0.03));
  border: 1px solid rgba(52, 152, 219, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 1rem;
}

.share-info strong {
  color: var(--text);
  font-weight: 700;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 9, 2, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--success);
  color: var(--text);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
  z-index: 10000;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Hidden class */
.hidden {
  display: none !important;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .tool-hero h1 {
    font-size: 1.75rem;
  }
  
  .tool-hero p {
    font-size: 0.9rem;
  }
  
  .tool-section,
  .results-section,
  .share-section {
    padding: 0.75rem;
  }
  
  .person-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .person-row input {
    width: 100%;
  }
  
  .cost-item-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cost-item-row input {
    width: 100%;
  }
}

.additional-costs h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0;
}

.cost-item-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.cost-item-row input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 0;
}

.cost-item-row input:focus {
  outline: none;
  border-color: var(--gold);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.toggle-label input:checked + .toggle-switch {
  background: var(--gold);
}

.toggle-label input:checked + .toggle-switch::after {
  transform: translateX(22px);
  background: #fff;
}

.toggle-label span:not(.toggle-switch) {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* URL-Shortener Tool */
.page-shortener .short-url-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.page-shortener .short-url-row a {
  font-weight: 700;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 200px;
}
.page-shortener .captcha-row {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
}
.page-shortener .captcha-row label {
  flex: 1;
  min-width: 220px;
}
.page-shortener .captcha-row strong {
  color: var(--text);
  font-size: 1.1rem;
}
.page-shortener .info-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-dim);
}
.page-shortener .info-list code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.page-shortener .result-section .meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .page-shortener .short-url-row {
    flex-direction: column;
    align-items: stretch;
  }
}