html, body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    /* WICHTIG: Offset für Anker/scrollIntoView etc. */
    scroll-padding-top: 170px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    
}

main {
    flex: 1;


}
.home{
     background-image: url("/static/images/Hintergrund_start.jpeg");
    margin-top: 100px;
    
  background-repeat: no-repeat;     /* keine Kacheln */
  background-size: cover;           /* deckt den Bereich, beschneidet bei Bedarf */
  background-position: center;      /* Fokus zentriert (oder 'center top' für oben) */
  /*background-size: contain;*/
}


/* Footer nur Startseite */
.start-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  /* Hintergrund & Lesbarkeit */
  background: rgba(255, 255, 255, 0.55);
  color: #000000;
  backdrop-filter: blur(6px);
  border-top: 20px solid rgb(89,157,153);

  /* Layout */
  box-sizing: border-box;
  padding: 14px 0;
  z-index: 1000; /* über dem Inhalt */
}

/* Zentrierter Innen-Container, verhindert Rand-Abschnitt */
.start-footer .footer-inner {
  max-width: 1200px;      /* verhindert zu breite Ausdehnung */
  margin: 0 auto;         /* zentriert */
  padding: 0 16px;        /* Sicherheitsabstand zu Bildschirmrand */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Linkzeile links */
.start-footer .legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* falls wenig Platz, umbrechen */
}

.start-footer .legal-links a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.95;
}

.start-footer .legal-links a:hover {
  text-decoration: underline;
}

.start-footer .legal-links .sep {
  opacity: 0.6;
}

/* Partner-Box rechts */
.start-footer .partner-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0; /* verhindert Überlauf bei sehr schmalen Screens */
}

.start-footer .partner-label {
  font-size: 15px;
  opacity: 0.9;
  white-space: nowrap;
}

/* Logo sicher skalieren, nie abgeschnitten */
.start-footer .partner-logo {
  max-height: 34px;      /* Höhe begrenzen */
  max-width: 180px;      /* Breite begrenzen */
  height: auto;
  width: auto;
  object-fit: contain;   /* vollständige Darstellung */
  display: block;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

/* Responsives Verhalten: bei schmalen Screens Inhalte untereinander */
@media (max-width: 720px) {
  .start-footer .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .start-footer .partner-box {
    justify-content: center;
  }
}

/* Prevent overlap with content: etwas Platz unten im Main lassen */
main.home {
  padding-bottom: 80px; /* damit Footer nicht Inhalt überdeckt */
}


        .imgheader {            
            height: auto;
            margin-top: 10px;
        }
        .div_header_main {
            width: 100%;
            display: flex;
            align-items: center;
            float: left;
            position: fixed;
            background-color: rgb(255, 255, 255);
            top: 0;
            border-bottom: 20px solid rgb(89,157,153);
            z-index: 1;
        }
        .gerichte_main{
            width:100%;
            margin-left:5%;
            height:auto;
            display: block;
        }
        .gerichte_artikel{
            width:15%;
            float:left;
            margin-left:2%;
            display: block;            
        }
        .gerichte{
            width:100%;
            height:auto;
        }
        .zum_warenkorb{
            width:100%;
            text-align: center;
            float: left;
        }
        .header_logout{
            width:100%;
            float:left;
            z-index: 2;
        }
        .show_user{
            width:100%;
            float:left;
            text-align: center;
        }
        .logout_button{
            width:100%;
            float:left;
            margin-left:10px;
            margin-bottom:10px;
        }
        
.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* versteckt */
    width: 250px;
    height: 95vh;
    background-color: #333;
    color: #fff;
    transition: left 0.3s ease;
    padding-top: 60px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    z-index: 3;
}
.sidebar-nav{
    height: 80%;
}
.nav_link {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
}

.sidebar.active {
    right: 0; /* sichtbar */
}

.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 37px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 2;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}


/* === FOOTER (LOGOUT) – bleibt unten sichtbar === */
.logout_footer {
  margin-top: auto;                 /* schiebt an das Spaltenende (unten) */
  padding: 12px 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: #333;

  /* Optional (zusätzliche Sicherheit, v.a. bei iOS Browsern): */
  position: sticky;
  bottom: 0;
}

