/* ==========================================
   DGI DZIF 2017 — Modern Conference Site
   Clean CSS, no position:absolute layout
   ========================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a3a5c;
  --navy-light: #234d78;
  --navy-dark: #122840;
  --orange: #e8620a;
  --orange-light: #ff7a1a;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --text: #2c2c2c;
  --text-muted: #666;
  --border: #d0d8e4;
  --sidebar-width: 220px;
  --header-height: auto;
}

html, body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--light-bg);
}

a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  color: var(--orange-light);
  text-decoration: underline;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  padding: 4px 8px;
}

.header-text {
  flex: 1;
  min-width: 200px;
}

.header-text .conf-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.header-text .conf-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.header-text .conf-date {
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
  margin-top: 4px;
}

.header-lang {
  flex-shrink: 0;
  text-align: right;
}

.header-lang a {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.header-lang a:hover {
  background: var(--orange-light);
  text-decoration: none;
}

/* ===== LAYOUT ===== */
.layout {
  display: flex;
  min-height: calc(100vh - 200px);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--navy);
  min-height: 100%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.sidebar-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 4px;
}

.sidebar nav {
  padding: 8px 0;
}

.sidebar nav a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-left-color: var(--orange);
  text-decoration: none;
}

.sidebar nav a.active {
  background: rgba(232, 98, 10, 0.2);
  color: var(--white);
  font-weight: 600;
}

.sidebar-sponsor {
  padding: 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.sidebar-sponsor img {
  max-width: 100px;
  height: auto;
  background: white;
  border-radius: 4px;
  padding: 4px;
}

.sidebar-sponsor p {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  line-height: 1.4;
}

.sidebar-impressum {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-impressum a {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

/* ===== MAIN CONTENT ===== */
.content {
  flex: 1;
  background: var(--white);
  padding: 36px 48px;
  max-width: 900px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-light);
  margin: 20px 0 8px;
}

p {
  margin-bottom: 12px;
  line-height: 1.7;
}

ul, ol {
  margin: 12px 0 12px 24px;
}

li {
  margin-bottom: 6px;
  line-height: 1.6;
}

strong, b {
  font-weight: 700;
  color: var(--navy-dark);
}

/* ===== HERO (index only) ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 32px;
  text-align: center;
}

.hero h1 {
  color: white;
  border-bottom-color: var(--orange);
  font-size: 30px;
  margin-bottom: 16px;
}

.hero .hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.hero .hero-theme {
  font-size: 22px;
  color: var(--orange);
  font-weight: 700;
  font-style: italic;
  margin: 16px 0;
}

.hero .hero-meta {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
}

.hero-images {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-images img {
  width: calc(25% - 9px);
  min-width: 160px;
  max-width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid rgba(255,255,255,0.2);
}

/* ===== PERSON CARDS ===== */
.person-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}

.person-card {
  text-align: center;
  width: 160px;
}

.person-card img {
  width: 156px;
  height: 217px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid var(--border);
  display: block;
}

.person-card .img-placeholder {
  width: 156px;
  height: 217px;
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.person-card p {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* ===== INFO BOXES ===== */
.info-box {
  background: var(--light-bg);
  border-left: 4px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.info-box h3 {
  margin-top: 0;
  color: var(--orange);
}

/* ===== SPONSOR SECTION ===== */
.sponsor-section {
  margin: 20px 0;
}

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--light-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 8px 0;
}

.sponsor-badge img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sponsor-name {
  font-weight: 600;
  color: var(--navy);
}

.sponsor-amount {
  color: var(--text-muted);
  font-size: 13px;
}

.sponsor-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.sponsor-table th {
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}

.sponsor-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.sponsor-table tr:hover td {
  background: var(--light-bg);
}

/* ===== PRICE TABLE ===== */
.price-table {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row .price-label {
  color: var(--text);
}

.price-row .price-amount {
  font-weight: 700;
  color: var(--navy);
}

/* ===== CTA BUTTON ===== */
.btn {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
  margin: 8px 0;
}

.btn:hover {
  background: var(--orange-light);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-light);
}

/* ===== DIRECTIONS ===== */
.direction-section {
  margin: 20px 0;
}

.direction-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.direction-section h3::before {
  content: "→";
  color: var(--orange);
  font-size: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}

.site-footer a:hover {
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .sidebar nav a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 13px;
  }
  .content {
    padding: 24px 20px;
  }
  .hero {
    padding: 24px 20px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero-images img {
    width: calc(50% - 6px);
  }
  .person-grid {
    gap: 16px;
  }
  .header-logos img {
    height: 44px;
  }
}

/* ===== PROGRAMME IMAGES ===== */
.program-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.program-images img {
  width: calc(33.333% - 8px);
  min-width: 180px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border);
}

/* ===== LEITUNG PAGE ===== */
.leitung-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.leitung-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--light-bg);
  border-radius: 8px;
  padding: 16px;
  flex: 1;
  min-width: 260px;
}

.leitung-card img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.leitung-card .leitung-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.leitung-card .leitung-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ===== PARAGRAPH HIGHLIGHT ===== */
.highlight {
  color: var(--orange);
  font-weight: 700;
}

/* ===== NOTE ===== */
.note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ========== 404 Error Page ========== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}
.error-404-code {
  font-size: 120px;
  font-weight: 700;
  color: #e8620a;
  margin: 0;
  line-height: 1;
}
.error-404 h1 {
  font-size: 28px;
  color: #1a3a5c;
  margin: 16px 0;
}
.error-404 p {
  color: #555;
  font-size: 16px;
  margin-bottom: 32px;
}
.btn-back {
  display: inline-block;
  background: #1a3a5c;
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-back:hover {
  background: #e8620a;
}

/* Article Table */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-table th {
  background: #1a3a5c;
  color: white;
  padding: 10px 12px;
  text-align: left;
}
.article-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e0e0e0;
}
.article-table tr:nth-child(even) td {
  background: #f8f9fa;
}
.article-table tr:hover td {
  background: #f0f4f8;
}

/* FAQ Section */
.faq-section {
  margin: 24px 0;
}
.faq-section h3 {
  margin-top: 20px;
  margin-bottom: 6px;
  color: #1a3a5c;
}
.faq-section p {
  margin-top: 0;
}
