/*
Theme Name: SeDiLo
Theme URI: https://sedilo.de
Author: SeDiLo Team
Author URI: https://sedilo.de
Description: SeDiLo – Regional. Verbunden. Echt. Ein modernes Nachbarschaftsnetzwerk inspiriert von wer-kennt-wen.de mit Community-Features, Gästebuch, Klassenfinder, Vereinsheim, Marktplatz und Echtzeit-Chat. Mobile-First, PWA-ready, DSGVO-konform.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sedilo
Tags: social-network, community, buddypress, bbpress, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready

SeDiLo – Regional. Verbunden. Echt.
Dein lokales Nachbarschaftsnetzwerk.
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* SeDiLo Brand Colors */
  --sedilo-primary: #0055cc;
  --sedilo-primary-dark: #003d99;
  --sedilo-primary-light: #3388ee;
  --sedilo-accent: #00bbee;
  --sedilo-accent-glow: #44ddff;
  --sedilo-bg: #f5f7fa;
  --sedilo-white: #ffffff;
  --sedilo-text: #1a1a2e;
  --sedilo-text-light: #555566;
  --sedilo-border: #dde1e8;
  --sedilo-success: #28a745;
  --sedilo-warning: #ffc107;
  --sedilo-danger: #dc3545;
  --sedilo-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --sedilo-radius: 12px;
  --sedilo-radius-sm: 8px;
  --sedilo-transition: 0.2s ease;
  --sedilo-max-width: 1200px;
  --sedilo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sedilo-font-display: 'Montserrat', 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sedilo-font);
  color: var(--sedilo-text);
  background: var(--sedilo-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--sedilo-primary);
  text-decoration: none;
  transition: color var(--sedilo-transition);
}
a:hover {
  color: var(--sedilo-primary-dark);
  text-decoration: underline;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sedilo-font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--sedilo-text);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

/* ============================================
   LAYOUT
   ============================================ */
.sedilo-container {
  max-width: var(--sedilo-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.sedilo-main {
  flex: 1;
  padding: 2rem 0;
}

.sedilo-grid {
  display: grid;
  gap: 1.5rem;
}
.sedilo-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sedilo-grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sedilo-grid-sidebar { grid-template-columns: 1fr 320px; }

@media (max-width: 768px) {
  .sedilo-grid-sidebar { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
}

/* ============================================
   CARD COMPONENT
   ============================================ */
.sedilo-card {
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  overflow: hidden;
  transition: transform var(--sedilo-transition), box-shadow var(--sedilo-transition);
}
.sedilo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.sedilo-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--sedilo-border);
  font-weight: 600;
}
.sedilo-card-body {
  padding: 1.5rem;
}
.sedilo-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--sedilo-border);
  background: #fafbfc;
}

/* ============================================
   HEADER
   ============================================ */
.sedilo-header {
  background: var(--sedilo-white);
  border-bottom: 1px solid var(--sedilo-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sedilo-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.sedilo-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.sedilo-logo img,
.sedilo-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Text-Logo Fallback (falls je ohne Bild genutzt) */
.sedilo-logo-text {
  font-family: var(--sedilo-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--sedilo-primary);
  letter-spacing: -0.5px;
}
.sedilo-logo-text .highlight {
  color: var(--sedilo-accent);
}
.sedilo-logo-slogan {
  font-size: 0.65rem;
  color: var(--sedilo-text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

/* Nav */
.sedilo-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sedilo-nav a, .sedilo-nav button {
  padding: 0.5rem 0.75rem;
  border-radius: var(--sedilo-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sedilo-text);
  transition: all var(--sedilo-transition);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.sedilo-nav a:hover, .sedilo-nav button:hover {
  background: var(--sedilo-bg);
  color: var(--sedilo-primary);
  text-decoration: none;
}
/* Nav menu list from wp_nav_menu — force horizontal */
.sedilo-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}
.sedilo-nav-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sedilo-nav-list li a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: var(--sedilo-radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sedilo-text);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--sedilo-transition);
}
.sedilo-nav-list li a:hover {
  background: var(--sedilo-bg);
  color: var(--sedilo-primary);
}
.sedilo-nav-list li.current-menu-item a,
.sedilo-nav-list li.current_page_item a {
  color: var(--sedilo-primary);
  background: rgba(0, 85, 204, 0.08);
}
/* Nav user area (avatar + logout) */
.sedilo-nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--sedilo-border);
}
.sedilo-nav-profile {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--sedilo-text);
}
.sedilo-nav-profile:hover {
  color: var(--sedilo-primary);
}
.sedilo-nav-avatar {
  border-radius: 50%;
  width: 28px;
  height: 28px;
}
.sedilo-nav-displayname {
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sedilo-nav-logout {
  font-size: 0.8rem;
  color: var(--sedilo-text-light) !important;
}
.sedilo-nav-messages-icon .sedilo-badge {
  position: relative;
  top: -2px;
  right: auto;
}
.sedilo-nav a.active {
  color: var(--sedilo-primary);
  background: rgba(0, 85, 204, 0.08);
}
.sedilo-nav .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--sedilo-danger);
  color: white;
  font-size: 0.65rem;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Sidebar widgets: compact */
