/* ==========================================================================
   ALPINAPED - ZENTRUM FÜR BEWEGUNGSERGONOMIE & FUSSKOMFORT (GRAZ, ÖSTERREICH)
   Design System & Styling
   Palette: Tiefes Petrol (#005f73 / #0a9396 / #94d2bd / #ee9b00 / #0f172a)
   GDPR Compliant: System Font Stack, Zero External Assets, Inline SVG Icons
   ========================================================================== */

:root {
  --primary: #005f73;
  --primary-light: #0a9396;
  --primary-dark: #003844;
  --secondary: #94d2bd;
  --accent: #ca6702;
  --accent-hover: #bb3e03;
  --surface: #ffffff;
  --surface-alt: #f4f8f8;
  --surface-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-focus: #0a9396;
  --success: #2b9348;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 95, 115, 0.08), 0 2px 4px -2px rgba(0, 95, 115, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 95, 115, 0.1), 0 4px 6px -4px rgba(0, 95, 115, 0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-max: 1200px;
}

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--surface-alt);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

p.lead {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 400;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--accent);
}

/* Header & Navigation */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background-color: var(--primary-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 95, 115, 0.25);
}

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

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: var(--primary);
  background-color: var(--surface-alt);
}

.nav-btn {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  margin-left: 10px;
  font-weight: 600;
}

.nav-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0f7f7 0%, #e2eeef 50%, #ffffff 100%);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--secondary);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 95, 115, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 95, 115, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-alt);
  border-color: var(--primary-light);
  color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}

/* Feature Illustration / Card Box */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  background-color: var(--surface-alt);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-light);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Section Common */
.section {
  padding: 70px 0;
}

.section-bg-white {
  background-color: #ffffff;
}

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

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

.section-subtitle {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

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

.card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: #e6f3f4;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.card h3 {
  color: var(--primary-dark);
}

.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.card-link:hover {
  color: var(--accent);
}

/* Interactive Calculator / Quiz / Planner Box */
.interactive-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

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

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

.form-group label {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.15);
}

.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.radio-option:hover, .checkbox-option:hover {
  background-color: #eaf2f2;
  border-color: var(--secondary);
}

.radio-option input, .checkbox-option input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.interactive-result {
  margin-top: 24px;
  padding: 24px;
  background-color: #eaf6f6;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-light);
  display: none;
}

.interactive-result.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Info Callout / Notice */
.info-callout {
  padding: 20px 24px;
  background-color: #fff9ed;
  border: 1px solid #fde0b2;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.info-callout p {
  color: #7c2d12;
  margin: 0;
  font-size: 0.95rem;
}

/* Step / Process List */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.step-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 20px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step-card h4 {
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
}

.faq-question:hover {
  background-color: var(--surface-alt);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  display: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Legal Pages (Datenschutz, Impressum, AGB) */
.legal-content {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
  margin-bottom: 40px;
}

.legal-content h2 {
  margin-top: 30px;
  border-bottom: 2px solid var(--surface-alt);
  padding-bottom: 8px;
}

.legal-content h3 {
  margin-top: 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-table th, .legal-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.legal-table th {
  background-color: var(--surface-alt);
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background-color: #002e3b;
  color: #cbd5e1;
  padding-top: 60px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover, .footer-links a:focus {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--secondary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-disclaimer {
  padding: 24px 0;
  font-size: 0.82rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-legal-inline {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-legal-inline a {
  color: #94a3b8;
}

.footer-legal-inline a:hover {
  color: #ffffff;
}

/* Cookie Banner / Consent */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-list {
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav-btn {
    margin-left: 0;
    margin-top: 6px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
