/*
Theme Name: REGA Minimal
Theme URI: https://rega-tv.com/
Author: REGA-TV / Nico
Description: Mobile „MENÜ“ zentriert (sticky) mit Chevron; Liste klappt darunter auf (links­bündig). PWA-Install-Banner mit Android/iOS-Fallback.
Version: 1.3.1
License: GPL-2.0+
Text Domain: rega-minimal
*/

:root{
  --container: 95vw;
  --maxw: 1400px;
  --brand: #0a7a48;
  --bg: #f8fafc;
  --text: #111827;
}

*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text)}

.site-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  position:sticky; top:0; z-index:50;
}
.wrap{width:var(--container);max-width:var(--maxw);margin:0 auto}

.brand{ display:flex;align-items:center;gap:.75rem; padding:1rem 0; }
.brand .title{font-size:1.5rem;font-weight:700;margin:0}
.brand .subtitle{color:#6b7280;margin:0}
.login-note{ margin:.25rem 0 0; font-size:.95rem; color:#374151; }

/* NAVBAR */
.navbar{border-top:1px solid #e5e7eb;background:#fff}
.nav-inner{display:flex;align-items:center;gap:.75rem}

/* Menü (Desktop) */
.menu{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  padding:.5rem 0;
  margin:0;
  list-style:none;
}
.menu a{
  display:block;
  padding:.5rem .75rem;
  border-radius:.6rem;
  text-decoration:none;
  color:#111827;
}
.menu a:hover, .menu .current-menu-item > a{ background:#e6f5ee; color:#065f3c; }

/* LOGIN/LOGOUT gross & rechts (Desktop) */
.menu .menu-item-auth{ margin-left:auto; }
.menu .menu-item-auth a{ text-transform:uppercase; font-weight:700; letter-spacing:.02em; }

/* Toggle-Button Basis */
.menu-toggle{
  /* Desktop VOLL ausschalten */
  display:none !important;
  border:1px solid #e5e7eb;
  background:#fff;
  padding:.9rem 1rem;
  border-radius:12px;
  cursor:pointer;
  line-height:1;
  align-items:center;
  justify-content:center;
  gap:.5rem;
}
.menu-toggle:focus{ outline:2px solid #0a7a48; outline-offset:2px; }
.menu-toggle-text{
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
/* Chevron */
.menu-toggle .chevron{
  transition: transform .2s ease, opacity .2s ease;
  opacity:.85;
  fill:#111827;
}
.navbar.open .menu-toggle .chevron{ transform: rotate(180deg); }

/* Inhalt */
main{padding:1.5rem 0}
.content{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:1rem;min-height:45vh}

.site-footer{
  margin-top:2rem;background:#fff;border-top:1px solid #e5e7eb;color:#6b7280;
}
.site-footer .inner{padding:.6rem 0; font-size:.9rem; text-align:center}

/* Logo */
.brand .logo img { display:block; height:48px; width:auto; }

/* --- MOBILE --- */
@media (max-width: 960px){
  /* MENÜ-Button zentriert & sticky oben */
  .nav-inner{ flex-direction:column; align-items:stretch; gap:.5rem; }
  .menu-toggle{
    display:inline-flex !important;  /* nur mobil anzeigen */
    width:100%;
    text-align:center;
    position: sticky;
    top: 0;
    z-index: 2;
    background:#fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }

  /* Dropdown-Liste: linksbündig; weiche Auf/Zu-Animation via max-height */
  .navbar .menu{
    display:block;
    max-height: 0;
    overflow:hidden;
    transition: max-height .25s ease, padding .25s ease, border-color .25s ease;
    flex-direction:column;
    align-items:flex-start;      /* linksbündig */
    gap:0;
    margin:0;
    padding:0;
    width:100%;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .navbar.open .menu{
    padding:.4rem 0 .6rem;
    max-height: 70vh;
    overflow:auto;               /* Liste scrollt; MENÜ bleibt oben */
  }

  .menu a{
    width:100%;
    text-align:left;             /* linksbündig */
    padding:.9rem 1rem;
    border-radius:10px;
  }
  .menu li + li a{ margin-top:.25rem; }

  /* Auth-Link mobil nicht nach rechts schieben */
  .menu .menu-item-auth{ margin-left:0; }
}

/* --- PWA Prompt --- */
.pwa-prompt{
  position: fixed; inset: 0;
  display: grid; place-items: end center;
  background: rgba(0,0,0,.35);
  z-index: 999999;
  padding: 12px;
}
.pwa-prompt[hidden]{ display:none; }

.pwa-card{
  width: min(640px, 96vw);
  background:#fff;
  color:#111827;
  border:1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  padding: 14px 16px 10px;
  position: relative;
  margin-bottom: max(env(safe-area-inset-bottom), 8px);
}
.pwa-title{ font-weight:800; letter-spacing:.02em; margin-bottom:6px; }
.pwa-body p{ margin:.4rem 0 .6rem; line-height:1.35; }
.pwa-actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:6px; }
.pwa-btn{
  border:1px solid #d1d5db; background:#fff; color:#111827;
  border-radius:10px; padding:.5rem .8rem; cursor:pointer;
}
.pwa-btn.pwa-ok{
  background:#0a7a48; border-color:#0a7a48; color:#fff; font-weight:700;
}
.pwa-close{
  position:absolute; right:8px; top:8px;
  border:none; background:transparent; font-size:20px; line-height:1; cursor:pointer; color:#6b7280;
}
.ios-share{
  display:inline-block; width:18px; height:18px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\'0 0 24 24\'><path d=\'M12 16V7m0 0l-3 3m3-3l3 3M6 19h12a2 2 0 002-2v-6a2 2 0 00-2-2h-2\' stroke=\'%23000\' stroke-width=\'2\' fill=\'none\' stroke-linecap=\'round\' stroke-linejoin=\'round\'/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\'0 0 24 24\'><path d=\'M12 16V7m0 0l-3 3m3-3l3 3M6 19h12a2 2 0 002-2v-6a2 2 0 00-2-2h-2\' stroke=\'%23000\' stroke-width=\'2\' fill=\'none\' stroke-linecap=\'round\' stroke-linejoin=\'round\'/></svg>') no-repeat center / contain;
  vertical-align:-3px;
}





/* Kalender soll wachsen, nicht scrollen */
.fc, .fc .fc-view { 
  height: auto !important;
  max-height: none !important;
}

/* interne Scrollcontainer deaktivieren (Monat, Woche, Liste) */
.fc-scroller,
.fc-scroller-harness,
.fc-timegrid-body,
.fc-daygrid-body,
.fc-list-scroller {
  overflow: visible !important;
  max-height: none !important;
}



@media (max-width: 767.98px){
  .fc .fc-week-number,
  .fc .fc-daygrid-week-number { display:none !important; }
}