.sedilo-sidebar .widget {
  margin-bottom: 0.75rem;
}
.sedilo-sidebar .widget-title,
.sedilo-sidebar .widgettitle {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sedilo-border);
}
.sedilo-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sedilo-sidebar .widget li {
  font-size: 0.82rem;
  padding: 0.2rem 0;
  list-style: none;
}
.sedilo-sidebar .widget li a {
  color: var(--sedilo-text);
}
.sedilo-sidebar .sedilo-card {
  margin-bottom: 0.75rem;
}
.sedilo-sidebar .sedilo-card-body {
  padding: 0.75rem;
}

/* Search in header */
.sedilo-header-search {
  position: relative;
  flex: 0 1 320px;
}
.sedilo-header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--sedilo-border);
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--sedilo-bg);
  transition: all var(--sedilo-transition);
}
.sedilo-header-search input:focus {
  outline: none;
  border-color: var(--sedilo-primary);
  background: var(--sedilo-white);
  box-shadow: 0 0 0 3px rgba(0, 85, 204, 0.15);
}
.sedilo-header-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sedilo-text-light);
}

/* Mobile Nav Toggle */
.sedilo-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}
.sedilo-nav-toggle .hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sedilo-text);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 1024px) {
  .sedilo-nav-toggle { display: flex; }
  .sedilo-header-search { display: none; }
  .sedilo-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--sedilo-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--sedilo-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .sedilo-nav.open { display: flex; }
  .sedilo-nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    flex-wrap: nowrap;
  }
  .sedilo-nav-list li { width: 100%; }
  .sedilo-nav-list li a {
    padding: 0.65rem 1rem;
    width: 100%;
    font-size: 0.95rem;
  }
  .sedilo-nav-user {
    border-left: none;
    border-top: 1px solid var(--sedilo-border);
    margin-left: 0;
    padding-left: 0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }
  .sedilo-header-search { flex: 1; max-width: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.sedilo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--sedilo-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--sedilo-transition);
  text-decoration: none;
  line-height: 1.4;
}
.sedilo-btn-primary {
  background: var(--sedilo-primary);
  color: white;
}
.sedilo-btn-primary:hover {
  background: var(--sedilo-primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 85, 204, 0.3);
}
.sedilo-btn-accent {
  background: linear-gradient(135deg, var(--sedilo-primary), var(--sedilo-accent));
  color: white;
}
.sedilo-btn-accent:hover {
  opacity: 0.9;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}
.sedilo-btn-outline {
  background: transparent;
  border: 2px solid var(--sedilo-primary);
  color: var(--sedilo-primary);
}
.sedilo-btn-outline:hover {
  background: var(--sedilo-primary);
  color: white;
  text-decoration: none;
}
.sedilo-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}
.sedilo-btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}
.sedilo-btn-block {
  display: flex;
  width: 100%;
}

/* ============================================
   FORMS
   ============================================ */
.sedilo-form-group {
  margin-bottom: 1.25rem;
}
.sedilo-form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.sedilo-form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--sedilo-border);
  border-radius: var(--sedilo-radius-sm);
  font-size: 0.95rem;
  font-family: var(--sedilo-font);
  transition: all var(--sedilo-transition);
  background: var(--sedilo-white);
}
.sedilo-form-control:focus {
  outline: none;
  border-color: var(--sedilo-primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 204, 0.15);
}
textarea.sedilo-form-control {
  min-height: 100px;
  resize: vertical;
}
.sedilo-form-hint {
  font-size: 0.8rem;
  color: var(--sedilo-text-light);
  margin-top: 0.25rem;
}

