@font-face {
  font-family: 'Arvo';
  src: url('fonts/Arvo-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Arvo';
  src: url('fonts/Arvo-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Arvo';
  src: url('fonts/Arvo-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

body {
  /* font-family: system-ui, sans-serif; */
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.8; 
  background: #f8f9fa;
  color: #333;
  font-size: 1.1em;
}


.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background: white;
  border-bottom: 1px solid #ddd;
}

.site-header #logo img {
  height: auto;   /* oder z. B. 80px */
  width: 130px;    /* damit Seitenverhältnis erhalten bleibt */
  max-width: 100%; /* passt sich bei kleinen Displays an */
}

.site-header .nav {
  align-self: flex-start;
}

.site-header #SpracheUNDLogin {
  display: flex;
  align-items: flex-start;
  gap: 1em; /* Abstand zwischen Sprachwahl und Login */
}



h1, h2 {
  color: #2c3e50;
}

a {
  color: #0077cc;
}



iframe {
  width: 100%;
  height: 400px;
  border: none;
  margin-top: 1em;
  z-index: 1;
  position: relative;
}


.chatbox {
  background: #f1f1f1;
  padding: 1em;
  border-radius: 6px;
  margin-top: 2em;
}
.chatbox .msg {
  margin-bottom: 1em;
}
.chatbox .user { color: #0077cc; }
.chatbox .assistant { color: #2c3e50; }
.hinweis {
  font-size: 0.9em;
  color: #555;
  margin: 1em 0;
}
iframe {
  width: 100%;
  height: 600px;
  border: none;
  margin-top: 1em;
}
.meldung {
  color: red;
  font-weight: bold;
}




form button {
  background-color: #0077cc;
  color: white;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #005fa3;
}

/* Neu: allgemeine Buttons */
button {
  background-color: #0077cc;
  color: white;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}





/* NAV-Gesamtcontainer */
.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* alles nach rechts ausrichten */
  width: 100%;
  max-width: 1000px;        /* optional begrenzen */
  margin-left: auto;        /* Container selbst rechtsbündig im site-header */
  padding: 0 1em;
  gap: 0.5em; 
  
}

.nav #SpracheUNDLogin {
  display: flex;
  align-items: center; 
  gap: 1em;
  top: 100%;
}

.nav select {
  font-size: 0.85em;
  font-family: inherit;
  padding: 0.4em 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  /* 🔽 wichtig für vertikale Ausrichtung */
  display: inline-block;
  vertical-align: middle;  
}


nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  margin-left: 1em;
}

/* Auth-Zeile (oben) */
.user-auth {
  display: flex;
  gap: 0.5em;
  font-size: 0.85em;
  color: #555;
  align-items: center;

  background-color: #f5f5f5;     /* sanftes Grau */
  padding: 0.5em 1em;
  border-radius: 6px;            /* abgerundete Ecken */
  border: 1px solid #ddd;        /* dezenter Rahmen */
  /* optional: margin-top: 1em;  falls Abstand nötig ist */
}


.user-auth a.auth-link {
  text-decoration: none;
  color: #0077cc;
}

.user-auth a.auth-link:hover {
  text-decoration: underline;
}

/* Hauptmenü-Zeile */
.nav-main {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;             /* falls kleiner Bildschirm */
  justify-content: flex-end;   /* Menü auch rechtsbündig */
}

/* Sekundärmenü-Zeile */
.nav-sec {
  display: flex;
  gap: 1em;
  justify-content: flex-end;   /* ebenfalls rechtsbündig */
  font-size: 0.9em;
}


/* Gesamt-Footer-Container */
.site-footer {
  background: #f8f8f8;
  border-top: 1px solid #ddd;
  padding: 1em;
  color: #555;
  font-size: 0.85em;
}

/* Flexstruktur wie site-header/nav */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← das zentriert vertikal alle Kinder (inkl. .footer-right) */

  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1em;
  gap: 1em;
}

/* Logo-Block links */
.footer-left {
  flex: 0 0 200px;
}
.footer-left img {
  max-width: 100%;
  height: auto;
  opacity: 0.4; /* 0 = komplett transparent, 1 = voll sichtbar */
}

/* Link-Block rechts (ähnlich nav) */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* rechtsbündig wie .nav */
  gap: 0.5em;
  text-align: right;
}

