/* ===== OTIT Corporate Design ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --teal:       #007A87;
  --teal-dark:  #005A63;
  --teal-light: #E0F4F5;
  --black:      #1A1A1A;
  --gray-dark:  #4A4A4A;
  --gray-light: #F5F5F5;
  --white:      #FFFFFF;
  --cta:        #FF6B35;
  --cta-hover:  #E55A28;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
  --transition: .2s ease;
  --max-w:      1200px;
  --header-h:   72px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-light);
  color: var(--black);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}
.logo-link img {
  height: 44px;
  width: auto;
}
.logo-link span {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.3px;
  color: var(--teal-dark);
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none;
  color: var(--gray-dark);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
  background: var(--teal-light);
}
.main-nav .nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  margin-left: 8px;
}
.main-nav .nav-cta:hover {
  background: var(--teal-dark);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 96px 24px 80px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero p {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: .9;
  line-height: 1.6;
}
.hero .badge-b2b {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.btn-primary {
  background: var(--cta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,53,.3);
}
.btn-secondary {
  background: var(--white);
  color: var(--teal-dark);
}
.btn-secondary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 18px; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}
.section-white {
  background: var(--white);
}
.section-gray {
  background: var(--gray-light);
}
.section-teal {
  background: var(--teal-light);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 18px;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
}
.overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 8px;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}
.card p {
  color: var(--gray-dark);
  font-size: 15px;
  line-height: 1.6;
}
.card .badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 16px;
}
.card .badge-premium {
  background: #FFF3EC;
  color: var(--cta);
}

/* ===== PRICING TABLE ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured::before {
  content: 'Empfohlen';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 20px;
  border-radius: 20px;
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 42px;
  font-weight: 800;
  color: var(--teal);
  margin: 16px 0 4px;
}
.pricing-card .price-sub {
  font-size: 14px;
  color: var(--gray-dark);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-card li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card li::before {
  content: '\2713';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card li.disabled {
  color: #767676;
}
.pricing-card li.disabled::before {
  content: '\2717';
  color: #ccc;
}

/* ===== FEATURE LIST ===== */
.feature-row {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 64px;
}
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-content {
  flex: 1;
}
.feature-visual {
  flex: 1;
  background: var(--teal-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.feature-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-content p {
  color: var(--gray-dark);
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
}
.feature-list li {
  padding: 6px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-list li::before {
  content: '\2713';
  color: var(--teal);
  font-weight: 700;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}
.stat-item .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--teal);
}
.stat-item .stat-label {
  font-size: 14px;
  color: var(--gray-dark);
  margin-top: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.8);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  opacity: .8;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: .85;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 48px 24px 80px;
}
.legal-page .container {
  max-width: 800px;
}
.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-page .legal-updated {
  font-size: 14px;
  color: var(--gray-dark);
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--teal-dark);
}
.legal-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-page p {
  margin-bottom: 12px;
  color: var(--gray-dark);
}
.legal-page ul, .legal-page ol {
  margin: 8px 0 16px 24px;
  color: var(--gray-dark);
}
.legal-page li {
  margin-bottom: 6px;
}
.legal-page .highlight-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

/* ===== TOOL DETAIL ===== */
.tool-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 64px 24px;
}
.tool-hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.tool-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.tool-hero p {
  font-size: 18px;
  opacity: .9;
  margin-bottom: 24px;
}

/* ===== SUPPORT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.contact-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.contact-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--gray-dark);
  font-size: 15px;
}
.contact-card a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  color: var(--black);
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-dark);
  font-size: 15px;
}

/* ===== TABLE ===== */
.table-responsive {
  overflow-x: auto;
}
table.styled {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.styled th,
table.styled td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}
table.styled th {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
table.styled tr:hover td {
  background: #fafafa;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-muted { color: var(--gray-dark); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  background: var(--teal-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--teal-dark);
}

/* ===== 404 ===== */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.error-page h1 {
  font-size: 120px;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
}
.error-page h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.error-page p {
  color: var(--gray-dark);
  margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }

  .hero { padding: 64px 24px 56px; }
  .section { padding: 56px 24px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .feature-row,
  .feature-row:nth-child(even) {
    flex-direction: column;
    gap: 32px;
  }
  .tool-hero .container {
    flex-direction: column;
    text-align: center;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== SKIP LINK (A11Y) ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ===== FOCUS STYLES (A11Y) ===== */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
