/* ==========================================================================
   Polatzek IT UG (haftungsbeschränkt) - Stylesheet
   Corporate Identity & Design System
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Brand Colors */
  --brand-navy: #0F2540;
  --brand-cyan: #12A5C4;
  --brand-cyan-glow: rgba(18, 165, 196, 0.15);
  --brand-navy-glow: rgba(15, 37, 64, 0.08);

  /* Light Theme (Default) */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F1F5F9;
  --bg-header: rgba(248, 250, 252, 0.88);
  --border-subtle: #E2E8F0;
  --border-focus: #12A5C4;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 37, 64, 0.08), 0 4px 8px -2px rgba(15, 37, 64, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --container-max: 1080px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0B111A;
    --bg-card: #111A26;
    --bg-card-subtle: #162232;
    --bg-header: rgba(11, 17, 26, 0.88);
    --border-subtle: #1E2D40;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
  }
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* Logo handling for light/dark */
.logo-dark-mode {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .logo-light-mode {
    display: none;
  }
  .logo-dark-mode {
    display: block;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  background-color: var(--bg-card-subtle);
  outline: none;
}

.nav-link.nav-cta {
  color: #FFFFFF;
  background-color: var(--brand-navy);
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
}

.nav-link.nav-cta:hover,
.nav-link.nav-cta:focus-visible {
  background-color: #17375E;
}

@media (prefers-color-scheme: dark) {
  .nav-link.nav-cta {
    background-color: var(--brand-cyan);
    color: #0B111A;
    font-weight: 600;
  }
  .nav-link.nav-cta:hover {
    background-color: #1EC1E2;
  }
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem;
  text-align: left;
  position: relative;
}

.hero-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--brand-cyan-glow);
  border: 1px solid rgba(18, 165, 196, 0.3);
  margin-bottom: 1.5rem;
}

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

.badge-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-cyan);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .highlight {
  color: var(--brand-cyan);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 44rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.meta-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Content Sections */
.section-block {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 40rem;
}

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

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--brand-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-cyan);
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section Two Column */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* Contact Details */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-card p,
.contact-card address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-link {
  color: var(--brand-cyan);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

/* Legal Accordion / Text Boxes */
.legal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.legal-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-box h3:first-child {
  margin-top: 0;
}

.legal-box h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal-box p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.legal-box ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-box li {
  margin-bottom: 0.35rem;
}

.legal-box a {
  color: var(--brand-cyan);
  text-decoration: none;
}

.legal-box a:hover {
  text-decoration: underline;
}

.legal-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.legal-meta-item {
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.legal-meta-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.legal-meta-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand-cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Focus Outlines */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }

  .site-header {
    height: auto;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

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

  .hero-section {
    padding: 3rem 0 2rem;
  }

  .section-block {
    padding: 2.5rem 0;
  }

  .legal-box {
    padding: 1.5rem;
  }
}