/* Links im Footer */
.footer-right a {
  text-decoration: none;
  color: #0077cc;
  font-size: 0.85em;
}
.footer-right a:hover {
  text-decoration: underline;
}

/* Copyright-Zeile */
.footer-bottom {
  text-align: center;
  font-size: 0.85em;
  margin-top: 1em;
}

/* Mobile Ansicht */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }
}

.email-container {
  padding: 0 2em;              /* Abstand links und rechts */
  box-sizing: border-box;      /* wichtig für korrektes Breitenverhalten */
  max-width: 800px;            /* optional, um es nicht zu breit zu machen */
  margin: 0 auto;              /* zentriert die Box auf der Seite */
}


main.ai_container_aussen {
    max-width: 800px;
    margin: 2em auto;
    padding: 20px;
    min-height: calc(100vh - 300px); /* z.B. Abstand site-header + Footer grob berücksichtigt */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}




/* Admintexte */
.admintext {
  font-size: 0.7rem; /* oder z. B. 14px */
  line-height: 1.5;
}

.admintext h1 {
  font-size: 1rem;
}

.admintext h2 {
  font-size: 0.9rem;
}

.admintext h3 {
  font-size: 0.9rem;
}

.admintext p,
.admintext li,
.admintext ul,
.admintext ol {
  font-size: 0.85rem;
}
/* Admintexte */



/* =========================
   Layout: Seite & Spalten
   ========================= */
.ai-page-layout{
  max-width: 1400px;       /* ⇦ Gesamtbreite (hier breiter als vorher) */
  margin: 2em auto;
  padding: 0 1em;
}

.ai-page-layout.with-hints{
  display: flex;
  align-items: flex-start;  /* Oberkanten bündig */
  gap: 16px;                /* Abstand zw. Dialog & Panel */
}

/* Linke Spalte (Dialog) im Zweispalter voll flexibel */
.ai-page-layout.with-hints > .ai_container_aussen{
  max-width: none;
  margin: 0;
  flex: 1 1 0;
}

/* Rechte Spalte (Hinweise) mit fixer Breite, volle Höhe */
.ai-page-layout.with-hints #ai-hints-panel{
  flex: 0 0 520px;
  align-self: stretch;      /* gleiche Höhe wie linke Spalte */
  display: flex;
  flex-direction: column;
}

/* Ohne Hinweise: Dialog wieder schön zentriert */
.ai-page-layout:not(.with-hints) > .ai_container_aussen{
  max-width: 900px;   /* wie gehabt */
  margin: 2em auto;
}

/* =========================
   “Box”-Optik & Typografie
   ========================= */

/* globale Variablen (sanfte, warme Töne) */
:root{
  --ai-main-bg:   #ffffff; /* zart ocker-gelb */
  --ai-panel-bg:  #c3c4da; /* weiß für Hinweise */
  --ai-border:    #ffffff; /* warmer Rahmen */
  --ai-radius:    8px;
  --ai-shadow:    0 0 10px rgba(0,0,0,0.05);
  --ai-font-size: 1rem;    /* ⇦ EIN Schalter für Box-Schriftgröße */
}

/* Dialog-Box (links) – bewusst am Ende, um ältere Regeln zu übersteuern */
.ai_container_aussen{
  background: var(--ai-main-bg);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;             /* linksbündig */
  font-size: var(--ai-font-size);
}

/* Hinweis-Box (rechts) */
#ai-hints-panel{
  background: var(--ai-panel-bg);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow);
  padding: 14px 16px;
  text-align: left;             /* linksbündig */
  font-size: var(--ai-font-size);
}

/* Falls das Aside noch .nav-sec hat, richte es trotzdem links aus */
#ai-hints-panel.nav-sec{
  justify-content: flex-start;  /* statt rechtsbündig aus Header-Menü */
}

/* Typografie im Hinweis-Panel */
#ai-hints-panel .row-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
#ai-hints-panel h4{
  margin: 0;
  font-size: 1.05em;
}
#ai-hints-panel .hint-muted{
  color: #555;
  font-size: .95em;
  margin: .4em 0;
}
#ai-hints-panel .hint-list{
  margin: .4em 0;
  padding-left: 1.1em;
}
#ai-hints-panel .hint-badge{
  display: inline-block;
  margin-left: 6px;
  padding: 0 .4em;
  font-size: .85em;
  border: 1px solid #cfe6ff;
  background: #eef5ff;
  border-radius: 4px;
}
#ai-hints-panel code{
  background: #f7f7f7;
  border-radius: 4px;
  padding: 0 .25em;
  font-size: .9em;
}