/* ============================================
   HERO SECTION (Landing)
   ============================================ */
.sedilo-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0a1628 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sedilo-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 187, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.sedilo-hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.sedilo-hero .hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.sedilo-hero .hero-logo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 20px rgba(0, 85, 204, 0.4));
}
.sedilo-hero .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.sedilo-hero .hero-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.sedilo-hero .hero-feature {
  text-align: center;
  max-width: 200px;
}
.sedilo-hero .hero-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.sedilo-hero .hero-feature h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.sedilo-hero .hero-feature p {
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .sedilo-hero { padding: 3rem 1rem; }
  .sedilo-hero h1 { font-size: 2rem; }
  .sedilo-hero .hero-logo { max-width: 160px; margin-bottom: 1rem; }
}
@media (max-width: 420px) {
  .sedilo-hero .hero-logo { max-width: 120px; margin-bottom: 0.75rem; }
  .sedilo-hero h1 { font-size: 1.6rem; }
}


/* ============================================
   LOGIN / REGISTER
   ============================================ */
.sedilo-auth-card {
  max-width: 440px;
  margin: 2rem auto;
}
.sedilo-auth-card .sedilo-card-body {
  padding: 2rem;
}
.sedilo-auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--sedilo-text-light);
  font-size: 0.85rem;
}
.sedilo-auth-divider::before,
.sedilo-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sedilo-border);
}

/* ============================================
   PROFILE
   ============================================ */
.sedilo-profile-header {
  background: linear-gradient(135deg, var(--sedilo-primary) 0%, var(--sedilo-accent) 100%);
  padding: 2rem;
  border-radius: var(--sedilo-radius) var(--sedilo-radius) 0 0;
  color: white;
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}
.sedilo-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.sedilo-profile-info h1 {
  color: white;
  margin-bottom: 0.25rem;
}
.sedilo-profile-info p {
  opacity: 0.85;
  margin-bottom: 0;
}
.sedilo-profile-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: var(--sedilo-white);
  border-bottom: 1px solid var(--sedilo-border);
}
.sedilo-profile-stat {
  text-align: center;
}
.sedilo-profile-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--sedilo-primary);
}
.sedilo-profile-stat span {
  font-size: 0.8rem;
  color: var(--sedilo-text-light);
}

/* ============================================
   FEED / POSTS
   ============================================ */
.sedilo-feed-composer {
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sedilo-feed-composer-input {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.sedilo-feed-composer textarea {
  flex: 1;
  border: 1px solid var(--sedilo-border);
  border-radius: var(--sedilo-radius-sm);
  padding: 0.75rem;
  font-family: var(--sedilo-font);
  font-size: 0.95rem;
  resize: none;
  min-height: 60px;
}
.sedilo-feed-composer textarea:focus {
  outline: none;
  border-color: var(--sedilo-primary);
}
.sedilo-feed-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sedilo-border);
}
.sedilo-feed-composer-tools {
  display: flex;
  gap: 0.5rem;
}
.sedilo-feed-composer-tools button {
  background: none;
  border: none;
  padding: 0.375rem 0.5rem;
  border-radius: var(--sedilo-radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--sedilo-text-light);
  transition: all var(--sedilo-transition);
}
.sedilo-feed-composer-tools button:hover {
  background: var(--sedilo-bg);
  color: var(--sedilo-primary);
}

.sedilo-post {
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  margin-bottom: 1.5rem;
}
.sedilo-post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}
.sedilo-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.sedilo-post-meta {
  flex: 1;
}
.sedilo-post-author {
  font-weight: 600;
  color: var(--sedilo-text);
}
.sedilo-post-time {
  font-size: 0.8rem;
  color: var(--sedilo-text-light);
}
.sedilo-post-content {
  padding: 0 1.25rem 1rem;
}
.sedilo-post-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.sedilo-post-actions {
  display: flex;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--sedilo-border);
  gap: 0;
}
.sedilo-post-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--sedilo-text-light);
  font-size: 0.9rem;
  border-radius: var(--sedilo-radius-sm);
  transition: all var(--sedilo-transition);
}
.sedilo-post-action:hover {
  background: var(--sedilo-bg);
  color: var(--sedilo-primary);
}

