/* ===================================================
   GLOBAL.CSS — Shared styles for gal-harburg.de
   =================================================== */

/* --- CSS Variables --- */
:root {
  --color-bg-primary: #0c1017;
  --color-bg-secondary: #141a24;
  --color-bg-card: #1a2233;
  --color-bg-card-hover: #1f2940;
  --color-accent: #d4a24e;
  --color-accent-light: #e8bc6a;
  --color-accent-dark: #b8872e;
  --color-text-primary: #eef0f4;
  --color-text-secondary: #9ba3b5;
  --color-text-muted: #6b7280;
  --color-border: #2a3347;
  --color-border-light: #354058;
  --color-success: #4ade80;
  --color-white: #ffffff;
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
p { color: var(--color-text-secondary); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Icon base --- */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-bg-primary);
  box-shadow: 0 4px 24px rgba(212, 162, 78, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: var(--color-bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(212, 162, 78, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-light);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Section label --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 16, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.logo:hover { color: var(--color-accent); }
.logo span { color: var(--color-accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links li a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.nav-links li a:hover { color: var(--color-text-primary); }
.nav-cta {
  padding: 9px 22px;
  background: var(--color-accent);
  color: var(--color-bg-primary) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover {
  background: var(--color-accent-light);
  color: var(--color-bg-primary) !important;
}

/* Mobile nav */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .nav-toggle-checkbox:checked ~ .nav-links { transform: translateY(0); }
  .nav-toggle-label {
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--color-text-primary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- FAQ / Accordion --- */
details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
details:hover { border-color: var(--color-border-light); }
details[open] { border-color: var(--color-accent); }
details summary {
  padding: 18px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(-135deg); }
details .faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Table base --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
thead th {
  background: var(--color-bg-card);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(26, 34, 51, 0.4); }