.logout_footer form input[type="submit"] {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.logout_footer form input[type="submit"]:hover {
  background: #dc2626;
}


.div_header{
    width:100%;
    float:left;
}
.div_margin_to_header{
    height:120px;
}
.header_title{
    margin: 10px;
}
.Selection_meal {
    width: 150px;
}
.user_icon {
    width: 69px;
}

        /* Optional: in deine style.css verschieben */
        :root { --primary:#1f4fff; --bg:#f6f8fb; --card:#fff;   color-scheme: light;}
        body { font-family: system-ui, sans-serif; background: var(--bg); margin:0;}
        .container { max-width: 1200px; margin: 24px auto; padding: 0 16px;}
        .grid { display:grid; gap:16px; grid-template-columns: 1fr;}
        @media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
        .card { background: var(--card); border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding:16px;}
        .kpi { display:flex; gap:24px; flex-wrap:wrap;}
        .kpi .item { flex:1 1 200px; background: var(--card); padding:16px; border-radius:12px;}
        .muted { color:#666;}
        .table { width:100%; border-collapse: collapse;}
        .table th, .table td { padding:8px; border-bottom:1px solid #eee; text-align:left;}
        .badge { display:inline-block; padding:4px 8px; border-radius: 999px; background:#eef; color:#334; font-size:12px;}
        .form-row { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px;}
        .form-row .field { flex:1 1 220px;}
        .btn { background: var(--primary); color:white; border:none; border-radius:8px; padding:10px 14px; cursor:pointer;}
        .warn { background:#fff4e5; border:1px solid #ffcf8b; padding:12px; border-radius:8px; }

.adress_field  {
    width: 150px;
    float:left;
}
.form-label {
    width: 200px;
    float:left;
}


.link_button {
  /* Farb-Variablen (bei Bedarf anpassbar) */
  --btn-bg: #2563eb;            /* Primärblau */
  --btn-bg-hover: #1e40af;      /* Hover */
  --btn-bg-active: #1d4ed8;     /* Active */
  --btn-text: #ffffff;          /* Textfarbe */
  --btn-border: color-mix(in srgb, var(--btn-bg) 70%, black 30%);
  --btn-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .06);

  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .6rem 1rem;
  border-radius: .6rem;
  border: 1px solid var(--btn-border);
  background: linear-gradient(180deg, var(--btn-bg), color-mix(in srgb, var(--btn-bg) 85%, black 15%));
  color: var(--btn-text);
  text-decoration: none;

  font: 600 0.95rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  box-shadow: var(--btn-shadow);

  transition: background-color .2s ease, box-shadow .2s ease, transform .02s ease;
  cursor: pointer;
}


.login_header {
    width: 20%;
  
  text-align: center;
    
    margin: 10px;

      --btn-bg: rgb(89, 157, 153);            /* Primärblau */

  --btn-text: #ffffff;          /* Textfarbe */
  --btn-border: color-mix(in srgb, var(--btn-bg) 70%, black 30%);
  --btn-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .06);

  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  
  border-radius: 1.6rem;
  border: 1px solid var(--btn-border);
  background: linear-gradient(180deg, var(--btn-bg), color-mix(in srgb, var(--btn-bg) 85%, black 15%));
  color: var(--btn-text);
  text-decoration: none;

  font: 600 0.95rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  box-shadow: var(--btn-shadow);

  transition: background-color .2s ease, box-shadow .2s ease, transform .02s ease;
  cursor: pointer;
}
.logout_header{
    width: 100px;
    top:17px;
    right:90px;
    float: right;
    position: fixed;
    margin: 10px;

      --btn-bg: #eb253f;            /* Primärblau */
  --btn-text: #ffffff;          /* Textfarbe */
  --btn-border: color-mix(in srgb, var(--btn-bg) 70%, black 30%);
  --btn-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .06);

  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .1rem 1rem;
  border-radius: .6rem;
  border: 1px solid var(--btn-border);
  background: linear-gradient(180deg, var(--btn-bg), color-mix(in srgb, var(--btn-bg) 85%, black 15%));
  color: var(--btn-text);
  text-decoration: none;

  font: 600 0.95rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  box-shadow: var(--btn-shadow);

  transition: background-color .2s ease, box-shadow .2s ease, transform .02s ease;
  cursor: pointer;
  z-index: 2;
}


.btn-logout {
    width: 100px;

    --btn-bg: #eb253f; /* Rot */
    --btn-text: #ffffff;
    --btn-border: color-mix(in srgb, var(--btn-bg) 70%, black 30%);
    --btn-shadow: 0 1px 2px rgba(0, 0, 0, .08),
                  0 2px 6px rgba(0, 0, 0, .06);

    appearance: none;
    border: none;
    /*border: 1px solid var(--btn-border);*/
    border-radius: .6rem;

    padding: .6rem 1rem;
    background: linear-gradient(
        180deg,
        var(--btn-bg),
        color-mix(in srgb, var(--btn-bg) 85%, black 15%)
    );

    color: var(--btn-text);
    font: 600 0.95rem/1.2 system-ui, -apple-system, Segoe UI, Roboto,
          "Helvetica Neue", Arial, sans-serif;

    box-shadow: var(--btn-shadow);
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center; /* ✅ Text exakt mittig */

    transition: background-color .2s ease, box-shadow .2s ease, transform .02s ease;
}

.card-quarter{
  width: 20%;
  float: left;
  margin: 10px;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

th, td {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

select {
  width: 100%;
  max-width: 100%;
}

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

.meal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.meal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}

.meal-modal-content {
  position: relative;
  background: #fff;
  width: min(720px, 90vw);
  max-height: 80vh;
  margin: 5vh auto;
  padding: 16px;
  border-radius: 12px;
  overflow-y: auto;
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.meal-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  background: #fff;
}

.meal-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

#id_diet {
  width: 20%;
}

.meal-info{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  color:#6b7280;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  cursor: help;
  margin-left: 2px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.meal-info:hover{
  background:#eef2ff;
  border-color:#c7d2fe;
  color:#3730a3;
}

.meal-tooltip{
  position:absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 10px 12px;

  color:#111827;
  font-size: 13px;
  line-height: 1.35;
  text-align:left;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  z-index: 9999;
}

/* Pfeil */
.meal-tooltip::after{
  content:"";
  position:absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #ffffff;
}

.meal-tooltip::before{
  content:"";
  position:absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #e5e7eb;
  margin-top: 1px; /* dünner Rand um den Pfeil */
}

.meal-info:hover .meal-tooltip,
.meal-info:focus .meal-tooltip,
.meal-info.is-open .meal-tooltip{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* Inhalt */
.meal-tooltip__row{
  display:flex;
  gap: 8px;
  align-items: flex-start;
}

.meal-tooltip__row + .meal-tooltip__row{
  margin-top: 8px;
}

.meal-tooltip__label{
  color:#6b7280;
  white-space:nowrap;
  font-weight: 600;
}

.meal-tooltip__text{
  color:#111827;
}

/* Pills */
.meal-pill{
  display:inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  background:#f3f4f6;
  color:#111827;
}

.meal-pill--vegan{
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#14532d;
}

.meal-pill--vegetarian{
  background:#fef9c3;
  border-color:#fde68a;
  color:#854d0e;
}

.meal-pill--none{
  background:#f3f4f6;
  border-color:#e5e7eb;
  color:#374151;
}


.worker-form {
  max-width: 520px;   /* <- Breite anpassen */
  width: 100%;
  margin: 0 auto;     /* zentrieren */
}

.worker-form {
  max-width: 760px;
  margin: 0 auto;
}

.worker-form .form-row {
  display: grid;
  grid-template-columns: 180px 1fr; /* Label-Spalte fix, Input flexibel */
  gap: 6px 16px;
  align-items: right;
  margin-bottom: 12px;
}

.worker-form label {
  margin: 0;
  font-weight: 600;
}

.worker-form input,
.worker-form select,
.worker-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
}

/* Mobil wieder untereinander */
@media (max-width: 640px) {
  .worker-form .form-row {
    grid-template-columns: 1fr;
  }
}

