/* Globale Einstellungen */
html {
    scroll-behavior: smooth;
    user-select: none;
}
 
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}
 
/* Header und Navigation */
header {
    background: #333333EE;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
 
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}
 
nav ul li {
    margin: 0 15px;
}
 
nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}
 
nav ul li a:hover {
    background: #fff;
    color: #333;
}
 
/* Hero-Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    margin: 0;
    padding: 0;
    max-width: none;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
 
.hero-section h1, .hero-section p {
    animation: fadeInUp 1s ease-out;
}
 
/* Allgemeine Stile für die Sektionen */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}
 
section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}
 
section p, section h3 { text-align: center; }

 
/* Dienstleistungskarten */
.card {
    background: #fff;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s;
    animation: fadeInUp 0.5s ease-out;
}
 
.card:hover {
    transform: translateY(-10px);
}
 
.card:nth-child(2) {
    animation-delay: 0.2s;
}
 
.card:nth-child(3) {
    animation-delay: 0.4s;
}
 
/* Kontaktformular */
form {
/*display: none;*/
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}
 
form input, form textarea {
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border 0.3s;
}
 
form input:focus, form textarea:focus {
    outline: none;
    border-color: #333;
}
 
form button {
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}
 
form button:hover {
    background: #555;
}
 
.grecaptcha-badge {
    z-index: 1005;
    pointer-events: all;
    touch-action: manipulation;
}
 
/* Positioniere das Kontaktformular relativ */
/*Sperre*/
#contact {
    position: relative;
}
 
/* Overlay */
/*Sperre*/
#overlay {
display: none; /* Standardmäßig nicht sichtbar */
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px); /* 20px breiter als das Formular */
    height: calc(100% + 20px); /* 20px höher als das Formular */
    background-color: rgba(0, 0, 0, 0.5); /* Transparentes Schwarz */
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    z-index: 10; /* Höher als das Formular */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
 
/*Sperre*/
.overlay-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
 
/*Sperre*/
.overlay-content p {
    margin: 0;
    color: #fff;
}

/* Stile für die Fehlermeldungen */
input.error-message, textarea.error-message {
    position: absolute; /* Fixiert die Position der Fehlermeldung relativ zum Eingabefeld */
    left: -200px; /* Positioniert die Fehlermeldung links neben dem Eingabefeld */
    color: red; /* Textfarbe für die Fehlermeldung */
    font-size: 0.9em; /* Kleinere Schriftgröße */
    width: 180px; /* Festlegen der Breite der Fehlermeldung */
}

.form-group {
    position: relative; /* Stellt sicher, dass das Eingabefeld und die Fehlermeldung relativ zueinander positioniert sind */
}

 
/* Scroll-to-Top-Button */
#back-to-top-btn {
    position: fixed;
    bottom: 43px;
    right: 50%;
    transform: translateX(50%);
    width: 41px;
    height: 41px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    z-index: 999;
}
 
#back-to-top-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
 
/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
 
footer p {
    margin: 0;
}
 
/* Hamburger-Symbol */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.about-profile {
  display: grid;
  grid-template-columns: 220px 1fr; /* Platz für Bild links + Text rechts */
  gap: 40px; /* Abstand zwischen Bild und Text */
  align-items: center;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
  text-align: left;
  max-width: 900px; /* Begrenzte Breite für Lesbarkeit */
  margin: 0 auto;
}

.profile-avatar {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 50%;       /* Kreisform */
  object-fit: cover;        /* Kein Verzerren, füllt den Kreis */
  object-position: center;  /* zentriert das Gesicht */
  border: 3px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.mini-profile h3 {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.mini-profile .subtitle {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  color: #666;
}

.mini-list {
  margin: 0 0 16px 0;
  padding-left: 18px;
}

.mini-cta {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform .15s ease, background .2s ease;
}
.mini-cta:hover {
  background: #555;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .profile-avatar {
    margin: 0 auto;
    width: 160px;
    height: 160px;
  }
}
 
/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        justify-content: center;
        z-index: 1002;
    }
 
    header {
        border-radius: 0 0 10px 10px;
        width: 90%;
        left: 5%;
    }
 
    nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(51, 51, 51, 0.05);
        width: 100%;
        position: relative;
        top: 10px;
        left: 0;
        padding: 0;
    }
 
    nav ul.open {
        display: flex;
    }
 
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #fff;
        border-radius: 0 0 10px 10px;
    }
}
 
