/* ========================================================
   Klaus M. Brisch, LL.M. - Executive Legal Design System
   Rechtsanwalt · Fachanwalt für IT-Recht
   ======================================================== */

:root {
  --primary: #0a192f;
  --primary-dark: #050d18;
  --surface: #0f223d;
  --surface-alt: #162c4c;
  --surface-card: rgba(15, 34, 61, 0.85);
  --border-subtle: rgba(197, 160, 89, 0.22);
  --border-focus: rgba(223, 183, 108, 0.6);
  --gold: #c5a059;
  --gold-light: #dfb76c;
  --gold-hover: #b08d46;
  --cyan: #38bdf8;
  --cyan-dark: #0284c7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #10b981;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(197, 160, 89, 0.15);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--primary-dark);
  color: var(--text-main);
  line-height: 1.65;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(197, 160, 89, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(56, 189, 248, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--cyan);
}

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

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

/* ================= Header & Navigation ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--surface-alt), var(--primary));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-title {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  list-style: none;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 14px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.dropdown-item a:hover {
  background: var(--surface-alt);
  color: var(--gold-light);
  transform: translateX(4px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-quicklink {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-quicklink:hover {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ================= Buttons & Badges ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #071220;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), #ebd092);
  color: #040910;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-subtle);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ================= Hero Section ================= */
.hero-section {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

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

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold);
  opacity: 0.35;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.02);
}

.hero-card-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card-overlay .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-card-overlay .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* ================= Stat Banner ================= */
.stat-banner {
  padding: 40px 0;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 12px;
}

.stat-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================= Section Common ================= */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: rgba(15, 34, 61, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.section-tag {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================= Practice Areas Grid ================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 22px;
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-points {
  list-style: none;
  margin-bottom: 24px;
}

.service-points li {
  font-size: 0.88rem;
  color: #cbd5e1;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-points li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-light);
}

.service-link:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

/* ================= Feature / Profile Split ================= */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.split-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.credentials-list {
  list-style: none;
  margin: 24px 0 32px;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.cred-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 2px;
}

.cred-text strong {
  display: block;
  color: var(--text-main);
  font-size: 0.98rem;
}

.cred-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ================= Publications / Insights ================= */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.insight-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.insight-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-4px);
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.insight-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.insight-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* ================= Contact Section ================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-panel {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.contact-details p, .contact-details a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-details a:hover {
  color: var(--gold-light);
}

.form-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 38px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--gold);
}

/* ================= Legal Content Page Styling ================= */
.legal-page {
  padding: 70px 0 100px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.legal-card .page-subtitle {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 36px 0 16px;
}

.legal-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 24px 0 12px;
}

.legal-card p, .legal-card ul {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 18px;
}

.legal-card ul {
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

.notice-box {
  background: rgba(197, 160, 89, 0.08);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 26px 0;
}

.notice-box p {
  margin-bottom: 0;
  color: #e2e8f0;
}

/* ================= Footer ================= */
.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--success);
}

/* ================= Responsive Styles ================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.7rem;
  }
  .service-grid, .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }
  .nav-container {
    height: 70px;
  }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 28px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.8);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--primary-dark);
    margin-top: 10px;
    border: none;
  }
  .mobile-toggle {
    display: block;
  }
  .phone-quicklink {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid, .insights-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .legal-card {
    padding: 28px 20px;
  }
}
