/*
Theme Name: DAF Ilmenau
Theme URI: https://usfriends-il.de
Author: Deutsch-Amerikanischer Freundeskreis Ilmenau e.V.
Description: Offizielles WordPress-Theme für den Deutsch-Amerikanischen Freundeskreis Ilmenau e.V. — Städtepartnerschaft Ilmenau & Blue Ash, Ohio.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: daf-ilmenau
*/

/* === VARIABLES === */
:root {
  --us-blue: #002868;
  --us-red: #BF0A30;
  --de-gold: #DD9B27;
  --de-black: #1A1A1A;
  --cream: #FAF7F2;
  --warm-white: #FEFCF9;
  --text-dark: #2C2C2C;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --border: #E8E2D8;
  --shadow: rgba(0, 40, 104, 0.08);
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--us-blue); transition: color 0.3s; }
a:hover { color: var(--us-red); }
img { max-width: 100%; height: auto; }

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--us-blue);
}

.nav-brand img {
  height: 46px;
  width: auto;
}

.nav-brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.05rem;
}

/* WordPress Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.6rem 1.3rem;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--us-red);
  transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--us-blue);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
  width: 60%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--us-blue);
  transition: all 0.3s;
}

/* === HERO (Front Page) === */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4fa 15%, #c8d8ef 35%, #6a8ec4 55%, var(--us-blue) 75%, #001a44 100%);
  padding: 2rem 0 3rem;
  margin-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(191, 10, 48, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(221, 155, 39, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--warm-white));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 1rem 2rem 1.5rem;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin: 0 auto 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.15));
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 15px rgba(0,20,60,0.3);
}

.hero h1 .accent { color: var(--de-gold); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 8px rgba(0,20,60,0.2);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--us-red);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: #a00828;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(191, 10, 48, 0.3);
}

/* === SECTIONS === */
.section {
  padding: 3.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--us-blue);
  margin-bottom: 0.6rem;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--us-red), var(--de-gold));
  margin: 0 auto;
  border-radius: 2px;
}

.section-header p {
  margin-top: 1rem;
  color: var(--text-mid);
  font-size: 1.08rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === WELCOME === */
.welcome-block {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.welcome-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000, #DD0000, #FFCC00, transparent 33%),
              linear-gradient(90deg, transparent 66%, #BF0A30, white, #002868);
}

.welcome-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--us-blue);
  margin-bottom: 1.2rem;
}

.welcome-block p {
  color: var(--text-mid);
  font-size: 1.08rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === ABOUT CARDS === */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--us-blue), var(--us-red), var(--de-gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.about-card:hover::before { transform: scaleX(1); }

.about-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

.about-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--us-blue);
  margin-bottom: 0.8rem;
}

.about-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* === EVENTS === */
.event-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: all 0.3s;
  margin-bottom: 1.5rem;
}

.event-card:hover {
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-3px);
}

.event-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  background: var(--cream);
  border-radius: 12px;
  padding: 1rem 0.8rem;
}

.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--us-red);
  font-weight: 600;
}

.event-date .day {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--us-blue);
  line-height: 1.1;
}

.event-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--us-blue);
  margin-bottom: 0.4rem;
}

.event-info .event-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.event-info p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card,
.contact-form-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.contact-info-card h3,
.contact-form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--us-blue);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-item .ci-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item .ci-value { color: var(--text-dark); }

/* Forms */
.form-group { margin-bottom: 1.3rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--us-blue);
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.08);
  background: white;
}

.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  background: var(--us-blue);
  color: white;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-submit:hover {
  background: #001a44;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 40, 104, 0.25);
}

/* === PARTNERSHIP PAGE === */
.partner-intro {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.partner-intro h3,
.section-subheader {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--us-blue);
  margin-bottom: 1rem;
}

.section-subheader { text-align: center; margin-bottom: 2rem; }

.partner-intro p {
  color: var(--text-mid);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* Timeline */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--us-blue), var(--us-red), var(--de-gold));
  border-radius: 2px;
}