/* Keyframes für FadeInUp-Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
/* Animation für das Hamburger-Menü */
.hamburger i {
    transition: transform 0.3s ease;
}
 
.hamburger.active i {
    transform: rotate(90deg); /* Das "X"-Symbol durch Rotation */
}

/* ===== Projekt-Modal ===== */
.project-modal {
  position: fixed;
  inset: 0;
  display: none;               /* via JS -> block */
  z-index: 1000;
}

.project-modal[aria-hidden="false"] { display: block; }

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}

.project-modal__dialog {
  position: relative;
  max-width: min(1100px, 92vw);
  height: min(85vh, 900px);
  margin: 6vh auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  overflow: hidden;
}

.project-modal__close {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.project-modal__close:hover { background: rgba(0,0,0,.8); }

/* Klicks auf das X-Icon gehen an den Button weiter */
.project-modal__close i { pointer-events: none; }

.project-modal__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100%;
}

.project-modal__nav {
  background: #f6f6f6;
  border-right: 1px solid #e8e8e8;
  padding: 18px 14px;
  overflow: auto;
}

/* Modal-Navigation sicher vertikal (überschreibt globale nav-Regeln) */
.project-modal__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
}
.project-modal__nav li { display: block !important; }
.project-modal__nav a {
  display: block;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
}
.project-modal__nav a:hover { background: #eaeaea; }

.project-modal__content {
  padding: 22px 26px;
  overflow: auto;
}
.project-modal__content h3 { margin-top: 0; }

/* Galerie/Platzhalter-Bilder */
.img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 8px;
}
.pm-img {
  width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.img-placeholder {
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, #9be, #58a);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Responsive */
@media (max-width: 900px) {
  .project-modal__grid { grid-template-columns: 1fr; }
  .project-modal__nav { display: none; }
}

/* ==== Inline-Chat im Miniprofil ==== */
.mini-chat-inline { margin-top: 18px; max-width: 520px; }

.mini-chat-inline__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.mini-chat-inline__form input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
}
.mini-chat-inline__form button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #333;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.mini-chat-inline__log {
  margin-bottom: 10px;           /* Abstand nach unten zum Eingabefeld */
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Chat-Bubbles */
.mini-chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.45;
  font-size: 0.95rem;
}
.mini-chat-msg--user { align-self: flex-end; background: #e9f0ff; }
.mini-chat-msg--bot  { align-self: flex-start; background: #f4f4f4; }

.mini-chat-inline__hint {
  margin: 6px 0 12px;            /* oberer/unterer Abstand angepasst */
  font-size: 12px;
  color: #666;
}

/* --- FINAL OVERRIDES: Modal-Überschrift + erster Überblick-Absatz links --- */
.project-modal__content h3#project-modal-title { 
  text-align: left !important; 
}

.project-modal__content #pm-intro > p { 
  text-align: left !important; 
  margin-top: 8px;
}

/* --- Modal-Overrides: globale Section-Zentrierung im Modal aufheben --- */
.project-modal__content section {
  max-width: 100%;
  margin: 0;                 /* statt margin: auto */
  padding-left: 0;
  padding-right: 0;
}

/* Falls die globale Regel 'section p, section h3 { text-align:center }' greift: */
.project-modal__content #pm-intro p,
.project-modal__content #pm-details p {
  text-align: left;
}

/* Nur Schlagschatten für bessere Lesbarkeit im Hero */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),   /* Hauptschatten */
    0 1px 2px rgba(0, 0, 0, 0.3);   /* feiner Zusatz */
}

/* About-Layout: Heading über beide Spalten, darunter Avatar | Content */
.about-profile {
  display: grid;
  grid-template-columns: 220px 1fr;   /* Avatar | Inhalt (wie bei dir) */
  grid-template-rows: auto 1fr;       /* Zeile 1: Heading, Zeile 2: Rest */
  grid-template-areas:
    "heading heading"
    "avatar  content";
  gap: 40px;                           /* behält deinen Abstand bei */
  align-items: start;                  /* Avatar & Content oben starten */
}

/* Bereiche zuweisen */
.about-heading  { grid-area: heading; text-align: center; }
.profile-avatar { grid-area: avatar;  justify-self: start; align-self: start; }
.mini-profile   { grid-area: content; }

/* Typografie der neuen Überschriftenzeile */
.about-heading h3 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  font-weight: 700;
}
.about-heading .subtitle {
  margin: 0;
  color: #666;
}

