/* =============================================
   Just'in Talk – Hauptstylesheet
   ============================================= */

:root {
  --bg:          #080b12;
  --bg-2:        #0f1520;
  --bg-3:        #182030;
  --bg-card:     #141c2e;
  --accent:      #c8a855;
  --accent-h:    #dfc070;
  --accent-dim:  rgba(200,168,85,.15);
  --text:        #e8e2d8;
  --text-2:      #a09888;
  --border:      #25304a;
  --nav-h:       72px;
  --mw:          1160px;
  --r:           10px;
  --shadow:      0 6px 30px rgba(0,0,0,.55);
  --transition:  .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-h); }

img { max-width: 100%; height: auto; display: block; }

/* ---- NAVIGATION ---- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,11,18,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Dropdown */
.nav-links .dropdown { display: none; }
.nav-links > li:hover .dropdown,
.nav-links > li.open .dropdown {
  display: block;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 8px 0;
  list-style: none;
}

.dropdown li a {
  display: block;
  padding: 9px 20px;
  color: var(--text-2);
  font-size: .88rem;
  transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links > li > a { border-radius: 0; padding: 12px 24px; }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-3);
    padding: 4px 0;
  }

  .dropdown li a { padding: 10px 40px; }

  .nav-links > li:hover .dropdown { display: none; }
  .nav-links > li.open .dropdown { display: block; }
}

/* ---- HERO / HEADER ---- */
.site-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.site-hero img.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: .82rem;
  color: var(--text-2);
}

.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ---- PAGE LAYOUT ---- */
.page-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.section-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5em; color: var(--accent); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: .4em; }
h4 { font-size: 1rem; margin-bottom: .3em; }

p { margin-bottom: 1.2em; color: var(--text-2); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); }

/* ---- SECTIONS ---- */
.section {
  padding: 72px 0;
}

.section-alt { background: var(--bg-2); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 { margin-bottom: 12px; }
.section-title p { max-width: 640px; margin: 0 auto; }

/* ---- CARDS ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.card h3 { color: var(--accent); margin-bottom: 10px; }

.card a.btn-sm {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: .85rem;
  color: var(--accent);
  transition: background var(--transition), color var(--transition);
}

.card a.btn-sm:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- VIDEO GRID ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--bg-3);
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info { padding: 18px 20px; }
.video-info h3 { font-size: .95rem; color: var(--text); margin-bottom: 6px; }
.video-info p { font-size: .83rem; margin: 0; }

/* ---- VIDEO PAGE ---- */
.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 40px;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-page-meta { margin-bottom: 32px; }
.video-page-meta .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

/* ---- HERO SECTION (Startseite) ---- */
.hero-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.hero-section .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-section h1 { margin-bottom: 20px; }
.hero-section .lead { max-width: 700px; margin: 0 auto 40px; font-size: 1.1rem; color: var(--text-2); }

/* ---- CTA ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-h);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- INVITE BOX ---- */
.invite-box {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--accent);
  border-radius: var(--r);
  padding: 48px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.invite-box h2 { margin-bottom: 16px; }
.invite-box p { margin-bottom: 28px; color: var(--text-2); }

/* ---- CONTACT FORM ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}

.contact-photo img {
  width: 100%;
  border-radius: var(--r);
  border: 2px solid var(--border);
}

.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  color: var(--text-2);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

/* ---- ABOUT PAGE ---- */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo img {
  width: 100%;
  border-radius: var(--r);
  border: 3px solid var(--accent);
}

.about-fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.about-fact .label {
  min-width: 110px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: 2px;
}

/* ---- SUBPAGE HEADER ---- */
.subpage-header {
  position: relative;
  overflow: hidden;
}

.subpage-header img {
  width: 100%;
  height: auto;
  display: block;
}

.subpage-header-overlay {
  display: none;
}

/* ---- FOOTER ---- */
#site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; color: var(--text-2); }

.footer-col h4 {
  color: var(--accent);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  font-family: inherit;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-2); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-address {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.9;
}

.footer-address a { color: var(--text-2); }
.footer-address a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--mw);
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--text-2);
}

.footer-bottom a { color: var(--text-2); margin-left: 20px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---- IMPRESSUM ---- */
.legal-content h2 { font-size: 1.3rem; margin: 2em 0 .5em; }
.legal-content h3 { font-size: 1.05rem; margin: 1.5em 0 .4em; color: var(--text); }
.legal-content p, .legal-content address { color: var(--text-2); font-style: normal; line-height: 1.8; margin-bottom: .8em; }

/* ---- DIVIDER ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ---- UTIL ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.accent { color: var(--accent); }

/* ---- RESPONSIVE TWEAKS ---- */
@media (max-width: 600px) {
  .page-wrap { padding: 32px 16px 60px; }
  .section { padding: 48px 0; }
  .invite-box { padding: 32px 20px; }
  .subpage-header-overlay { padding: 20px; }
}
