
/* =====================================================
   WERKNOTE STYLES - Production Ready
   ===================================================== */

/* CSS Variables */
:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --secondary: #EBF5FF;
  --bg: #F8FAFC;
  --text: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 14px;
  line-height: 1.2;
  font-weight: 800;
}

p {
  margin: 0 0 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.logo-text {
  font-size: 18px;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}

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

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 20px -10px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 24px -10px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Pulse Animation */
.btn-pulse {
  animation: btnPulse 4.5s ease-in-out infinite;
}

.btn-pulse:hover {
  animation: none;
}

@keyframes btnPulse {
  0% { opacity: 1; box-shadow: 0 12px 20px -10px rgba(37, 99, 235, 0.28); }
  50% { opacity: 0.85; box-shadow: 0 12px 20px -10px rgba(37, 99, 235, 0.55); }
  100% { opacity: 1; box-shadow: 0 12px 20px -10px rgba(37, 99, 235, 0.28); }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.hero-box {
  background: var(--secondary);
  border: 1px solid #D1E3FA;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 26px;
  font-size: 1.1rem;
}

.trust-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
}

/* =====================================================
   BOX & CARDS
   ===================================================== */
.box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 46px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* =====================================================
   PROBLEM SECTION
   ===================================================== */
.problem-section {
  padding: 50px 0;
}

.problem-list {
  list-style: none;
  padding: 0;
  max-width: 560px;
  margin: 0 auto;
}

.problem-list li {
  padding-left: 28px;
  position: relative;
  margin: 12px 0;
  color: var(--text-light);
}

.problem-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

/* =====================================================
   CHAT SECTION
   ===================================================== */
.chat-section {
  padding: 30px 0;
}

.chat-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bubble {
  padding: 18px 22px;
  border-radius: 22px;
  max-width: 85%;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.bubble.user {
  background: #F1F5F9;
  align-self: flex-start;
}

.bubble.werknote {
  background: var(--secondary);
  color: var(--primary);
  align-self: flex-end;
  border-color: #D1E3FA;
}

.label {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.6;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =====================================================
   CTA DIVIDER
   ===================================================== */
.cta-section {
  padding: 20px 0;
}

.cta-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cta-divider .line {
  flex: 1;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
  border-radius: 2px;
  max-width: 200px;
}

/* =====================================================
   DOCUMENT PREVIEW
   ===================================================== */
.preview-section {
  padding: 30px 0;
}

.doc-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 860px;
  margin: 0 auto;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.doc-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.doc-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
}

.badge {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.doc-sheet {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
}

.doc-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.doc-text .meta {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.blur {
  filter: blur(5px);
  opacity: 0.55;
  user-select: none;
}

.doc-footer-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

/* =====================================================
   ESCALATION SECTION
   ===================================================== */
.escalation-section {
  padding: 30px 0;
}

.escalation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.esca-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.esca-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.esca-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
}

.esca-pill {
  padding: 6px 12px;
  background: var(--secondary);
  border: 1px solid #D1E3FA;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.esca-card p {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

/* =====================================================
   BENEFITS SECTION
   ===================================================== */
.benefits-section {
  padding: 40px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.benefit-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.benefit-card .emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.benefit-card h3 {
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--text-light);
  margin: 0;
}

/* =====================================================
   PRICING SECTION
   ===================================================== */
.pricing-section {
  padding: 50px 0;
}

.pricing-box {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 54px 34px;
  text-align: center;
  border: 1px solid #D1E3FA;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.pricing-label {
  margin-bottom: 8px;
}

.price {
  font-size: 56px;
  font-weight: 900;
  margin: 12px 0;
  color: var(--text);
}

.pricing-details {
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 24px;
}

.pricing-note {
  font-size: 13px;
  margin-top: 18px;
  color: var(--text-light);
  font-weight: 700;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  padding: 44px 0 80px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}

.footer-brand {
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.footer-tagline {
  color: var(--text-light);
  font-size: 14px;
  margin: 6px 0 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  background: rgba(30, 41, 59, 0.06);
  color: var(--text);
}

/* =====================================================
   FORM STYLES (start.html)
   ===================================================== */
.form-page {
  padding: 40px 0 80px;
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.form-header p {
  color: var(--text-light);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

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

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.form-label .required {
  color: #dc2626;
}

.form-hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.char-counter {
  text-align: right;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.error {
  color: #dc2626;
}

/* Checkbox Styles */
.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-wrapper:hover {
  border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-label a:hover {
  text-decoration: none;
}

/* Form Sections */
.form-section {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Error States */
.form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc2626;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* =====================================================
   REVIEW PAGE STYLES
   ===================================================== */
.review-page {
  padding: 40px 0 80px;
}

.review-container {
  max-width: 700px;
  margin: 0 auto;
}

.review-header {
  text-align: center;
  margin-bottom: 40px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.review-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.review-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.review-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.review-value {
  font-size: 16px;
  color: var(--text);
}

.review-value.large {
  font-size: 18px;
  font-weight: 700;
}

/* Price Summary Box */
.price-summary {
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
  border-radius: 16px;
  color: #FFFFFF;
  margin: 24px 0;
}

.price-summary p {
  color: #FFFFFF;
  margin: 0;
}

.price-summary strong {
  color: #FFFFFF;
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 12px 0;
}

.price-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  margin-bottom: 0;
}

.review-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* =====================================================
   SUCCESS PAGE STYLES
   ===================================================== */
.success-page {
  padding: 60px 0 80px;
  text-align: center;
}

.success-container {
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.5s ease;
}

.success-icon svg {
  width: 50px;
  height: 50px;
  color: var(--white);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: 24px;
}

.success-detail {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.success-detail:last-child {
  border-bottom: none;
}

.success-detail-label {
  color: var(--text-light);
  font-size: 14px;
}

.success-detail-value {
  font-weight: 700;
  color: var(--text);
}

.success-message {
  background: var(--secondary);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 24px;
  border: 1px solid #D1E3FA;
}

.success-message p {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
}

/* =====================================================
   LEGAL PAGES (Impressum, Datenschutz, AGB)
   ===================================================== */
.legal-page {
  padding: 40px 0 80px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.legal-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-card h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-card h3 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-card p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.legal-card ul {
  color: var(--text-light);
  padding-left: 24px;
  margin-bottom: 16px;
}

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

.legal-card a {
  color: var(--primary);
}

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

.legal-highlight {
  background: var(--secondary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  margin: 16px 0;
}

.legal-highlight p {
  margin: 0;
  color: var(--text);
}

/* =====================================================
   LOADING STATE
   ===================================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 16px;
  font-weight: 600;
  color: var(--text);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }
  
  .main-nav {
    width: 100%;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-box {
    padding: 40px 24px;
  }
  
  .trust-row {
    gap: 8px;
  }
  
  .pill {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .bubble {
    max-width: 95%;
  }
  
  .doc-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .doc-badges {
    justify-content: flex-start;
  }
  
  .escalation-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .price {
    font-size: 42px;
  }
  
  .form-card,
  .review-card,
  .legal-card {
    padding: 24px;
  }
  
  .review-actions {
    flex-direction: column;
  }
  
  .review-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .form-card,
  .legal-card {
    padding: 20px;
  }
}

/* ================================================
   WERKNOTE CSS ADDITIONS v2.0
   Add this to the END of your existing styles.css
   ================================================ */

/* ------------------------------------------------
   Form Row Layout (for side-by-side fields)
   ------------------------------------------------ */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-group-half {
  flex: 1;
  min-width: 140px;
}

.form-group-third {
  flex: 0 0 120px;
  min-width: 100px;
}

.form-group-twothird {
  flex: 1;
  min-width: 160px;
}

/* Mobile: Stack vertically */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group-half,
  .form-group-third,
  .form-group-twothird {
    flex: none;
    width: 100%;
    min-width: auto;
  }
}

/* ------------------------------------------------
   Review Card Header (for section titles)
   ------------------------------------------------ */
.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.review-card-icon {
  font-size: 24px;
}

.review-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* ------------------------------------------------
   Info Box (for "What you get" section)
   ------------------------------------------------ */
.info-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  margin: 24px 0;
}

.info-box-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.info-box-content {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.info-box-content strong {
  color: var(--primary);
}

.info-box-content ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.info-box-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
}

.info-box-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .info-box {
    flex-direction: column;
    text-align: center;
  }
  
  .info-box-content ul {
    text-align: left;
  }
}

/* ------------------------------------------------
   Form Section Title Icons
   ------------------------------------------------ */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =====================================================
   WERKNOTE v4.0 - Additional Form Styles
   ===================================================== */

/* Form Row - Side by Side Fields */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-group-half {
  flex: 1;
  min-width: 140px;
}

.form-group-third {
  flex: 0 0 120px;
  min-width: 100px;
}

.form-group-twothird {
  flex: 1;
  min-width: 180px;
}

/* Mobile: Stack vertically */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group-half,
  .form-group-third,
  .form-group-twothird {
    flex: 1 1 100%;
  }
}

/* Review Card Header */
.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}

.review-card-icon {
  font-size: 20px;
}

.review-card-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

/* Info Box */
.info-box {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, #EBF5FF 0%, #F0F9FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

.info-box-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-box-content {
  font-size: 14px;
  line-height: 1.5;
}

.info-box-content ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.info-box-content li {
  margin-bottom: 4px;
}

/* Review Value with "large" modifier */
.review-value.large {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* Form Section Title */
.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Section */
.form-section {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

/* Checkbox Group improvements */
.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label strong {
  display: block;
  margin-bottom: 2px;
}

/* Character Counter States */
.char-counter {
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
  margin-top: 4px;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.error {
  color: #ef4444;
}

/* Form Error */
.form-error {
  display: none;
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
}

/* Input Error State */
input.error,
select.error,
textarea.error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* Price Summary */
.price-summary {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border-radius: var(--radius-sm);
  color: var(--white);
  margin: 24px 0;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0;
}

.price-info {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Review Actions */
.review-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-light);
}

/* Review Card */
.review-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.review-section {
  margin-bottom: 14px;
}

.review-section:last-child {
  margin-bottom: 0;
}

.review-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.review-value {
  font-size: 15px;
  color: var(--text);
}

/* ================================================
   WERKNOTE - CSS Ergänzungen v5.0
   Brief-Option (Upsell) Styles
   ================================================
   
   Diese Styles müssen zu deiner bestehenden styles.css 
   hinzugefügt werden!
   ================================================ */

/* ================================================
   UPSELL BOX
   ================================================ */

.upsell-box {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 2px solid #d8b4fe;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.upsell-box:hover {
  border-color: #a855f7;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.upsell-box.upsell-active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.upsell-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.upsell-active .upsell-badge {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* ================================================
   PAKET BADGES (Review Page)
   ================================================ */

.paket-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.paket-basis {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.paket-plus {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  color: #166534;
}

.paket-badge-star {
  font-size: 16px;
}

/* ================================================
   PRICE SUMMARY ENHANCEMENTS
   ================================================ */

.price-summary table {
  border-collapse: collapse;
}

.price-summary table td {
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.price-summary table tr:last-child td {
  border-bottom: none;
}

/* ================================================
   CHECKBOX ENHANCEMENTS
   ================================================ */

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #2563eb;
}

.checkbox-label {
  flex: 1;
  line-height: 1.5;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes checkPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.upsell-box input[type="checkbox"]:checked {
  animation: checkPulse 0.3s ease;
}

/* ============================================================
   WERKNOTE - Cookie Banner Styles
   Füge diesen Code am ENDE deiner styles.css ein
   ============================================================ */

/* Cookie Banner Container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease-out;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.cookie-text a {
  color: #2563EB;
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.cookie-btn-accept {
  background: #2563EB;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #1d4ed8;
}

.cookie-btn-necessary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.cookie-btn-necessary:hover {
  background: #e2e8f0;
}

.cookie-btn-settings {
  background: transparent;
  color: #64748b;
  padding: 12px 16px;
  text-decoration: underline;
}

.cookie-btn-settings:hover {
  color: #2563EB;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1e293b;
}

.cookie-modal-body {
  padding: 20px;
}

.cookie-category {
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 12px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-category-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.cookie-category-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  border-radius: 26px;
  transition: 0.3s;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #2563EB;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #22c55e;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
}
