/* Jessica Delfin - Static Site Stylesheet
   Modernized layout */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: #1a1a2e;
  background: #eef1f8;
  line-height: 1.7;
}

a { color: #1a5fb4; text-decoration: none; }
a:hover { color: #0d3b7a; text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
h1, h2, h3, h4 { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

/* Clearfix */
.clearfix::after { content: ''; display: table; clear: both; }

/* Layout Container */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

/* Header */
.site-header {
  display: flex;
  align-items: stretch;
  background: #d2dbf5;
}

.header-logo {
  width: 257px;
  min-width: 257px;
}

.header-logo img {
  display: block;
  width: 257px;
  height: 171px;
  object-fit: cover;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header-banner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 149px;
}

.header-banner h1 {
  font-size: 24px;
  color: #1a5fb4;
  text-align: center;
  font-weight: 700;
}

.header-banner h1 small {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #555;
  margin-top: 6px;
}

.header-nav-bar {
  height: 36px;
  background: linear-gradient(90deg, #1a5fb4, #2e7dd6);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
}

.header-nav-bar span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Spacer row */
.header-spacer {
  height: 0;
}

/* Main Layout: sidebar + content */
.site-body {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 24px;
  gap: 24px;
}

/* Left Sidebar Navigation */
.sidebar {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
}

.nav-block {
  border: none;
  background: #f4f6fb;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.nav-block ul {
  list-style: none;
  padding: 8px;
}

.nav-block li { margin: 0; }

.nav-block .nav-heading {
  display: block;
  padding: 8px 12px;
  font-weight: 700;
  color: #c0392b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #e8ecf4;
  border-radius: 6px;
  margin-bottom: 4px;
}

.nav-block a {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.nav-block a:hover {
  background: #1a5fb4;
  color: #fff;
  text-decoration: none;
}

.nav-block a.active {
  background: #1a5fb4;
  color: #fff;
  font-weight: 600;
}

.nav-block .nav-separator {
  height: 8px;
}

/* IDC Link in sidebar */
.sidebar-idc {
  text-align: center;
  margin: 12px 0;
  font-size: 12px;
  color: #777;
}

.sidebar-idc a { color: #1a5fb4; }

/* Main Content Area */
.content-area {
  flex: 1;
  min-width: 0;
}

/* Content Box (article/page wrapper) */
.content-box {
  border: none;
  background: #f9fafc;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.content-box:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.content-box-title {
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid #e8ecf4;
  background: #f0f3fa;
  color: #1a1a2e;
}

.content-box-body {
  padding: 16px 20px;
  line-height: 1.7;
}

.content-box-body p {
  margin-bottom: 12px;
}

.content-box-body img.float-right {
  float: right;
  margin: 0 0 12px 16px;
  max-width: 200px;
  border-radius: 8px;
}

.content-box-body img.float-left {
  float: left;
  margin: 0 16px 12px 0;
  max-width: 200px;
  border-radius: 8px;
}

.content-box-body .article-meta {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e8ecf4;
}

.content-box-body .read-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #fff;
  background: #1a5fb4;
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 13px;
  transition: background 0.15s;
}

.content-box-body .read-more:hover {
  background: #0d3b7a;
  text-decoration: none;
}

.content-box-body .read-more a {
  color: inherit;
  text-decoration: none;
}

/* Article category tags */
.article-category {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #6c7a96;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.article-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a5fb4;
  text-decoration: none;
}

.article-title:hover {
  text-decoration: underline;
}

/* Right Sidebar */
.sidebar-right {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
}

.sidebar-right .nav-block a img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ccc;
  padding: 0;
}

.footer-donation {
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.8;
}

.footer-donation strong { color: #6db6fe; }
.footer-donation b { color: #e0e0e0; }

.footer-bar {
  background: rgba(255,255,255,0.05);
  height: auto;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: #888;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bar a { color: #6db6fe; font-weight: 600; }
.footer-bar a:hover { color: #fff; }

.footer-copyright {
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: #666;
}

/* Donor list styling */
.donor-list p {
  margin-bottom: 8px !important;
}

.donor-list .donor-thankyou {
  text-align: center;
  margin: 24px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a5fb4;
}

/* FAQ styling */
.faq-section { margin-bottom: 24px; }

.faq-question {
  font-weight: 700;
  color: #1a5fb4;
  margin-bottom: 8px;
  font-size: 15px;
}

.faq-answer {
  margin-bottom: 20px;
  border-left: 3px solid #6db6fe;
  padding: 12px 16px;
  background: #f4f7fc;
  border-radius: 0 8px 8px 0;
}

.faq-toc {
  margin-bottom: 20px;
}

.faq-toc ul {
  list-style: disc;
  padding-left: 24px;
}

.faq-toc li { margin-bottom: 6px; }

/* Press gallery */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 12px 0;
}

.press-item {
  text-align: center;
}

.press-item img {
  border: 1px solid #ddd;
  border-radius: 6px;
  max-width: 150px;
  height: auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.press-item a { text-decoration: none; }
.press-item a:hover img {
  border-color: #1a5fb4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Photo album grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 12px 0;
}

.album-thumb {
  text-align: center;
}

.album-thumb img {
  border: 1px solid #ddd;
  border-radius: 6px;
  max-width: 130px;
  height: auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.album-thumb a:hover img {
  border-color: #1a5fb4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.album-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 12px 0;
}

.album-card {
  border: none;
  background: #f4f6fb;
  padding: 16px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.album-card h3 {
  font-size: 14px;
  margin-top: 10px;
  color: #1a5fb4;
}

.album-card img {
  border: 1px solid #ddd;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}

.album-card a { text-decoration: none; color: #1a5fb4; }

.album-card a span,
.album-card a small {
  display: block;
}

.album-card a span {
  margin-top: 8px;
  font-weight: 600;
}

.album-card a small {
  font-size: 12px;
  color: #666;
}

/* Image viewer */
.image-viewer {
  text-align: center;
  margin: 20px 0;
}

.image-viewer img {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Album gallery (photo detail pages) */
.album-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 12px 0;
}

.album-photo {
  overflow: hidden;
  border-radius: 8px;
  background: #f0f3fa;
  aspect-ratio: 1;
}

.album-photo a {
  display: block;
  width: 100%;
  height: 100%;
}

.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.album-photo:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 860px) {
  .site-body {
    flex-direction: column;
    padding: 16px;
  }
  .sidebar, .sidebar-right {
    width: 100%;
    min-width: 0;
    position: static;
  }
  .sidebar {
    order: -1;
  }
  .nav-block ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav-block .nav-separator { display: none; }
  .nav-block a { font-size: 13px; }
  .site-header {
    flex-direction: column;
    align-items: center;
  }
  .header-logo {
    width: auto;
    min-width: auto;
  }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .content-box-body { padding: 12px 14px; }
  .content-box-title { padding: 10px 14px; font-size: 14px; }
}

/* Separator */
hr.content-sep {
  border: none;
  height: 1px;
  background: #000;
  margin: 12px 0;
}

/* Back link */
.back-link {
  margin-top: 12px;
  font-weight: bold;
}

/* Clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Impressum structured sections */
.impressum-section {
  margin-bottom: 12px;
}

.impressum-section h3 {
  font-size: 12px;
  margin-bottom: 4px;
  color: #014181;
}

/* Contact info box */
.contact-info {
  line-height: 1.8;
}

/* Responsive: basic mobile-friendly tweaks */
@media (max-width: 768px) {
  .site-header { flex-direction: column; }
  .header-logo { width: 100%; min-width: auto; text-align: center; }
  .header-logo img { width: auto; max-width: 257px; height: auto; margin: 0 auto; }
  .site-body { flex-direction: column; padding: 0 8px; }
  .sidebar, .sidebar-right { width: 100%; min-width: auto; }
  .content-area { width: 100%; }
  .nav-block a { padding: 6px 12px; }
  .album-index-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .album-index-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr 1fr; }
}

/* Guestbook */
.guestbook-entry { border: 1px solid #B0C4DE; background: #F0F4FF; margin: 10px 0; padding: 8px 10px; }
.gb-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gb-date { font-size: 10px; color: #666; }
.gb-subject { font-weight: bold; color: #014181; margin-bottom: 4px; }
.gb-message { line-height: 1.6; }
