/* ============================================
   SOEREN76 TEMPLATE — Blau · Gold · Silber
   ============================================ */

:root {
  /* Farben */
  --bg:           #09141e;
  --bg-2:         #0f1d2a;
  --bg-3:         #172637;
  --border:       #1e3045;
  --border-2:     #2a4060;

  --gold:         #c8a84b;
  --gold-dim:     #8a7030;
  --gold-light:   #e8c870;
  --silver:       #a8b8c8;
  --silver-dim:   #6a8090;
  --blue:         #2a5a8c;
  --blue-light:   #3a7ab8;
  --blue-dim:     #1a3a5c;

  --text:         #e8f0f8;
  --text-muted:   #6a8090;
  --text-dim:     #3a5060;

  /* Typografie */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Abstände */
  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     2rem;
  --space-lg:     4rem;
  --space-xl:     8rem;

  /* Radien */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;

  /* Transitions */
  --transition:   all 0.25s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 20, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: var(--space-md); }

.nav-menu { display: flex; align-items: center; gap: var(--space-sm); }

.nav-link {
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(200, 168, 75, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(42, 90, 140, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200, 168, 75, 0.08) 0%, transparent 60%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
  padding: var(--space-lg) var(--space-md);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.hero-title .gold { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--silver);
  margin-bottom: var(--space-md);
  max-width: 480px;
}

.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-ring {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--bg-3) 0%, var(--bg-2) 100%);
  position: relative;
  animation: pulse 4s ease-in-out infinite;
}

.hero-ring::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 75, 0.15);
}

.hero-ring-inner {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon { font-size: 4rem; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 168, 75, 0); }
  50% { box-shadow: 0 0 40px 10px rgba(200, 168, 75, 0.06); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: #0a1520;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: #0a1520;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 168, 75, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--border-2);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============ MAIN CONTENT ============ */
.main-content {
  padding: var(--space-lg) 0;
  padding-top: calc(var(--space-lg) + 80px);
}

.home .main-content { padding-top: var(--space-lg); }

.content-grid {
  display: grid;
  gap: var(--space-md);
}

.content-grid.has-sidebar {
  grid-template-columns: 1fr 320px;
}

.content-area.full-width { max-width: 100%; }

/* ============ JOOMLA ARTIKEL ============ */
.item-page, .blog, .category-list {
  max-width: 860px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: var(--space-sm); }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

p { margin-bottom: var(--space-sm); color: var(--silver); }

/* Blog Cards */
.items-leading, .items-row {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: var(--transition);
}

.item:hover {
  border-color: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(42, 90, 140, 0.2);
}

.item .page-header { margin-bottom: 0.75rem; }
.item .page-header h2 { font-size: 1.3rem; }
.item .page-header h2 a { color: var(--text); }
.item .page-header h2 a:hover { color: var(--gold); }

.item-image { margin-bottom: var(--space-sm); }
.item-image img { border-radius: var(--radius-sm); }

.readmore a {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--silver);
  font-size: 0.9rem;
}

.pagination .active span, .pagination a:hover {
  background: var(--gold);
  color: #0a1520;
  border-color: var(--gold);
}

/* ============ SIDEBAR ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar .moduletable {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.sidebar .module-title, .sidebar h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-md);
  align-items: start;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a, .footer-social a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ============ CARDS (für Module) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(200, 168, 75, 0.1);
}

.card-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.card-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-text { color: var(--text-muted); font-size: 0.9rem; }

/* Section Label */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
}

/* ============ LOGIN FORM ============ */
.login-wrap {
  max-width: 400px;
  margin: 0 auto;
}

.form-login {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.form-login .control-group { margin-bottom: var(--space-sm); }
.form-login label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.4rem; }

.form-login input[type="text"],
.form-login input[type="password"],
.form-login input[type="email"] {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-login input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.1);
}

.form-login .btn-primary { width: 100%; justify-content: center; margin-top: var(--space-sm); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto var(--space-md); }

  .content-grid.has-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }

  .footer-grid { grid-template-columns: 1fr; }

  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); padding: var(--space-sm); border-bottom: 1px solid var(--border); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: 2rem; }
}

/* ============ UTILITIES ============ */
.text-gold { color: var(--gold); }
.text-silver { color: var(--silver); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

/* Passwortschutz Seite */
.password-protected {
  max-width: 420px;
  margin: var(--space-lg) auto;
  text-align: center;
}

.password-protected .lock-icon { font-size: 3rem; margin-bottom: var(--space-sm); }
.password-protected h2 { margin-bottom: 0.5rem; }
.password-protected p { color: var(--text-muted); margin-bottom: var(--space-md); }