/* Responsive unter 720px: alles untereinander */
@media (max-width: 720px) {
  .about-profile {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "heading"
      "avatar"
      "content";
    gap: 20px;
    text-align: center; /* darf hier bleiben: nur das Grid, nicht der Content-Text */
  }
  .profile-avatar { margin: 0 auto; }
  /* Content rechts weiterhin linksbündig – optional so lassen */
  .mini-profile { text-align: left; }
}

/* === Admin Login Card (CMS) === */
.nav-login { cursor: pointer; }

/* Login-Karte */
.login-card {
    background: #333333EE; /* exakt gleiche Farbe/Transparenz wie Navbar */
    border-radius: 10px;
    padding: 12px 16px; /* weniger vertikal, kompakter */
    width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Input-Felder */
.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 6px 8px; /* weniger Höhe */
    margin-bottom: 8px; /* kompakter Abstand */
    background: #555555CC; /* etwas heller & transparent */
    border: 1px solid #777777;
    border-radius: 6px;
    color: #fff;
}

/* Placeholder-Farbe */
.login-card input::placeholder {
    color: #ddd;
}

/* Anmelden-Button */
.login-card button {
    width: 100%;
    padding: 6px 8px; /* kleiner */
    background-color: #000;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.login-card button:hover {
    background-color: #222;
}

/* Hinweistext */
.login-card p {
    font-size: 0.85em;
    margin-top: 6px;
    color: #ddd;
}


/* Card-Inhalt: auf ~1/3 schrumpfen */
.login-card-inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  width: min(92vw, 240px);   /* deutlich kleiner */
  padding: 12px;
  border: 1px solid rgba(0,0,0,.06);
  animation: loginSlideDown .15s ease-out;
}

.login-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid #eee;
}

.login-card-header h3 { margin: 0; font-size: 1rem; }

.login-close {
  background: transparent; border: 0; font-size: 1.25rem; line-height: 1; cursor: pointer;
}

#loginForm { padding: 14px; display: grid; gap: 10px; }
#loginForm label { display: grid; gap: 6px; font-size: .9rem; }

