/* ============================================================
   AUF EWIG BLAU-WEISS · OFC
   Modernes Design – inspiriert von herthabsc.com
   Fonts: Oswald (Headings) + Inter (Body)
   ============================================================ */

:root {
  --navy:      #002855;
  --blue:      #0066B3;
  --sky:       #00A0E3;
  --white:     #FFFFFF;
  --bg:        #F4F7FB;
  --gray:      #E8EDF4;
  --text:      #1A2340;
  --muted:     #64748B;
  --shadow:    0 2px 16px rgba(0,40,85,.10);
  --shadow-lg: 0 8px 40px rgba(0,40,85,.18);
  --radius:    4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;                   /* iPhone: kein seitliches Scrollen */
  -webkit-text-size-adjust: 100%;       /* iOS: verhindert auto-Schriftgröße */
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;                   /* iPhone: Seite bleibt zentriert */
  width: 100%;
  max-width: 100vw;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.15;
}

/* ── HEADER / NAV ───────────────────────────────────────── */
.site-header {
  position: -webkit-sticky;            /* iOS Safari */
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: box-shadow .2s;
  width: 100%;
}

.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,40,85,.18); }

.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-eagle { font-size: 2rem; line-height: 1; }

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-main {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 1px;
}

.logo-sub {
  font-size: .62rem;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 0; }

.nav-link {
  display: block;
  padding: .4rem 1.1rem;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--navy);
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
  border-bottom-color: var(--sky);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.header-user {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

.btn-header {
  padding: .5rem 1.2rem;
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius);
  transition: all .15s;
  cursor: pointer;
  background: none;
}

.btn-header:hover { background: var(--navy); color: var(--white); }