/* ============================================
   PEOPLE GRID (WKW Style)
   ============================================ */
.sedilo-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.sedilo-person-card {
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  padding: 1rem;
  text-align: center;
  transition: all var(--sedilo-transition);
}
.sedilo-person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.sedilo-person-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--sedilo-bg);
}
.sedilo-person-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.sedilo-person-card p {
  font-size: 0.75rem;
  color: var(--sedilo-text-light);
  margin-bottom: 0;
}

/* ============================================
   GUESTBOOK
   ============================================ */
.sedilo-guestbook-entry {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sedilo-border);
}
.sedilo-guestbook-entry:last-child {
  border-bottom: none;
}
.sedilo-guestbook-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sedilo-guestbook-content {
  flex: 1;
}
.sedilo-guestbook-content strong {
  color: var(--sedilo-primary);
}
.sedilo-guestbook-content time {
  font-size: 0.75rem;
  color: var(--sedilo-text-light);
  margin-left: 0.5rem;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.sedilo-sidebar .sedilo-card {
  margin-bottom: 1.5rem;
}
.sedilo-sidebar .widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sedilo-text-light);
  margin-bottom: 1rem;
}
.sedilo-sidebar .friend-list {
  list-style: none;
}
.sedilo-sidebar .friend-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
}
.sedilo-sidebar .friend-list li img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.sedilo-online-dot {
  width: 8px;
  height: 8px;
  background: var(--sedilo-success);
  border-radius: 50%;
  display: inline-block;
  margin-left: auto;
}

/* ============================================
   GROUPS
   ============================================ */
.sedilo-group-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  margin-bottom: 1rem;
  transition: all var(--sedilo-transition);
}
.sedilo-group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.sedilo-group-banner {
  width: 80px;
  height: 80px;
  border-radius: var(--sedilo-radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, var(--sedilo-primary), var(--sedilo-accent));
  flex-shrink: 0;
}
.sedilo-group-info {
  flex: 1;
}
.sedilo-group-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.sedilo-group-meta {
  font-size: 0.8rem;
  color: var(--sedilo-text-light);
  margin-bottom: 0.5rem;
}

/* ============================================
   MESSAGES / CHAT
   ============================================ */
