
/* Bunte Notfelle e.V. – Basis-Styles (konsolidiert)
   Hinweis: Icons im images-Ordner: icon_*.jpg */

:root{
  --bg-overlay: rgba(255,255,255,0.78);
  --card: rgba(255,255,255,0.86);
  --text: #1b1b1b;
  --muted: #475569;
  --teal: #1aa6a6;
  --teal-dark: #0f7f7f;
  --shadow: 0 10px 24px rgba(0,0,0,0.10);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height:1.55;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.65), rgba(255,255,255,0.85)),
    url("images/bg_wiese_hunde.jpg") center/cover no-repeat fixed;
}

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

/* Header */
.site-header{
  width:min(1200px, calc(100% - 32px));
  margin: 18px auto 10px;
}
.logo-area{
  display:flex;
  align-items:center;
  gap:14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-overlay);
  box-shadow: var(--shadow);
}
.logo-area img{
  width:62px;
  height:62px;
  object-fit:cover;
  border-radius: 14px;
}
.site-title h1{
  margin:0;
  font-size: 22px;
}
.site-title p{
  margin:2px 0 0;
  color: var(--muted);
}

/* Navigation */
.nav{
  width:min(1200px, calc(100% - 32px));
  margin: 10px auto 14px;
  padding: 10px;
  background: var(--bg-overlay);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}
.nav a{
  text-decoration:none;
  color: #0f172a;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{
  background: rgba(26,166,166,0.12);
}
.nav a.active{
  background: rgba(26,166,166,0.16);
  border: 1px solid rgba(26,166,166,0.25);
}

/* Banner */
.banner-wrapper{
  width:min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
}
.banner{
  width:100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}



/* Banner-Compat: ältere Markups (z.B. .header-banner) sollen identisch aussehen */
.header-banner img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display:block;
}
/* Layout */
.page{
  width:min(1200px, calc(100% - 32px));
  margin: 0 auto 28px;
}
.layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items:start;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

.content, .sidebar{ min-width:0; }

/* Cards */
.section{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  margin-bottom: 16px;
}
.section h2{ margin: 0 0 10px; font-size: 26px; }
.section h3{ margin: 0 0 8px; font-size: 20px; }

.sidebar-card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-card h3{ margin: 0 0 10px; }

hr{ border:0; height:1px; background: rgba(15,23,42,0.10); margin: 12px 0; }

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

/* Buttons */
.button-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}
.button-row.compact .button{ padding: 10px 12px; font-size: 14px; }

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(26,166,166,0.14);
  border: 1px solid rgba(26,166,166,0.25);
  color: #0b3b3b;
  font-weight: 700;
  text-decoration:none;
  transition: transform 120ms ease, background 120ms ease;
}
.button:hover{ transform: translateY(-1px); background: rgba(26,166,166,0.20); }
.button.secondary{
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(15,23,42,0.15);
  color:#0f172a;
}
.button.secondary:hover{ background: rgba(255,255,255,0.75); }

/* Sidebar icons */
.social-icons{
  display:flex;
  gap: 12px;
  align-items:center;
}
.social-icons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15,23,42,0.10);
}
.social-icons img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  display:block;
}

/* Compat: manche Seiten nutzen .social-links / .social-icon */
.social-links img,
.social-icon img{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
}


/* Feature grid on home */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 680px){
  .feature-grid{ grid-template-columns: 1fr; }
}
.feature-card{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  padding: 14px 14px;
  text-decoration:none;
  color: inherit;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.feature-card:hover{
  border-color: rgba(26,166,166,0.35);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}
.feature-card h3{ margin: 0 0 6px; }
.feature-card p{ margin:0; color: var(--muted); }

/* Instagram card (inline, not sidebar) */
.social-card{
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:space-between;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  padding: 14px;
}
@media (max-width: 680px){
  .social-card{ flex-direction: column; align-items: stretch; }
}
.social-card__text h3{ margin: 0 0 6px; }
.social-card__text p{ margin:0; }
.social-card__media{
  flex: 0 0 auto;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}
.social-card__media img{
  width: 280px;
  height: auto;
}
@media (max-width: 680px){
  .social-card__media img{ width: 100%; }
}

/* Footer */
.site-footer{
  width:min(1200px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 14px 16px;
  background: var(--bg-overlay);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
}

/* Basic form styling (used on some pages) */
input, select, textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.15);
  background: rgba(255,255,255,0.75);
  font: inherit;
}
label{ font-weight: 700; }

