@import url('https://fonts.bunny.net/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg:          #F4F6FA;
  --bg-alt:      #E8EDF5;
  --surface:     #FFFFFF;
  --primary:     #0D1B3E;
  --accent:      #009FDB;
  --accent-dark: #007DB8;
  --gold:        #B8922A;
  --text:        #0D1B3E;
  --text-muted:  #5A6A8A;
  --border:      #C8D3E8;
  --border-light:#DDE4F0;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:   4px;
  --radius-lg: 12px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --section-pad: 120px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: var(--section-pad) 0;
}

section:nth-child(even) { background: var(--surface); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(43,92,230,0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(43,92,230,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,242,237,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(26,38,64,0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

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

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

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--primary);
  transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: calc(68px + 80px);
  padding-bottom: 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

/* Blue gradient blob */
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, rgba(43,92,230,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(43,92,230,0.08);
  border-radius: 100px;
  border: 1px solid rgba(43,92,230,0.2);
  margin-bottom: 28px;
}

.hero-tagline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-tagline-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--primary);
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 8px 48px rgba(26,38,64,0.1), 0 1px 0 rgba(255,255,255,0.8) inset;
  position: relative;
}

.hero-card-badge {
  position: absolute;
  top: -14px;
  left: 36px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 100px;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(43,92,230,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-check svg {
  width: 11px; height: 11px;
  stroke: var(--accent);
  stroke-width: 2.5;
}

.hero-divider {
  height: 1px;
  background: var(--border-light);
  margin: 24px 0;
}

.hero-stats {
  display: flex;
  gap: 0;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--border-light);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary);
  display: block;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: block;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--surface);
}

.services-header {
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 40px;
  transition: background var(--transition);
  position: relative;
}

.service-card:hover {
  background: var(--bg);
}

.service-card.highlight {
  background: var(--primary);
}

.service-card.highlight:hover {
  background: #223060;
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(43,92,230,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--transition);
}

.service-card.highlight .service-icon {
  background: rgba(255,255,255,0.15);
}

.service-icon svg {
  width: 20px; height: 20px;
  stroke: var(--accent);
  stroke-width: 1.75;
}

.service-card.highlight .service-icon svg {
  stroke: #fff;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-card.highlight .service-title { color: #fff; }

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-card.highlight .service-desc { color: rgba(255,255,255,0.7); }

/* =============================================
   WHY SECTION
   ============================================= */
.why {
  background: var(--bg);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: start;
}

.why-left {
  position: sticky;
  top: 100px;
}

.why-left .section-sub {
  margin-top: 20px;
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
}

.why-item:last-child {
  border-bottom: 1px solid var(--border);
}

.why-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  padding-top: 4px;
}

.why-item-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--primary);
}

.why-item-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--primary);
  padding: var(--section-pad) 0;
}

.about .section-label { color: rgba(255,255,255,0.5); }
.about .section-headline { color: #fff; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 20px;
}

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

.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-cta-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.about-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}

.about-cta-box p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.65;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* =============================================
   NEWS
   ============================================= */