.btn-header-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-header-primary:hover { background: var(--navy); border-color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  padding: .3rem;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #001A3A 0%, var(--navy) 50%, #004080 100%);
  color: var(--white);
  padding: 80px 1.5rem 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero::before {
  content: 'HAHOHE';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 900;
  color: rgba(255,255,255,.04);
  letter-spacing: .1em;
  pointer-events: none;
  user-select: none;
}

.hero-badge {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: .3rem .9rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: .8rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.hero p {
  font-size: 1.15rem;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero small variant */
.hero-sm {
  padding: 48px 1.5rem 80px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero-sm h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; overflow: hidden; }  /* kein seitl. Overflow auf iOS */
.section-white { background: var(--white); }
.section-light  { background: var(--bg); }

/* ── SECTION HEADER (Ghost-Text-Effekt) ─────────────────── */
.section-header { position: relative; margin-bottom: 2.5rem; }

.section-watermark {
  position: absolute;
  top: -1.5rem;
  left: -.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  color: rgba(0,102,179,.06);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  overflow: hidden;                     /* verhindert horizontalen Overflow auf iPhone */
  max-width: 100vw;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--sky);
  margin-top: 8px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .65rem 1.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary   { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }

.btn-sky       { background: var(--sky); color: var(--white); border-color: var(--sky); }
.btn-sky:hover { background: #0086C2; border-color: #0086C2; }

.btn-white     { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--bg); }

.btn-outline   { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); }

.btn-navy      { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: #001d40; }

.btn-success   { background: #16a34a; color: var(--white); border-color: #16a34a; }
.btn-success:hover { background: #15803d; }

.btn-danger    { background: #dc2626; color: var(--white); border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

.btn-warning   { background: #d97706; color: var(--white); border-color: #d97706; }
.btn-warning:hover { background: #b45309; }

.btn-light     { background: var(--gray); color: var(--text); border-color: var(--gray); }
.btn-light:hover { background: #d8dfea; }

.btn-sm  { padding: .4rem .9rem; font-size: .78rem; }
.btn-lg  { padding: .9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── NEWS CARDS (Homepage) ──────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
  position: relative;
}

.news-cat {
  position: absolute;
  top: 0; left: 0;
  background: var(--sky);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: .25rem .7rem;
  text-transform: uppercase;
}

.news-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }

.news-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
  transition: color .15s;
}

.news-card:hover .news-card-title { color: var(--blue); }

.news-card-text { font-size: .85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.news-card-meta { font-size: .75rem; color: var(--muted); margin-top: .6rem; }

/* ── STAT CARDS ─────────────────────────────────────────── */
.stat-strip {
  background: var(--navy);
  padding: 3rem 0;
  color: var(--white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}

.stat-label { font-size: .85rem; opacity: .75; margin-top: .4rem; text-transform: uppercase; letter-spacing: .5px; }

/* ── EVENT / TERMINE ────────────────────────────────────── */
.event-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-left: 4px solid var(--sky);
  margin-bottom: .6rem;
  box-shadow: var(--shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform .15s;
}

.event-row:hover { transform: translateX(4px); }

.event-date-box { text-align: center; min-width: 52px; }
.event-day   { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; }
.event-month { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.event-title { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; color: var(--navy); }
.event-sub   { font-size: .82rem; color: var(--muted); }

/* ── INFO STRIP (CTA) ───────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-strip h2  { font-size: 2.2rem; margin-bottom: .7rem; }
.cta-strip p   { opacity: .85; max-width: 540px; margin: 0 auto 1.8rem; }

/* ── ADMIN STATS ────────────────────────────────────────── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  text-align: center;
}

.admin-stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.admin-stat-label { font-size: .82rem; color: var(--muted); margin-top: .4rem; font-weight: 600; }

/* ── TABS ───────────────────────────────────────────────── */
.tabs-bar {
  display: flex;
  border-bottom: 3px solid var(--blue);
  margin-bottom: 1.5rem;
  gap: 3px;
}

.tab-btn {
  padding: .65rem 1.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.tab-btn:hover  { background: var(--gray); color: var(--navy); }
.tab-btn.active { background: var(--blue); color: var(--white); }

.tab-pane         { display: none; }
.tab-pane.active  { display: block; }

/* ── CARD WRAPPER ───────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.4rem;
}

/* ── REPORT / AUSWERTUNGEN ──────────────────────────────── */
.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}

.report-section { page-break-inside: avoid; }

.report-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--sky);
}

tfoot tr {
  background: #F0F5FF;
  font-weight: 700;
}
tfoot td { padding: .8rem 1rem; border-top: 2px solid var(--gray); }

/* ── TABLES ─────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }

thead tr { background: var(--navy); }

thead th {
  color: var(--white);
  padding: .8rem 1rem;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: .8rem;
  white-space: nowrap;
}

thead th:first-child { border-radius: var(--radius) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius) 0 0; }

tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--gray);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #F0F5FF; }

.tbl-empty { text-align: center; padding: 3rem; color: var(--muted); font-size: .9rem; }

/* ── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.badge-blue    { background: #DBEAFE; color: #1E40AF; }
.badge-sky     { background: #E0F4FD; color: #0369A1; }
.badge-green   { background: #DCFCE7; color: #166534; }
.badge-yellow  { background: #FEF9C3; color: #854D0E; }
.badge-red     { background: #FEE2E2; color: #991B1B; }
.badge-gray    { background: #F3F4F6; color: #374151; }

/* ── FORMS ──────────────────────────────────────────────── */
.form-group        { margin-bottom: 1rem; }
.form-group label  { display: block; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text); margin-bottom: .4rem; }

.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  font-size: .93rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,179,.12);
}

/* ── GRID UTILITIES ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success { background: #F0FDF4; color: #166534; border-color: #16a34a; }
.alert-danger  { background: #FFF1F2; color: #9F1239; border-color: #e11d48; }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-color: #2563EB; }
.alert-warning { background: #FFFBEB; color: #92400E; border-color: #D97706; }

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,50,.55);
  -webkit-backdrop-filter: blur(3px);  /* iOS Safari */
  backdrop-filter: blur(3px);
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,20,50,.35);
  animation: modalIn .22s ease;
}

.modal-lg { max-width: 720px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1.4rem;
  padding-bottom: .7rem;
  border-bottom: 3px solid var(--sky);
}

/* ── SHOP PRODUCT CARDS ─────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #001A3A, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;                     /* Bild bleibt innerhalb der abgerundeten Ecke */
}

.product-cat-tag {
  position: absolute;
  top: 0; left: 0;
  background: var(--navy);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: .25rem .65rem;
  text-transform: uppercase;
}

.product-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.product-desc { font-size: .83rem; color: var(--muted); margin-bottom: .7rem; flex: 1; line-height: 1.55; }
.product-price { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--blue); margin-bottom: .5rem; }
.product-stock-ok   { color: #16a34a; font-size: .8rem; font-weight: 600; }
.product-stock-low  { color: #d97706; font-size: .8rem; font-weight: 600; }
.product-stock-none { color: #dc2626; font-size: .8rem; font-weight: 600; }

/* Filter Pills */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.filter-pill {
  padding: .4rem 1rem;
  border: 2px solid var(--gray);
  border-radius: 999px;
  background: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.filter-pill:hover  { border-color: var(--blue); color: var(--blue); }
.filter-pill.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── CART SIDEBAR ───────────────────────────────────────── */
.cart-sidebar {
  position: fixed;
  right: 0; top: 72px;
  width: min(380px, 100vw);            /* iPhone: nie breiter als Bildschirm */
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);         /* iOS Safari: dynamic viewport height */
  background: var(--white);
  box-shadow: -6px 0 32px rgba(0,20,50,.15);
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 850;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.cart-sidebar.open { transform: translateX(0); }

.cart-head {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.cart-close-btn {
  background: none; border: none; color: var(--white);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  padding: 2px 6px; border-radius: 3px;
  transition: background .15s;
}
.cart-close-btn:hover { background: rgba(255,255,255,.2); }

.cart-body { flex: 1; overflow-y: auto; padding: .8rem; }

.cart-empty-msg { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart-empty-msg .big-icon { font-size: 3rem; margin-bottom: .5rem; }

.cart-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem .4rem;
  border-bottom: 1px solid var(--gray);
}

.cart-item-icon { font-size: 2.2rem; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-size  { font-size: .75rem; color: var(--muted); }
.cart-item-price { font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--blue); font-size: .9rem; }

.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gray); border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: #d0d8ea; }
.qty-del { background: none; border: none; color: #dc2626; cursor: pointer; font-size: .95rem; padding: 2px; }

.cart-foot {
  padding: 1rem 1.2rem;
  border-top: 2px solid var(--gray);
}

.cart-total-row {
  display: flex; justify-content: space-between;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin-bottom: .9rem;
}

/* Cart toggle badge */
.cart-count {
  background: var(--sky); color: var(--white);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── LOGIN PAGE ─────────────────────────────────────────── */
.login-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #001A3A 0%, var(--navy) 60%, #004080 100%);
}

.login-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.login-logo { text-align: center; margin-bottom: 2rem; }
.login-eagle { font-size: 3.5rem; }

.login-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto .5rem;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.login-logo h1 { font-size: 1.4rem; color: var(--navy); margin-top: .5rem; }
.login-logo p  { font-size: .85rem; color: var(--muted); margin-top: .2rem; font-family: 'Inter', sans-serif; text-transform: none; }

.credentials-box {
  background: #F0F5FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .82rem;
  color: #374151;
  margin-top: 1.2rem;
}

.credentials-box code {
  background: #DBEAFE;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: .82rem;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 4rem; }

.footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-brand {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-eagle { font-size: 2.5rem; }

.footer-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-name  { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.footer-sub   { font-size: .78rem; opacity: .6; margin-top: 2px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .7rem;
}

.footer-col-body { font-size: .85rem; line-height: 2; }
.footer-link { color: rgba(255,255,255,.65); transition: color .15s; }
.footer-link:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; }
.footer-bottom-inner { max-width: 1340px; margin: 0 auto; padding: 0 1.5rem; font-size: .8rem; text-align: center; opacity: .5; }

/* ── ZAHLUNGSARTEN ──────────────────────────────────────── */
.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-top: .4rem;
}

.payment-option { cursor: pointer; }
.payment-option input[type="radio"] { display: none; }

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .8rem .5rem;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s, background .15s;
  text-align: center;
  cursor: pointer;
}

.payment-option input:checked + .payment-card {
  border-color: var(--blue);
  background: #EFF6FF;
  box-shadow: 0 0 0 3px rgba(0,102,179,.12);
}

.payment-card:hover { border-color: var(--sky); }

.payment-icon  { font-size: 1.6rem; }
.payment-label { font-family: 'Oswald', sans-serif; font-size: .85rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; }
.payment-desc  { font-size: .72rem; color: var(--muted); line-height: 1.3; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .news-grid          { grid-template-columns: repeat(2, 1fr); }
  .stat-grid          { grid-template-columns: repeat(2, 1fr); }
  .admin-stats        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header */
  .header-inner       { height: 60px; padding: 0 1rem; gap: .5rem; }
  .main-nav           {
    display: none;
    flex-direction: column;
    position: fixed;                    /* fixed statt absolute – iOS scrollt sonst weg */
    top: 60px; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: .5rem 1rem 1.5rem;
    gap: 0;
    z-index: 950;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
  }
  .main-nav.open      { display: flex; }
  .nav-link           { border-bottom: 1px solid var(--gray); border-left: 3px solid transparent; padding: .85rem .5rem; font-size: 1rem; }
  .nav-link.is-active { border-left-color: var(--sky); border-bottom-color: var(--gray); }
  .header-actions     { gap: .4rem; margin-left: auto; }
  .header-user        { display: none; }
  .nav-toggle         { display: block; }
  .btn-header         { padding: .4rem .9rem; font-size: .8rem; }

  /* Hero */
  .hero               { padding: 50px 1rem 80px; clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); overflow: hidden; }
  .hero h1            { font-size: clamp(1.8rem, 7vw, 3rem); }
  .hero p             { font-size: .95rem; }
  .hero-actions       { flex-direction: column; align-items: center; }

  /* Layout */
  .cart-sidebar       { width: 100vw; top: 60px; height: calc(100dvh - 60px); }
  .news-grid          { grid-template-columns: 1fr; }
  .product-grid       { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .stat-grid,
  .admin-stats        { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3    { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; gap: 1.2rem; }
  .logo-main          { font-size: .9rem; }

  /* Tabs */
  .tabs-bar           { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: .3rem; scrollbar-width: none; }
  .tabs-bar::-webkit-scrollbar { display: none; }
  .tab-btn            { white-space: nowrap; font-size: .8rem; padding: .5rem .9rem; flex-shrink: 0; }

  /* Admin table – horizontal scroll */
  .tbl-wrap           { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl-wrap table     { min-width: 540px; }

  /* Modals – von unten einblenden auf iOS */
  .modal-overlay      { padding: 0; align-items: flex-end; }
  .modal              {
    padding: 1.4rem 1.2rem;
    margin: 0;
    border-radius: 16px 16px 0 0;      /* Rundung oben – iOS Sheet-Stil */
    max-height: 93dvh;
    width: 100%;
  }
  .modal-lg           { max-width: 100%; }

  /* Payment options */
  .payment-options    { grid-template-columns: 1fr; }

  /* Shop filter */
  .filter-bar         { gap: .4rem; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filter-pill        { flex-shrink: 0; }

  /* Checkout summary */
  #checkoutSummary    { max-height: 130px; }

  /* Section padding */
  .section            { padding: 2.5rem 0; }
  .container          { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .stat-grid,
  .admin-stats  { grid-template-columns: 1fr; }
  .stat-item    { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }

  /* Login */
  .login-box    { padding: 1.5rem 1.2rem; }

  /* Hero stat strip */
  .stat-grid    { grid-template-columns: 1fr 1fr; }

  /* Touch-freundlichere Buttons */
  .btn          { min-height: 44px; }
  .btn-sm       { min-height: 36px; }
  .nav-toggle   { min-height: 44px; min-width: 44px; }
}

/* ── BILD-UPLOAD BEREICH ─────────────────────────────────── */
.img-upload-area {
  border: 2px dashed var(--gray);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}

.img-upload-area:hover {
  border-color: var(--blue);
  background: #F0F8FF;
}

.img-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1rem;
  gap: .2rem;
}

/* ── ADMIN TERMINE ──────────────────────────────────────── */
.event-admin-row {
  transition: opacity .25s, box-shadow .2s;
}
.event-admin-row:hover {
  box-shadow: var(--shadow-lg);
}

/* ── PRINT-STYLES ────────────────────────────────────────── */
@media print {
  /* Alles ausblenden außer Auswertungen */
  .site-header,
  .site-footer,
  .tabs-bar,
  .report-toolbar,
  .admin-stats,
  .btn, .btn-sm,
  #pane-orders,
  #pane-products,
  #pane-members,
  #pane-events,
  .hero { display: none !important; }

  /* Auswertungs-Tab immer sichtbar beim Drucken */
  #pane-reports { display: block !important; }

  body { background: white; color: black; font-size: 11pt; }
  .section, .section-light { padding: 0; background: white; }
  .container { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; margin-bottom: 1rem; break-inside: avoid; }

  table { min-width: 0; font-size: 9pt; }
  thead tr { background: #002855 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tbody tr:hover { background: none; }

  .tbl-wrap { overflow: visible; }

  .badge {
    border: 1px solid #ccc;
    background: none !important;
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Druckkopf */
  #pane-reports::before {
    content: 'Auf ewig Blau-Weiß · OFC – Auswertung vom ' attr(data-date);
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 14pt;
    font-weight: 700;
    color: #002855;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #0066B3;
  }
}