/* Lightbox (if used) */
.lightbox-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.75);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
  z-index: 9999;
}
.lightbox-overlay.is-open{ display:flex; }
.lightbox-overlay img{
  max-width: min(1000px, 95vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
/* FIX: Social-Icons überall gleich */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.social-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

/* FIX: Notfall-Badge sichtbar */
.badge.notfall {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 80, 80, 0.14);
  border: 1px solid rgba(255, 80, 80, 0.35);
}

/* FIX: Kartenbilder (Notfälle/Storys/Vorstand)
   - Nicht mehr extrem croppen
   - Motiv bleibt erkennbar (contain + ruhiger Hintergrund)
*/
.preview-card img{
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: rgba(255,255,255,0.35);
  padding: 6px;
  border-radius: 14px;
}
/* =========================
   MINI-FIX: Notfälle & Sidebar-Icons
   ========================= */

/* Social-Icons überall gleich */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.social-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

/* Notfall-Badge sichtbar und ruhig */
.badge.notfall {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 80, 80, 0.14);
  border: 1px solid rgba(255, 80, 80, 0.35);
}

/* =========================
   BASIS-FIX: Hauptinhalt sichtbar machen
   ========================= */

.page {
  padding: 24px 0;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
/* =========================
   BASIS-FIX: Hauptinhalt sichtbar machen
   ========================= */

.page {
  padding: 24px 0;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
/* =========================
   BASIS-FIX: Hauptinhalt sichtbar machen
   ========================= */

.page {
  padding: 24px 0;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
/* =========================
   BASIS-FIX: Hauptinhalt sichtbar machen
   ========================= */

.page {
  padding: 24px 0;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
/* =========================
   BASIS-FIX: Hauptinhalt sichtbar machen
   ========================= */

.page {
  padding: 24px 0;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
.content h1 {
  margin-top: 0;
  font-size: 2rem;
}

.content h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.content p {
  line-height: 1.6;
  margin: 0.6rem 0 1rem;
}
/* =========================
   ALIAS-FIX: HTML-Klassen an bestehende CSS anbinden
   (damit alle Seiten wieder Styles bekommen)
   ========================= */

/* Navigation: .main-nav soll wie .nav aussehen */
.main-nav {
  width: min(1200px, calc(100% - 32px));
  margin: 10px auto 14px;
  padding: 10px;
  background: var(--bg-overlay);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: #0f172a;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.main-nav a:hover {
  background: rgba(26,166,166,0.12);
}
.main-nav a.active {
  background: rgba(26,166,166,0.16);
  border: 1px solid rgba(26,166,166,0.25);
}

/* Banner: .banner-image soll wie .banner aussehen */
.banner-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Optional: header-inner und logo-link (wenn vorhanden) */
.header-inner { width: 100%; }
.logo-link img { display:block; }


/* =========================
   BILDER-GRÖSSEN: Inhalte & Shop
   Ziel: mind. ~50% kleiner ohne Layout-Bruch
   ========================= */

/* Inline-Bilder in Story-/Textartikeln (zwischen Absätzen) */
.article > img:not(.banner-image){
  max-width:55%;
  height:auto;
  margin:18px auto;
  border-radius:14px;
  box-shadow: var(--shadow);
}

/* Auf kleinen Displays wieder voll nutzbar */
@media (max-width: 700px){
  .article > img:not(.banner-image){
    max-width:100%;
  }
}

/* Shop: Karten & Vorschaubilder */
.shop-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
}

.shop-card .thumb{
  width:100%;
  height:170px;          /* kleiner & einheitlicher */
  object-fit:cover;
  border-radius:14px;
  display:block;
}

/* Shop: Status-Icons vereinheitlichen (unterschiedliche Formate/Qualität) */
.shop-meta{
  display:flex;
  gap:10px;
  align-items:center;
}

.shop-meta img{
  width:30px;
  height:30px;
  object-fit:contain;
  display:block;
  padding:4px;
  border-radius:10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.10);
}

/* Falls irgendwo kleine Icon-Listen ohne Klasse auftauchen */
.icon-row img{
  width:30px;
  height:30px;
  object-fit:contain;
}



/* Happy Ends: Instagram-Kanal Teaser kleiner & edler */
.inline-social-box img{
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Story-Galerie (z.B. Emma) */
.story-gallery{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.story-gallery h2{ margin: 0 0 6px; }
.story-gallery .small{ margin: 0 0 12px; }

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

.gallery-item{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.35);
}
.gallery-item img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 160ms ease;
}
.gallery-item:hover img{ transform: scale(1.02); }


/* Startseite: kleine CTA-Reihe */
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Sanfte Liste (ohne harte Bullet-Optik) */
.soft-list{
  margin: 10px 0 6px;
  padding-left: 18px;
}
.soft-list li{ margin: 6px 0; }

/* Text-Link (ruhiger als Button) */
.text-link{
  display:inline-block;
  margin-top: 6px;
  text-decoration: underline;
}
\n\n/* ===== Kalender & Events (Patch 7) ===== */
.page-kalender .content-card,
.page-kalender .sidebar-card,
.page-kalender .calendar-shell,
.page-kalender .calendar-grid-wrap {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.calendar-shell{
  padding: 18px;
}

.calendar-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

.calendar-title h2{
  margin:0;
}

.calendar-title .small-print{
  margin: 6px 0 0;
}

/* Month strip: klein, nicht endlos lang */
.month-strip{
  display:flex;
  gap: 8px;
  overflow:auto;
  padding: 10px 4px;
  scroll-snap-type: x mandatory;
}

.month-chip{
  scroll-snap-align: start;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration:none;
  color: inherit;
  white-space:nowrap;
}

.month-chip img{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  display:block;
}

.month-chip .month-name{
  font-weight: 600;
}

.month-chip.is-active{
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.18);
}

.calendar-grid-wrap{
  padding: 14px;
  border-radius: 18px;
}

.calendar-weekdays,
.calendar-days{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 10px;
}

.calendar-weekday{
  font-weight: 700;
  opacity: 0.85;
  text-align:center;
}

.day-cell{
  position: relative;
  min-height: 70px;
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.08);
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding: 10px;
  text-decoration:none;
  color: inherit;
}

.day-cell.is-empty{
  opacity: 0.35;
  border-style: dashed;
}

.day-cell .day-number{
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.day-cell.is-today{
  outline: 2px solid rgba(0,0,0,0.18);
  outline-offset: 1px;
}

.day-cell.has-event{
  background: rgba(10, 167, 160, 0.22);
  border-color: rgba(10, 167, 160, 0.35);
}

.day-cell.has-event:hover{
  background: rgba(10, 167, 160, 0.28);
}

.calendar-eventlist{
  margin: 12px 0 0;
  padding-left: 18px;
}

.calendar-empty{
  margin: 12px 0 0;
  opacity: 0.85;
}

/* Events Seite */
.events-list h3{
  margin-top: 18px;
}

.event-card{
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.08);
}

.event-card .event-meta{
  margin-top: 6px;
  opacity: 0.8;
}

/* Mobile: weniger Höhe */
@media (max-width: 720px){
  .day-cell{ min-height: 58px; padding: 8px; }
  .day-cell .day-number{ font-size: 18px; }
}
