/* --- nebenkosten/public/assets/css/stylesheet.css ---
   =====================================================================
   NEBENKOSTEN – Basis-Stylesheet
   Design übernommen aus sommerland-management (Backoffice-Palette
   „Schieferblau"), bereinigt um Festival-, Lineup- und Druck-Spezialitäten.
   Reihenfolge im Layout: stylesheet.css → backoffice.css → utilities.css
   ===================================================================== */

/* -------------------------------------------------------------------
   Poppins, lokal ausgeliefert (SIL Open Font License)
   Kein @import zu Google Fonts – die Dateien liegen in ../fonts/.
   Das Layout setzt zusätzlich ein <link rel="preload"> auf den 400er-Schnitt.
   Schnitte 400/600/800, Zeichensätze latin und latin-ext.
   ------------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================
   Fluid Typography (Backoffice-Dichte)
========================================= */
html {
  font-size: clamp(12px, 1vw + 0.4rem, 14px);
}

/* =========================================
   Farb- & Layout-Variablen (Palette „Schieferblau")
   --terra heißt aus historischen Gründen so (Sommerland), ist hier aber
   die Primärfarbe Schieferblau. Name beibehalten, damit Regeln 1:1 passen.
========================================= */
:root{
  --bg:     #eef2f1;
  --paper:  #ffffff;
  --ink:    #16212b;
  --muted:  #5c6b6a;
  --terra:  #2c5f66;
  --rose:   #d7e6e5;
  --amber:  #c97a2b;
  --ring:   rgba(44,95,102,.35);
  --radius: 8px;
  --shadow: 0 2px 8px rgba(20,30,32,.08);
  --maxw:   1200px;
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================
   Base / Reset
========================================= */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
}

[hidden]{ display: none !important; }

/* =========================================
   Seitenrahmen (volle Breite)
========================================= */
.site{
  width: 100%;
  margin: 0;
  padding: 24px clamp(16px, 3vw, 28px);
}

/* =========================================
   Header
========================================= */
.slf-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}

.slf-header-inner{
  width: 100%;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;   /* Logo | Titel | Burger */
  align-items: center;
  gap: 12px;
  min-block-size: 44px;
}

.slf-header-title{
  text-align: center;
  font-weight: 600;
  font-size: 1.25em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 360px){
  .slf-header-inner{ gap: 6px; }
  .slf-header-title{ font-size: 1em; }
}

.slf-logo{
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.slf-logo img{
  display: block;
  height: 42px;
  inline-size: auto;
}

/* Rechte Header-Gruppe: ?-Knopf (Hilfe, backoffice.css) + Burger */
.slf-header-actions{
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================
   Burger
========================================= */
.burger{
  display: inline-flex;
  inline-size: 44px;
  block-size: 38px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.burger:focus-visible{
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.burger-bars{
  position: relative;
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.burger-bars::before,
.burger-bars::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.burger-bars::before{ transform: translateY(-6px); }
.burger-bars::after { transform: translateY( 6px); }

/* =========================================
   Navigation Panel
========================================= */
.nav-panel{
  width: 100%;
  padding: 6px 16px 10px;
  background: var(--paper);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  border-top: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.nav-panel ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-panel li{
  margin: 0;
  padding: 0;
}

.nav-panel li > a{
  display: block;
  padding: 8px 2px;
  text-decoration: none;
  color: var(--ink);
}
.nav-panel li > a:hover{ text-decoration: underline; }
.nav-panel li > a.active{
  font-weight: 700;
  text-decoration: underline;
}

.nav-panel li + li > a{ border-top: 1px solid #eee; }

.nav-panel li.nav-divider{
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 0.4rem 0;
  pointer-events: none;
}
.nav-panel li.nav-divider + li > a{ border-top: 0; }

.nav-user{
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #888;
  cursor: default;
}

/* Abmelden ist ein POST-Formular – der Knopf sieht aus wie ein Menülink */
.nav-panel .nav-button{
  display: block;
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-top: 1px solid #eee;
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.nav-panel .nav-button:hover{ text-decoration: underline; }

/* =========================================
   Content
========================================= */
.content { padding: 24px; }

/* =========================================
   Typografie
========================================= */
h1, h2, h3{
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
h1{
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  margin: 0 0 14px;
}
h2{
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  margin: 22px 0 10px;
}
h3{
  font-size: clamp(1rem, 0.8rem + 1vw, 1.25rem);
  margin: 18px 0 8px;
}

p{ margin: 0 0 14px; }

a{ color: var(--terra); }
a:hover{ color: color-mix(in srgb, var(--terra) 85%, black); }

ul, ol{ padding-left: 1.2em; }

/* =========================================
   Formulare – Basis
========================================= */
input[type=text],
input[type=number],
input[type=email],
input[type=password],
input[type=date],
textarea,
select {
  font-family: inherit;
  font-size: 1em;
}

/* =========================================
   Buttons – Basis (Varianten in backoffice.css)
========================================= */
button,
input[type="submit"],
.btn {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .05s ease, filter .2s ease;
  font: inherit;
  line-height: 1;
}
button:hover,
input[type="submit"]:hover,
.btn:hover{
  filter: brightness(.95);
}
button:active,
input[type="submit"]:active,
.btn:active{
  transform: translateY(1px);
}

/* Fokus */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* =========================================
   Footer
========================================= */
.footer{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
}
.footer a{ color: var(--ink); text-decoration: none; }
.footer a:hover{ text-decoration: underline; }
.footer .sep{ margin: 0 8px; color: var(--muted); }
.toplink{
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: rgba(230,160,58,.15);
}

/* =========================================
   Media & Tabellen (Allg.)
========================================= */
.content img{
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.content table{
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.9375rem;
}
.content th, .content td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.content th{
  text-align: left;
  background: rgba(211,158,143,.14);
}

/* =========================================
   Nach-oben-Button (to-top.js)
========================================= */
.slf-to-top{
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--bg));
  background: color-mix(in srgb, var(--ink) 90%, var(--bg));
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
  z-index: 1000;
}
.slf-to-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.slf-to-top:hover{ box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.slf-to-top:focus{
  outline: 2px solid color-mix(in srgb, var(--ink) 60%, var(--bg));
  outline-offset: 2px;
}
.slf-to-top svg{
  display: block;
  fill: currentColor;
}
@media (max-width: 380px){
  .slf-to-top{ width: 44px; height: 44px; }
}