.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--us-blue);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--us-blue);
}

.timeline-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--us-red);
  margin-bottom: 0.3rem;
}

.timeline-content {
  background: white;
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.timeline-content:hover {
  box-shadow: 0 6px 20px var(--shadow);
  transform: translateX(4px);
}

.timeline-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--us-blue);
  margin-bottom: 0.4rem;
}

.timeline-content p { color: var(--text-mid); font-size: 0.95rem; }

/* Portrait Grid */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.portrait-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.portrait-card:hover {
  box-shadow: 0 8px 25px var(--shadow);
  transform: translateY(-3px);
}

.portrait-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }

.portrait-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--us-blue);
  margin-bottom: 0.5rem;
}

.portrait-card p { color: var(--text-mid); font-size: 0.93rem; line-height: 1.7; }

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: white;
  margin-bottom: 3rem;
}

.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.comparison-table th {
  background: var(--us-blue);
  color: white;
  padding: 1rem 1.5rem;
  text-align: left;
  font-family: 'Playfair Display', serif;
}

.comparison-table th:first-child { background: #001a44; }

.comparison-table td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--cream);
}

/* Links Grid */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  transition: all 0.3s;
}

.link-card:hover {
  box-shadow: 0 6px 20px var(--shadow);
  transform: translateY(-3px);
  border-color: var(--us-blue);
}

.link-icon { font-size: 1.6rem; flex-shrink: 0; }
.link-text { display: flex; flex-direction: column; gap: 2px; }
.link-text strong { color: var(--us-blue); font-size: 0.95rem; }
.link-text em { color: var(--text-light); font-size: 0.82rem; font-style: normal; }
.link-arrow { margin-left: auto; color: var(--us-blue); font-size: 1.2rem; }

/* === INSTAGRAM === */
.ig-section {
  background: var(--cream);
  padding: 4rem 0;
}

.ig-grid-embed {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.ig-follow-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(131, 58, 180, 0.3);
}

/* === LEGAL PAGES === */
.legal-content {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--us-blue);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-content h3:first-child { margin-top: 0; }
.legal-content p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.8; }

/* === WORDPRESS SPECIFIC === */
.page-content { padding-top: 72px; }

.wp-block-image img { border-radius: 12px; }

.entry-content p { color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; }
.entry-content h2 { font-family: 'Playfair Display', serif; color: var(--us-blue); margin: 2rem 0 1rem; }
.entry-content h3 { font-family: 'Playfair Display', serif; color: var(--us-blue); margin: 1.5rem 0 0.8rem; }

/* === FOOTER === */
.site-footer {
  background: var(--de-black);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-brand {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--de-gold); }

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 1rem;
  align-items: center;
  background: var(--cream);
  border-radius: 50px;
  padding: 3px;
  border: 1px solid var(--border);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.03em;
}

.lang-btn:hover {
  background: rgba(0, 40, 104, 0.06);
  color: var(--us-blue);
}

.lang-btn.active {
  background: var(--us-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 40, 104, 0.2);
}

.lang-btn.active:hover {
  color: white;
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-label {
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .portrait-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px var(--shadow);
  }

  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }

  .hero h1 { font-size: 1.8rem; }
  .hero-logo { width: 160px; }
  .section { padding: 3rem 1.2rem; }
  .event-card { flex-direction: column; gap: 1rem; }
}


/* === MONATSAUSWAHL DROPDOWN === */
.month-nav-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 400px;
}

.month-nav-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.month-nav-select {
  appearance: none;
  -webkit-appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23002868' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  background-size: 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 2.4rem 0.5rem 0.9rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--us-blue);
  cursor: pointer;
  flex: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 160px;
}

.month-nav-select:hover,
.month-nav-select:focus {
  border-color: var(--us-blue);
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
  outline: none;
}

.no-events-month {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem 0;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .month-nav-dropdown-wrap {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }
  .month-nav-select { width: 100%; }
}