#loginForm { padding: 0; display: grid; gap: 8px; }
#loginForm label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[name="username"],
#loginForm input[name="password"] {
  border: 1px solid #ddd; border-radius: 6px; padding: 6px; font-size: .9rem;
}
.login-submit {
  border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer;
  background: #111; color: #fff; font-weight: 600;
}
.login-note { font-size: .75rem; color: #666; text-align: center; }

/* Mobile: Button bleibt sichtbar, mit kräftigerem Schatten */
@media (max-width: 768px) {
  .login-trigger { right: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
}


/* === Fester Login-Trigger oben rechts === */
/* === Fester Login-Trigger oben rechts (zentriert zur Navbar) === */
.login-trigger {
  position: fixed;
  right: 16px;
  z-index: 10010;
  padding: 6px 12px;
  border: 0;
  border-radius: 9999px;
  background: rgba(17,17,17,0.85);
  color: #fff;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  backdrop-filter: saturate(140%) blur(2px);
}
.login-trigger:focus { outline: 2px solid #000; outline-offset: 2px; }

@keyframes loginSlideDown {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 768px) {
  .login-trigger {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-weight: 700;
    /* noch etwas stärker absetzen */
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
}

/* === LOGIN · FINAL COMPACT OVERRIDES === */

/* Karte rechts minimal eingerückt, Position bleibt fix (scrollt NICHT mit) */
#loginCard[hidden] { display: none; }
.login-card {
  position: fixed;
  /* top setzt das JS exakt auf Navbar-Unterkante */
  right: calc(env(safe-area-inset-right, 0) + 8px); /* 8px weg von der Scrollbar */
  z-index: 10000;
}

/* Deutlich kompakter: ~2/3 Breite, ~1/2 Höhe durch weniger Padding/kleinere Elemente */
.login-card-inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  width: min(92vw, 180px);      /* vorher größer → jetzt schlank */
  padding: 8px;                 /* kompakter Innenabstand */
  border: 1px solid rgba(0,0,0,.06);
}

/* Falls irgendwo noch Header/X-Stile existieren → vollständig ausblenden */
.login-card-header, .login-close { display: none !important; }

/* Form kompakt halten */
#loginForm { display: grid; gap: 6px; padding: 0; }
#loginForm label { font-size: .82rem; font-weight: 600; line-height: 1.15; }
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[name="username"],
#loginForm input[name="password"] {
  height: 32px;                 /* kleiner als vorher */
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .9rem;
  box-sizing: border-box;
}
.login-submit {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;            /* kleinerer Button */
  background: #111; color: #fff;
  font-weight: 700; cursor: pointer;
}
.login-note { font-size: .74rem; color: #666; text-align: center; }

/* Login-Trigger (Button) kannst du so lassen; optional gleiche Einrückung: */
.login-trigger { right: calc(env(safe-area-inset-right, 0) + 8px); }

/* === LOGIN · FINAL OVERRIDES === */

/* Button oben rechts bleibt fixed; die exakte top-Position setzt JS */
.login-trigger { right: 10px; z-index: 10010; }

/* Karte rechts minimal eingerückt (nicht an Scrollbar stoßen) */
#loginCard[hidden] { display: none; }
.login-card {
  position: fixed;
  right: 10px;
  z-index: 10000;
  /* top setzt JS exakt an die Navbar-Unterkante */
}

/* Kleine, luftige Karte */
.login-card-inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  width: min(92vw, 180px);   /* ~2/3 der früheren Breite */
  padding: 10px;             /* genug Luft, nicht gequetscht */
  border: 1px solid rgba(0,0,0,.06);
}

/* Labels klar sichtbar */
.login-label {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
  margin-top: 4px;
}

/* Kompakte Inputs */
#loginForm { display: grid; gap: 8px; padding: 0; }
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[name="username"],
#loginForm input[name="password"] {
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .9rem;
  box-sizing: border-box;
}

/* Kleinerer, nicht gequetschter Submit-Button */
.login-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;     /* kleiner als vorher */
  background: #111; color: #fff;
  font-weight: 700; cursor: pointer;
}
.login-note { font-size: .76rem; color: #666; text-align: center; }

/* === LOGIN · FINAL CLEAN OVERRIDES (nur für #loginForm) === */

/* Karte rechts leicht eingerückt (nicht an Scrollbar anschneiden) */
.login-card { right: 10px; }

/* Kompaktere Karte – Breite klein, Polster schlank */
.login-card-inner {
  width: min(92vw, 180px);
  padding: 8px 10px;                 /* schlankes Padding */
}

/* Labels: klar, aber nicht riesig */
#loginForm .login-label {
  display: block;
  margin: 2px 0 3px;                 /* wenig vertikaler Abstand */
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}

/* Inputs: globale Margins/Paddings überschreiben → kompakt */
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[name="username"],
#loginForm input[name="password"] {
  margin: 0 0 6px;                   /* statt global 12px */
  height: 30px;                      /* niedriger */
  padding: 4px 8px;                  /* schmaler */
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Submit-Button: kleiner, nicht gequetscht */
#loginForm .login-submit {
  margin-top: 2px;
  padding: 5px 10px;                 /* kleiner als global 12px */
  font-size: 0.95rem;
  border-radius: 8px;
}

/* Hinweis-Text komprimieren */
#loginForm .login-note {
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Damit die globalen 'form' Styles (flex, max-width, margin:auto) NICHT greifen */
#loginForm {
  display: grid !important;
  max-width: none !important;
  margin: 0 !important;
}

/* === LOGIN · PLACEHOLDER, SYMMETRIE & NAVBAR-LOOK === */

/* Karte: dunkel/transluzent wie Navbar, Innenabstände symmetrisch */
.login-card-inner {
  background: rgba(17,17,17,0.85);     /* wie Navbar */
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  width: min(92vw, 180px);
  padding: 10px 12px;                   /* links = rechts → symmetrisch */
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: saturate(140%) blur(2px);
}

/* Inputs kompakt, volle Breite, klarer Kontrast auf dunklem Grund */
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[name="username"],
#loginForm input[name="password"] {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  height: 32px;
  padding: 6px 10px;                    /* gleicher Innenabstand links/rechts */
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #111;
  box-sizing: border-box;
}

/* Placeholder-Farbe leicht abgetönt (gute Lesbarkeit) */
#loginForm input::placeholder {
  color: rgba(0,0,0,0.6);
}

/* Kleinerer, nicht gequetschter Button */
#loginForm .login-submit {
  margin-top: 4px;
  padding: 6px 10px;                    /* kleiner als vorher */
  font-size: 0.95rem;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