/* =========================
   Responsive
   ========================= */
@media (max-width: 720px){
  .ai-page-layout.with-hints{
    display: block;     /* untereinander */
  }
  .ai-page-layout.with-hints #ai-hints-panel{
    margin-top: 12px;
  }
}
/* Panel linksbündig lassen (falls .nav-sec greift) */
#ai-hints-panel { text-align: left; }
#ai-hints-panel.nav-sec { justify-content: flex-start; }

/* Überschrift kompakter */
#ai-hints-panel h5 {
  margin: 10px 0 4px;      /* ↓ näher an die Hinweise ran */
  font-size: 1.05em;       /* optional leicht größer */
}

/* Hinweise kleiner & dichter */
#ai-hints-panel .hint-muted {
  font-size: 0.85em;       /* ← hier stellst du "kleiner" ein */
  margin: 4px 0 8px;       /* ← Abstand zur Überschrift/zwischen Zeilen */
  line-height: 1.5;        /* gut lesbar trotz kleinerer Schrift */
}

/* Wenn du mehrere hint-muted untereinander hast: noch etwas dichter */
#ai-hints-panel .hint-muted + .hint-muted {
  margin-top: 3px;
}

/* Code im Hinweis unaufdringlicher */
#ai-hints-panel .hint-muted code {
  font-size: 0.9em;
}


.ctrl-col { display:flex; flex-direction:column; gap:6px; }
.ctrl-input {
  padding:.5em .7em;
  border:1px solid #ccc;
  border-radius:6px;
  width:90px;
}
.small-inp { width:80px; }







/*nav menüs*/
/* Dropdown-Menü Tests */
/* =======================
   Sidebar Menu Base Style
   ======================= */
/* ======================================
   Sidebar (neue Klassen)
   ====================================== */

.sidebar-nav {
    width: 200px;
    padding: 0;
}

.sidebar-nav .menu-section-title {
    font-size: 12px;
    font-weight: bold;
    margin: 20px 0 6px;
    padding-left: 4px;
    color: #0a08a1;
}

/* UL */
.sidebar-nav .menu-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* LI */
.sidebar-nav .menu-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
.sidebar-nav .menu-list a {
    font-size: 13px;
    display: block;
    padding: 8px 12px;
    color: #222;
    text-decoration: none ;
    font-weight: 500;
    border-radius: 4px;
}

.sidebar-nav .menu-list a:hover {
    background: #f2f2f2;
}

.sidebar-nav .menu-list a.active {
    background: #e5e5e5;
    font-weight: 600;
}

.menu-disabled {
    pointer-events: none;
    color: #aaa !important;
    opacity: 0.6;
}

/* Separator */
.menu-separator {
    border-bottom: 1px solid #ddd;
    margin: 10px 4px;
    height: 1px;
}

.menu-separator.labeled {
    border: none;
    color: #777;
    padding: 4px 0;
    font-size: 12px;
    text-align: center;
}


/* Entfernt ALLE Bullets */
.sidebar-nav ul,
.sidebar-nav .menu-list,
.sidebar-nav li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* Normale Menüeinträge */
.sidebar-nav a {
    display: block;
    padding: 8px 12px;
    color: #222;
    text-decoration: none 
}

/* Aktiver Menüpunkt */
.sidebar-nav a.active {
    background: #e5e5e5;
    font-weight: 600;
}

/* Customer-Page-Link → echter Link */
.menu-link-external {
    color: #0077cc !important;
    text-decoration: underline !important;
}

/* Hover */
.sidebar-nav a:hover {
    background: #f2f2f2;
}




.sidebar-nav .menu-list a.active {
    background: #ddd !important;
    color: #000 !important;

    font-weight: 700 !important;
    border-left: 3px solid #0077cc;
}


/* echte Link-Optik nur für externe CP-Links */
.menu-external-link {
    color: #0066cc !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}
.menu-external-link:hover {
    text-decoration: none !important;
    color: #004999 !important;
}



.error-field {
    border: 2px solid #fca5a5 !important;
    background: #fee2e2 !important;
}
