/* =============================================================
   Gastfreundlichkeit Projekt – Main Stylesheet
   Palette: RTA-inspired teal/navy + warm neutral
   ============================================================= */


/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:       #1a1a1a;
  --teal:       #cf2e2e;
  --teal-light: #e05555;
  --teal-pale:  #fdf2f2;
  --gold:       #c8922a;
  --text:       #1a1a1a;
  --text-mid:   #4a4a4a;
  --text-light: #888888;
  --border:     #e8e0e0;
  --bg:         #ffffff;
  --white:      #ffffff;
  --shadow:     0 2px 24px rgba(0,0,0,0.08);
  --shadow-sm:  0 1px 8px rgba(0,0,0,0.06);
  --radius:     6px;
  --radius-lg:  12px;
  --font-head:  Arial, 'Helvetica Neue', sans-serif;
  --font-body:  Arial, 'Helvetica Neue', sans-serif;
  --max-w:      1120px;
  --transition: 0.22s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); }
p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--teal-pale); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.75); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ── Section Label ───────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-label--white { color: rgba(255,255,255,0.6); }

/* ── Header & Nav ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.2rem; }
.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
  background: var(--teal-pale);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lang-switcher button {
  background: none;
  border: none;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.lang-switcher button.active {
  background: var(--teal);
  color: var(--white);
}
.lang-switcher button:not(.active):hover {
  background: var(--teal-pale);
  color: var(--teal);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  /* PLACEHOLDER: 'hero-image.jpg' durch eigenes Bild ersetzen */
  background-color: #ccc;
  background-image: url('hero-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0;
  width: 100%;
}

.hero-text {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.5rem;
  width: 100%;
  max-width: none;
  margin-left: 0;
  box-sizing: border-box;
}
.hero-image { display: none; }
.hero-badge {
  display: inline-block;
  background: rgba(207,46,46,0.08);
  border: 1px solid rgba(207,46,46,0.25);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--navy);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}
.hero-lead {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 1.4rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-partners {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-partners span {
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.partner-logo-pill {
  background: rgba(207,46,46,0.06);
  border: 1px solid rgba(207,46,46,0.2);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .hero { padding: 3rem 0; min-height: auto; }
  .hero-text { margin-left: 0; max-width: 100%; }
}

/* ── Quick Links Bar ─────────────────────────────────────────── */
.quick-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.quick-bar-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-bar-inner::-webkit-scrollbar { display: none; }
.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-mid);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: all var(--transition);
}
.quick-link:hover {
  background: var(--teal-pale);
  color: var(--teal);
}
.quick-link svg { flex-shrink: 0; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal);
}
.card h3 { margin-bottom: 0.6rem; color: var(--navy); font-size: 1.1rem; }
.card p { font-size: 0.92rem; }

/* Resource cards */
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.resource-card:hover { box-shadow: var(--shadow); }
.resource-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.resource-body h3 { font-size: 1rem; margin-bottom: 0.3rem; font-family: var(--font-body); font-weight: 600; color: var(--navy); }
.resource-body p { font-size: 0.87rem; margin-bottom: 0.75rem; }
.resource-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
}

/* News cards */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--teal-pale), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
}
.news-card-body { padding: 1.4rem; }
.news-date { font-size: 0.78rem; color: var(--text-light); font-weight: 500; margin-bottom: 0.4rem; }
.news-card-body h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.5rem; color: var(--navy); }
.news-card-body p { font-size: 0.88rem; margin-bottom: 0; }

/* Partner cards */
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}
.partner-logo-box {
  height: 80px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--teal);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.partner-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.4rem; }
.partner-card p { font-size: 0.87rem; }

/* ── Dashboard Section ───────────────────────────────────────── */
.dashboard-box {
  background: linear-gradient(135deg, var(--navy), #3d1a1a);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dashboard-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 60px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}
.dashboard-box h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.dashboard-box p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; position: relative; }
.dashboard-box .btn { position: relative; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--teal); }
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  transition: all var(--transition);
}
.faq-item.open .faq-icon {
  background: var(--teal);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding-bottom: 1.25rem;
}
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 0.95rem; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.contact-detail svg { color: var(--teal); flex-shrink: 0; margin-top: 3px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-main { color: var(--white); font-size: 1rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.87rem; margin-top: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 0.78rem; letter-spacing: 0.1em; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col ul li a:hover { color: #e05555; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.funded-by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.innotour-badge {
  background: rgba(207,46,46,0.1);
  border: 1px solid rgba(207,46,46,0.25);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.03em;
}
.site-footer .innotour-badge {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
}

/* ── Page-specific: About ────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-item h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.3rem; color: var(--navy); }
.timeline-item p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Stat blocks ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: var(--teal-pale);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-hero p { max-width: 600px; }

/* ── Language layer – controlled entirely by JS ─────────────── */
/* JS sets style.display directly; no CSS rules needed here.   */

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 0.6rem 0.75rem; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .dashboard-box { padding: 2rem 1.5rem; }
}
