/*
Theme Name: ditibclone
Theme URI: https://example.com
Author: CioOniki
Description: Rechtssicheres, responsives WordPress-Theme im DITIB-Stil mit Hero/News-Layout, Button-Gittern, Facebook-Feed (Smash Balloon) und DITIB-ähnlicher Navigation.
Version: 1.1.0
Text Domain: ditib
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ditib-red: #b91c1c;
  --ditib-teal: #0c9aa3;
  --ditib-teal-dark: #004c5a;
  --ditib-gray: #f3f3f3;
  --ditib-text: #233136;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--ditib-text);
  background: var(--ditib-teal) url('assets/images/pattern.png') repeat;
  background-attachment: fixed;
}

a { color: var(--ditib-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ──────────────── 🔹 Topbar (Impressum / Sitemap) ──────────────── */
.topbar {
  background: #e6f0f1;
  border-bottom: 1px solid #d8e8ea;
}
.topbar a {
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
}
.topbar a:hover {
  color: var(--ditib-red);
  text-decoration: underline;
}

/* ──────────────── 🔹 Hauptnavigation ──────────────── */
.main-nav {
  background-color: var(--ditib-teal-dark);
  border-bottom: 3px solid #036a79;
}
.main-nav .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.main-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
  padding: 12px 20px !important;
  text-transform: none;
}
.main-nav .nav-link:hover,
.main-nav .nav-item:hover > .nav-link {
  background-color: #036a79;
}
.main-nav .dropdown-menu {
  background-color: #ffffff;
  border: none;
  border-top: 3px solid var(--ditib-red);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.main-nav .dropdown-item {
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
}
.main-nav .dropdown-item:hover {
  background-color: #f5f5f5;
  color: var(--ditib-red);
}

/* ──────────────── 🔹 Hero + Right rail ──────────────── */
.hero-news {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,transparent,rgba(0,0,0,.75));
  color: #fff;
  padding: .6rem .8rem;
  font-weight: 600;
  font-size: .95rem;
}
.news-list .news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: .6rem;
  padding: .6rem;
  border-bottom: 1px solid #eaeaea;
  background: #fff;
}
.news-list .news-item:hover { background: #fafafa; }
.news-list .news-date {
  font-size: .8rem;
  color: #777;
  margin-bottom: .2rem;
}
.donate-card {
  background: #e9f7f8;
  border: 2px solid #c1ecee;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.donate-card h4 { color: var(--ditib-teal-dark); margin: .5rem 0; }

/* ──────────────── 🔹 Button-Bereiche ──────────────── */
.quick-links, .info-links { display: grid; gap: 12px; }
.quick-links { grid-template-columns: repeat(5, 1fr); }
.info-links { grid-template-columns: repeat(4, 1fr); }
.btn-tile {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; border-radius: 6px;
  font-weight: 700; color: #fff;
  background: #174b5a;
}
.btn-tile--gold  { background: #b98a44; }
.btn-tile--teal  { background: #0f8c93; }
.btn-tile--brown { background: #6b4b2a; }
.btn-tile--red   { background: var(--ditib-red); }
.btn-tile:hover  { filter: brightness(.95); text-decoration: none; }

/* ──────────────── 🔹 Feed ──────────────── */
.feed-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* ──────────────── 🔹 Footer ──────────────── */
.site-footer {
  background: #0b4852;
  color: #cfeaed;
  padding: 18px 0;
  margin-top: 24px;
  border-top: 4px solid #073b42;
}
.site-footer a { color: #cfeaed; }

/* ──────────────── 🔹 Responsive ──────────────── */
@media (max-width:1200px) {
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .info-links  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width:768px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .info-links  { grid-template-columns: repeat(2, 1fr); }
  .news-list .news-item { grid-template-columns: 72px 1fr; }
  .main-nav .navbar-collapse {
    background-color: var(--ditib-teal-dark);
    padding: 10px;
  }
  .main-nav .nav-link {
    display: block;
    width: 100%;
    text-align: left;
  }
}
@media (max-width:480px) {
  .quick-links, .info-links { grid-template-columns: 1fr; }
}