.sedilo-chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 130px);
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  overflow: hidden;
}
.sedilo-chat-contacts {
  border-right: 1px solid var(--sedilo-border);
  overflow-y: auto;
}
.sedilo-chat-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: background var(--sedilo-transition);
  border-bottom: 1px solid var(--sedilo-border);
}
.sedilo-chat-contact:hover,
.sedilo-chat-contact.active {
  background: var(--sedilo-bg);
}
.sedilo-chat-contact img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.sedilo-chat-messages {
  display: flex;
  flex-direction: column;
}
.sedilo-chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.sedilo-chat-bubble {
  max-width: 70%;
  padding: 0.625rem 1rem;
  border-radius: 18px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.sedilo-chat-bubble.sent {
  background: var(--sedilo-primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.sedilo-chat-bubble.received {
  background: var(--sedilo-bg);
  color: var(--sedilo-text);
  border-bottom-left-radius: 4px;
}
.sedilo-chat-input {
  padding: 1rem;
  border-top: 1px solid var(--sedilo-border);
  display: flex;
  gap: 0.5rem;
}
.sedilo-chat-input input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--sedilo-border);
  border-radius: 50px;
  font-size: 0.95rem;
}
.sedilo-chat-input input:focus {
  outline: none;
  border-color: var(--sedilo-primary);
}

@media (max-width: 768px) {
  .sedilo-chat-layout { grid-template-columns: 1fr; }
  .sedilo-chat-contacts { display: none; }
}

/* ============================================
   EVENTS
   ============================================ */
.sedilo-event-card {
  display: flex;
  gap: 1rem;
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}
.sedilo-event-date {
  min-width: 80px;
  background: var(--sedilo-primary);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sedilo-event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sedilo-event-date .day {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.sedilo-event-info {
  padding: 1rem 1rem 1rem 0;
  flex: 1;
}

/* ============================================
   MARKETPLACE
   ============================================ */
.sedilo-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.sedilo-marketplace-item {
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  overflow: hidden;
  transition: all var(--sedilo-transition);
}
.sedilo-marketplace-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.sedilo-marketplace-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--sedilo-bg);
}
.sedilo-marketplace-details {
  padding: 1rem;
}
.sedilo-marketplace-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sedilo-primary);
}
.sedilo-marketplace-location {
  font-size: 0.8rem;
  color: var(--sedilo-text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
.sedilo-footer {
  background: var(--sedilo-text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.sedilo-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--sedilo-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.sedilo-footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.sedilo-footer a {
  color: rgba(255,255,255,0.6);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}
.sedilo-footer a:hover {
  color: var(--sedilo-accent);
  text-decoration: none;
}
.sedilo-footer-bottom {
  max-width: var(--sedilo-max-width);
  margin: 1.5rem auto 0;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.sedilo-footer-bottom .sedilo-logo-text {
  color: white;
}
/* Footer nav + legal in einer Reihe, über dem Copyright */
.sedilo-footer-nav {
  max-width: var(--sedilo-max-width);
  margin: 0 auto;
  padding: 0 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.sedilo-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sedilo-footer-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Footer legal links — inline row */
.sedilo-footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.sedilo-footer-legal-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sedilo-footer-legal-list li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}
.sedilo-footer-legal-list li a:hover {
  color: var(--sedilo-accent);
}

/* ============================================
   NOTIFICATION BADGES & TOASTS
   ============================================ */
.sedilo-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--sedilo-text);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--sedilo-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: slideUp 0.3s ease;
  max-width: 400px;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--sedilo-text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-2 { padding: 1rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.sedilo-pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 2rem 0;
}
.sedilo-pagination a, .sedilo-pagination span {
  padding: 0.5rem 0.875rem;
  border-radius: var(--sedilo-radius-sm);
  font-size: 0.9rem;
  border: 1px solid var(--sedilo-border);
  color: var(--sedilo-text);
  transition: all var(--sedilo-transition);
}
.sedilo-pagination a:hover {
  background: var(--sedilo-primary);
  color: white;
  border-color: var(--sedilo-primary);
  text-decoration: none;
}
.sedilo-pagination .current {
  background: var(--sedilo-primary);
  color: white;
  border-color: var(--sedilo-primary);
}

/* ============================================
   PWA INSTALL PROMPT
   ============================================ */
.sedilo-pwa-install {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sedilo-white);
  padding: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9998;
}
.sedilo-pwa-install.show { display: flex; }

/* Print */
@media print {
  .sedilo-header, .sedilo-footer, .sedilo-nav, .sedilo-pwa-install, .sedilo-ad-zone, .sedilo-mobile-sticky-ad { display: none; }
  body { background: white; }
  .sedilo-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================
   VIDEO EMBEDS (YouTube)
   ============================================ */
.sedilo-video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--sedilo-radius-sm);
  margin: 0.75rem 0;
  background: #000;
}
.sedilo-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   DISTANCE BADGE
   ============================================ */
.sedilo-distance {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--sedilo-primary);
  font-weight: 600;
  background: rgba(0, 85, 204, 0.08);
  padding: 0.125rem 0.5rem;
  border-radius: 50px;
}

/* ============================================
   GEO AUTOCOMPLETE DROPDOWN
   ============================================ */
.sedilo-geo-dropdown {
  border-radius: var(--sedilo-radius-sm) !important;
}
.sedilo-geo-item:last-child {
  border-bottom: none !important;
}

/* ============================================
   SCHOOL CARDS
   ============================================ */
.sedilo-school-card {
  background: var(--sedilo-white);
  border-radius: var(--sedilo-radius);
  box-shadow: var(--sedilo-card-shadow);
  padding: 1.25rem;
  transition: all var(--sedilo-transition);
}
.sedilo-school-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════════════
   AD ZONES & BANNER
   ═══════════════════════════════════════════════ */
.sedilo-ad-zone {
  text-align: center;
  margin: 0.75rem 0;
  position: relative;
  min-height: 50px;
}
.sedilo-ad-zone img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.sedilo-ad-label {
  display: block;
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
/* Header-Banner */
.sedilo-ad-header-banner {
  max-width: 728px;
  margin: 0.5rem auto;
}
/* Footer-Banner */
.sedilo-ad-footer-banner {
  max-width: 728px;
  margin: 1rem auto 0.5rem;
}
/* Sidebar Ads */
.sedilo-ad-sidebar-top,
.sedilo-ad-sidebar-bottom {
  max-width: 300px;
  margin: 1rem auto;
}
/* Mobile Sticky Bottom */
.sedilo-mobile-sticky-bottom {
  display: none;
}
@media (max-width: 768px) {
  .sedilo-mobile-sticky-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    padding: 4px;
    text-align: center;
  }
  .sedilo-mobile-sticky-bottom .sedilo-ad-label {
    display: none;
  }
  .sedilo-mobile-sticky-bottom img {
    max-height: 50px;
  }
  /* Verhindern dass Content unter Sticky verschwindet */
  body {
    padding-bottom: 60px;
  }
  /* Desktop-only Ads ausblenden */
  .sedilo-ad-header-banner,
  .sedilo-ad-footer-banner,
  .sedilo-ad-sidebar-top,
  .sedilo-ad-sidebar-bottom {
    display: none;
  }
  /* Mobile-only Ads zeigen */
  .sedilo-ad-mobile-top {
    display: block;
    margin: 0.5rem auto;
  }
}
@media (min-width: 769px) {
  .sedilo-ad-mobile-top,
  .sedilo-ad-mobile-bottom {
    display: none;
  }
}

/* Banner Link */
.sedilo-banner-link {
  display: inline-block;
  transition: opacity 0.2s;
}
.sedilo-banner-link:hover {
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════
   SUPPORT & DONATE
   ═══════════════════════════════════════════════ */
.sedilo-support-box {
  background: var(--sedilo-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 640px;
  margin: 2rem auto;
}
.sedilo-support-box h2 {
  text-align: center;
  color: var(--sedilo-primary);
  margin-bottom: 0.5rem;
}
.sedilo-support-box > p {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
}
.sedilo-support-section {
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.sedilo-support-section h3 {
  margin-bottom: 0.75rem;
}

/* Donate Widget */
.sedilo-donate-widget {
  text-align: center;
}
.sedilo-donate-amounts {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.sedilo-amount-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--sedilo-primary);
  background: transparent;
  color: var(--sedilo-primary);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 60px;
}
.sedilo-amount-btn:hover,
.sedilo-amount-btn.active {
  background: var(--sedilo-primary);
  color: #fff;
}
.sedilo-custom-amount {
  width: 70px;
  padding: 0.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}
.sedilo-donate-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.sedilo-paypal-btn {
  background: linear-gradient(135deg, #0070ba, #003087);
  color: #fff !important;
}
.sedilo-paypal-btn:hover {
  background: linear-gradient(135deg, #003087, #001a4d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,112,186,0.3);
}
.sedilo-kofi-btn {
  background: #ff5e5b;
  color: #fff !important;
  margin-right: 0.5rem;
}
.sedilo-bmac-btn {
  background: #ffdd00;
  color: #000 !important;
}
.sedilo-kofi-btn:hover { background: #e04440; }
.sedilo-bmac-btn:hover { background: #e6c700; }

/* Bank Details */
.sedilo-bank-details {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--sedilo-primary);
}
.sedilo-bank-details table {
  width: 100%;
}
.sedilo-bank-details td {
  padding: 0.25rem 0.5rem;
}
.sedilo-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.sedilo-copy-btn:hover {
  background: #e8e8e8;
}

/* Progress Bar */
.sedilo-progress-wrapper {
  margin: 1rem 0;
}
.sedilo-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #555;
}
.sedilo-progress-bar {
  background: #e9ecef;
  border-radius: 10px;
  height: 24px;
  overflow: hidden;
}
.sedilo-progress-fill {
  background: linear-gradient(90deg, var(--sedilo-primary), var(--sedilo-accent));
  height: 100%;
  border-radius: 10px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  transition: width 0.6s ease;
}

/* Supporter Wall */
.sedilo-supporter-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.sedilo-supporter-badge {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffc107;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.sedilo-supporter-cta {
  text-align: center;
  margin-top: 0.75rem;
}

/* External Support Buttons */
.sedilo-external-support {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