.news {
  background: var(--surface);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(43,92,230,0.1);
  transform: translateY(-2px);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.news-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(43,92,230,0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

.news-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.3;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.news-read-more {
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.news-card:hover .news-read-more { gap: 10px; }

.news-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px;
  color: var(--text-muted);
  font-style: italic;
}

/* News Article Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,38,64,0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px;
  max-width: 740px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: color var(--transition);
  line-height: 1;
}

.modal-close:hover { color: var(--primary); }

.modal h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.modal-meta { margin-bottom: 32px; }

.modal-content {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.8;
  white-space: pre-line;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(43,92,230,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  stroke-width: 1.75;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--primary);
}

.contact-info-value a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-top: 12px;
  display: none;
}

.form-status.success {
  background: rgba(43,92,230,0.08);
  color: var(--accent);
  display: block;
}

.form-status.error {
  background: rgba(220,50,50,0.08);
  color: #dc3232;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--primary);
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
}

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

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   SCROLL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grids */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .hero-inner,
  .why-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  .hero-visual { display: none; }
  .why-left { position: static; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  .container { padding: 0 28px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-burger { display: flex; }

  .services-grid,
  .news-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .news-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat { border: none; text-align: left; padding: 0; }

  .modal { padding: 32px 24px; }
}

/* =============================================
   ARTICLE PAGE (/news/[slug]/)
   ============================================= */
.article-page {
  padding-top: calc(68px + 60px);
  padding-bottom: 100px;
  min-height: 100vh;
  background: var(--bg);
}

.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.article-breadcrumb a {
  color: var(--accent);
}

.article-breadcrumb a:hover { text-decoration: underline; }

.article-header {
  max-width: 740px;
  margin-bottom: 48px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 20px;
}

.article-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  font-style: italic;
}

.article-body {
  max-width: 740px;
}

.article-body p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  font-weight: 500;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  font-weight: 500;
}

.article-nav {
  max-width: 740px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.article-back:hover { text-decoration: underline; }

.article-404 {
  text-align: center;
  padding: 80px 20px;
}

.article-404 h1 { font-size: 2rem; margin-bottom: 16px; }
.article-404 p { color: var(--text-muted); margin-bottom: 28px; }

/* =============================================
   AI WORKFLOW PAGE (/workflow/)
   ============================================= */
.workflow-page {
  padding-top: calc(68px + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--bg);
}

.workflow-header {
  margin-bottom: 40px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .workflow-grid { grid-template-columns: 1fr; }
}

.workflow-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.workflow-panel-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.workflow-textarea {
  width: 100%;
  min-height: 320px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  line-height: 1.65;
  outline: none;
}

.workflow-textarea:focus { border-color: var(--accent); background: #fff; }

.workflow-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.workflow-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  min-height: 20px;
}

.workflow-status.loading { color: var(--accent); }
.workflow-status.error { color: #dc2626; }

.workflow-output {
  min-height: 320px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
}

.workflow-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.workflow-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.workflow-field-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
}

.workflow-field-input:focus { border-color: var(--accent); }

.workflow-publish {
  margin-top: 20px;
}

.workflow-publish-btn {
  width: 100%;
  justify-content: center;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(0,159,219,0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

/* =============================================
   LEGAL PAGES (impressum, datenschutz)
   ============================================= */
.legal-page {
  padding-top: calc(68px + 60px);
  padding-bottom: 100px;
  background: var(--bg);
  min-height: 100vh;
}

.legal-header {
  max-width: 760px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.legal-header .legal-subline {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin: 48px 0 16px;
  padding-top: 16px;
}

.legal-content h2:first-child { margin-top: 0; padding-top: 0; }

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  margin: 32px 0 10px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 24px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
  list-style: disc;
}

.legal-content ol li { list-style: decimal; }

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  text-decoration-thickness: 2px;
}

.legal-content strong {
  font-weight: 600;
  color: var(--primary);
}

.legal-content em {
  font-style: italic;
  color: var(--text-muted);
}

.legal-block {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.legal-block p:last-child { margin-bottom: 0; }

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 56px;
}

.legal-toc-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 6px;
  font-size: 0.88rem;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--text);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .legal-toc ol { columns: 1; }
}

.legal-meta {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
/* ============================================
   DSBX – Erweiterungs-CSS
   Ergänzt style.css für /leistungen/ und /ueber-mich/
   ============================================ */

/* Service-Card als Link (für /leistungen/ Übersicht) */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link:hover {
  text-decoration: none;
}

.service-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent, #1A5F7A);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.service-card-link:hover .service-more {
  text-decoration: underline;
}

/* Leistungs-Detailseite */
.leistung-intro {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text, #1f2937);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: 1.6rem;
  color: var(--text, #1f2937);
  line-height: 1.3;
}

.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.article-body ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  line-height: 1.55;
}

.article-body ul li:last-child {
  border-bottom: none;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent, #1A5F7A);
  border-radius: 3px;
  background: linear-gradient(135deg, transparent 50%, var(--accent, #1A5F7A) 50%);
}

/* CTA-Block am Ende einer Leistungsseite */
.leistung-cta {
  background: var(--bg-soft, #f8fafc);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0 24px 0;
  text-align: center;
}

.leistung-cta .btn {
  font-size: 1rem;
  padding: 14px 32px;
}

/* CTA-Sektion auf /leistungen/ Übersicht */
.cta-section {
  background: var(--bg-soft, #f8fafc);
  padding: 60px 0;
  text-align: center;
  margin-top: 60px;
}

.cta-section h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.cta-section p {
  color: var(--text-muted, #6b7280);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* Footer-Anpassung: Tagline-Text */
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}