/* Hinweis kompakt */
#loginForm .login-note {
  margin-top: 6px;
  font-size: .75rem;
  line-height: 1.2;
  color: rgba(255,255,255,0.85);
}

/* Karte minimal von der Scrollbar weg, Button optional mitnehmen */
.login-card { right: 10px; }
.login-trigger { right: 10px; }

/* === Login-Karte direkt anpassen === */
.login-card {
  background: #333333EE;       /* exakt gleiche Farbe/Transparenz wie Navbar */
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;          /* symmetrischer Abstand */
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  backdrop-filter: saturate(140%) blur(2px);
}

/* Eingabefelder: leicht heller & transparent statt Weiß */
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  height: 28px;
  padding: 5px 10px;
  margin: 4px 0;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,0.15);  /* hell & transluzent */
  color: #fff;
}

.login-card input::placeholder {
  color: rgba(255,255,255,0.85);
}

/* Anmeldebutton */
.login-card button {
  padding: 5px 10px;
  font-size: 0.9rem;
  border: 0;
  border-radius: 8px;
  width: 100%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* === LOGIN · FINAL (ein Panel, exakt wie Navbar) === */

/* Karte selbst (einzige Fläche) */
#loginCard[hidden] { display: none; }
.login-card {
  position: fixed;
  right: 12px;                         /* minimal von der Scrollbar weg */
  z-index: 10000;
  background: #333333EE;               /* EXAKT wie dein Header */
  color: #fff;
  width: min(92vw, 180px);             /* schlank */
  padding: 8px 12px;                   /* symmetrische Innenabstände */
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  backdrop-filter: saturate(140%) blur(2px);
}

/* Nur zur Sicherheit: falls irgendwo noch .login-card-inner im DOM wäre → wirkungslos machen */
.login-card-inner { display: contents !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; width: auto !important; }

/* Kompaktes Formular (keine globalen Form-Margins) */
#loginForm { display: grid !important; gap: 6px; margin: 0 !important; max-width: none !important; }

/* Eingabefelder: leicht heller & transparent (NICHT weiß) */
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[name="username"],
#loginForm input[name="password"] {
  width: 100%;
  height: 28px;                        /* niedriger → Karte wirkt kürzer */
  margin: 0;
  padding: 5px 10px;                   /* links = rechts → mittig */
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,0.15);  /* hell & halbtransparent */
  color: #fff;
}

#loginForm input::placeholder { color: rgba(255,255,255,0.85); }

/* Anmelden-Button: kleiner, nicht gequetscht */
#loginForm .login-submit {
  padding: 5px 10px;
  font-size: 0.9rem;
  border: 0;
  border-radius: 8px;
  width: 100%;
  background: #000000D9;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Hinweis kompakt */
#loginForm .login-note {
  margin-top: 4px;
  font-size: .74rem;
  line-height: 1.2;
  color: rgba(255,255,255,0.9);
}
.login-trigger { right: 12px; }  /* fluchtet dann mit .login-card */

/* === LOGIN · kompakte Felder + integrierte Fehlermeldungen (keine Browser-Bubbles) === */

/* Wrapper um jedes Feld: Grundlage für Error-Layout */
#loginForm .login-field {
  display: grid;
  gap: 4px;               /* kleiner vertikaler Abstand */
}

/* Inputs bleiben kompakt & transluzent (dein dunkles Panel bleibt) */
#loginForm .login-field > input {
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 5px 10px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,0.15);  /* leicht heller & transparent */
  color: #fff;
}
#loginForm .login-field > input::placeholder {
  color: rgba(255,255,255,0.85);
}

/* Kleine, integrierte Fehlermeldung – kein Überlappen */
#loginForm .login-error {
  display: none;
  font-size: .72rem;
  line-height: 1.25;
  color: #ffe2e2;                 /* dezent auf dunklem Grund */
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Sichtbar + rote Kante, wenn invalid */
#loginForm .login-field.invalid > input {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255,107,107,.22);
}
#loginForm .login-field.invalid > .login-error {
  display: block;
}

/* Kompakter Submit-Button (kleiner als bisher) */
#loginForm .login-submit {
  padding: 5px 10px;
  font-size: .9rem;
  border: 0;
  border-radius: 8px;
  width: 100%;
  background: #000000D9;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Hinweistext schlank */
#loginForm .login-note {
  margin-top: 4px;
  font-size: .74rem;
  line-height: 1.2;
  color: rgba(255,255,255,0.9);
}
