/* ==========================================================================
   LOCAL FONTS (Plus Jakarta Sans & Space Mono)
   ========================================================================== */

/* --- PLUS JAKARTA SANS --- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 700; /* Deckt Schnitte von Light bis Bold ab */
  font-display: swap;
  src: url('fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations');
}

/* --- SPACE MONO --- */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SpaceMono-Regular.ttf') format('truetype-variations');
}

@font-face {
  font-family: 'Space Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SpaceMono-Italic.ttf') format('truetype-variations');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/SpaceMono-Bold.ttf') format('truetype-variations');
}



/* ==========================================================================
   VISUAL SYSTEM & ARCHITECTURE
   ========================================================================== */
:root {
  /* Color Palette - Technical Editorial Aesthetic */
  --bg-dark: #090a0f;
  --bg-surface: #11131a;
  --bg-surface-elevated: #1a1d26;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  
  --text-main: #f0f2f5;
  --text-muted: #8a909e;
  --text-dim: #5a606e;

  --accent-amber: #ff6b35;
  --accent-amber-glow: rgba(255, 107, 53, 0.15);
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.05) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 95%, rgba(0, 0, 0, 0.4) 100%);
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   HEADER & FLOATING PRICE BADGE
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.brand-symbol {
  color: var(--accent-amber);
}

.price-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.price-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.price-value {
  font-weight: 700;
  color: var(--accent-amber);
  font-size: 1rem;
}

/* ==========================================================================
   HERO & BEFORE/AFTER INTERACTIVE CONTAINER
   ========================================================================== */
.hero-section {
  padding: 130px 1.5rem 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.kicker-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.highlight-underline {
  position: relative;
  display: inline-block;
  color: #fff;
}

.highlight-underline::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-amber);
}

.hero-subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}

/* Before / After Slider Component */
.hero-comparison {
  margin-top: 2rem;
  width: 100%;
}

.comparison-stage {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.layer-after {
  z-index: 1;
  background: #0d1117;
}

.layer-before {
  z-index: 2;
  width: 50%; /* JS dynamic update */
  background: #1a1a1a;
  border-right: 1px solid rgba(255,255,255,0.3);
}

/* Browser Window Frame Styling */
.mock-browser {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.layer-before .mock-browser {
  width: 100% !important; /* Force internal contents to match full width of wrapper */
  min-width: 320px;
}

.browser-bar {
  height: 38px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.layer-after .dot:nth-child(1) { background: #ff5f56; }
.layer-after .dot:nth-child(2) { background: #ffbd2e; }
.layer-after .dot:nth-child(3) { background: #27c93f; }

.address-bar {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 12px;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mock Website Contents */
.mock-content {
  padding: 2rem;
  height: calc(100% - 38px);
  overflow-y: auto;
}

/* AFTER CONTENT (NEW) */
.after-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: radial-gradient(circle at 100% 0%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
}

.mock-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-amber);
  background: var(--accent-amber-glow);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.mock-hero h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mock-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin-bottom: 1.2rem;
}

.mock-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mock-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.mock-btn.primary {
  background: var(--text-main);
  color: #000;
}

.mock-btn.secondary {
  border: 1px solid var(--border-strong);
  color: var(--text-main);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.mock-card {
  background: var(--bg-surface-elevated);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mock-card .card-num {
  font-family: var(--font-mono);
  color: var(--accent-amber);
  font-size: 0.75rem;
}

.mock-card h4 {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.mock-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* BEFORE CONTENT (OLD - INTENTIONALLY UGLY/OUTDATED) */
.before-content {
  background: #ffffcc;
  color: #000080;
  font-family: "Times New Roman", Times, serif;
}

.before-content marquee {
  background: #ff0000;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  padding: 4px;
  font-size: 0.8rem;
}

.old-title {
  font-size: 1.8rem;
  color: #800000;
  text-decoration: underline;
  margin-top: 1rem;
}

.old-subtitle {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.old-text {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.old-list {
  font-size: 0.85rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.old-button {
  background: #00ff00;
  color: #000;
  border: 3px outset #fff;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
}

/* Handle Element */
.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: ew-resize;
  outline: none;
}

.handle-line {
  width: 2px;
  flex-grow: 1;
  background: var(--accent-amber);
}

.handle-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-amber);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.comparison-handle:focus-visible .handle-button {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.comparison-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.label-tag.hint {
  color: var(--accent-amber);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   TRANSFORMATION MATRIX (AHA MOMENT)
   ========================================================================== */
.transformation-section,
.scope-section,
.process-section,
.pricing-section,
.fit-section,
.contact-section {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.mono-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1rem;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

@media (max-width: 850px) {
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .matrix-arrow {
    transform: rotate(90deg);
    text-align: center;
    margin: -1rem 0;
  }
}

.matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  position: relative;
}

.matrix-card.solution-card {
  border-color: rgba(255, 107, 53, 0.3);
  background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(255, 107, 53, 0.03) 100%);
}

.card-status-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  display: inline-block;
  margin-bottom: 1rem;
}

.card-status-pill.success {
  background: var(--accent-amber-glow);
  color: var(--accent-amber);
}

.matrix-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matrix-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.list-icon {
  font-weight: 700;
}
.problem-card .list-icon { color: var(--accent-red); }
.solution-card .list-icon { color: var(--accent-green); }

.matrix-arrow {
  font-size: 2rem;
  color: var(--text-dim);
}

/* ==========================================================================
   WHAT YOU GET (SCOPE BOUNDARIES)
   ========================================================================== */
.spec-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  margin-top: 3rem;
}

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

.spec-box {
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.spec-box.included {
  background: var(--bg-surface);
}

.spec-box.excluded {
  background: rgba(0,0,0,0.2);
  border-color: transparent;
}

.spec-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.spec-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-box.included li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.spec-box.included strong {
  color: var(--text-main);
}

.spec-box.excluded li {
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: var(--radius-md);
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-amber);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-card {
  background: radial-gradient(circle at 50% 0%, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.pricing-amount {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  margin: 0.5rem 0;
}

.pricing-qualifier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent-amber);
  margin-bottom: 1.5rem;
}

.pricing-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-amber);
  color: #000;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ff7b4d;
  transform: translateY(-2px);
}

/* ==========================================================================
   TARGET FIT (WHO THIS IS FOR / NOT FOR)
   ========================================================================== */
.fit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.col-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.highlight-green { color: var(--text-main); }
.highlight-red { color: var(--text-muted); }

.col-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.niche-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.not-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.not-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
}

.not-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-red);
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */
.contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 2.5rem;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .form-group.full-width { grid-column: span 1; }
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.req {
  color: var(--accent-amber);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Explicitly prevent horizontal resize on textareas */
textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 300px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-glow);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--accent-red);
  display: none;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--accent-red);
}

.form-group.invalid .error-msg {
  display: block;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1rem;
}

.form-feedback {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.5rem;
}
.form-feedback.success-text { color: var(--accent-green); }
.form-feedback.error-text { color: var(--accent-red); }

/* ==========================================================================
   FOOTER & MODALS
   ========================================================================== */
.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 0.2rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.legal-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* Modal Overlay System for Legal Views */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

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

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary, .modal-overlay {
    transition: none !important;
  }
}

/* ==========================================================================
   PORTFOLIO SHOWCASE SECTION
   ========================================================================== */
.portfolio-section {
  padding: 80px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-section .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.portfolio-card {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  background-color: #111111 !important; /* Fester dunkler Hintergrund */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.portfolio-card:hover .address-bar {
  color: #ff6b35 !important;
  background: rgba(255, 107, 53, 0.15) !important;
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #000000;
  flex-shrink: 0;
}

.portfolio-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.02);
}

/* FIX FÜR DIE TEXT-SICHTBARKEIT */
.portfolio-info {
  display: block !important;
  padding: 24px !important;
  background-color: #111111 !important; /* Stellt sicher, dass das Textfeld sichtbar ist */
  flex-grow: 1;
}

.portfolio-card .portfolio-tag {
  display: inline-block !important;
  font-family: 'Space Mono', monospace, sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ff6b35 !important;
  margin-bottom: 8px !important;
}

.portfolio-card .portfolio-info h3 {
  display: block !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 8px 0 !important;
  color: #ffffff !important; /* Weißer Text */
}

.portfolio-card .portfolio-info p {
  display: block !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  color: #cccccc !important; /* Hellgrauer Text */
}





.text-page-section{
  padding-top: 120px;
}

.text-area p{
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: justify;
}

.text-area ul{
  margin-top: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  padding-left: 2rem;
}

.text-area h2{
  margin-top: 1rem;
}
.text-area h3{
  margin-top: 0.75rem;
}
.text-area h4{
  margin-top: 0.75rem;
}

.submit-info{
  font-size: 0.85rem;
  color: var(--text-dim);
}
/* ==========================================================================
   THE COST OF STANDING STILL (DESKTOP GRID + MOBILE FADE-SLIDE)
   ========================================================================== */
.cost-chart-section {
  position: relative;
  height: 260vh;
  background: var(--bg-main, #000);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.cost-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cost-chart-section .section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.red-text {
  color: #ff4d4d !important;
}

/* Chart Container */
.chart-stage {
  position: relative;
  width: 100%;
  background: var(--bg-surface, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.chart-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted, #888);
  margin-bottom: 1rem;
}

.chart-status-pill {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main, #fff);
  transition: all 0.3s ease;
}

.chart-status-pill.declining {
  background: rgba(255, 77, 77, 0.15);
  color: #ff4d4d;
}

/* SVG Chart & Kurve */
.chart-svg {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: var(--border-subtle, rgba(255, 255, 255, 0.05));
  stroke-width: 1;
}

.chart-path {
  fill: none;
  stroke: #ff4d4d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  filter: drop-shadow(0px 0px 8px rgba(255, 77, 77, 0.4));
}

.chart-head-dot {
  fill: #ff4d4d;
  opacity: 0;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0px 0px 6px #ff4d4d);
}

/* DESKTOP LAYOUT (Unberührt: 4 Boxen nebeneinander) */
.chart-phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding-top: 1.5rem;
}

.chart-phase-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
  border-radius: 8px;
  padding: 1rem;
  opacity: 0.25;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.chart-phase-card.active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.chart-phase-card.active-red {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255, 77, 77, 0.4);
  background: rgba(255, 77, 77, 0.05);
}

.phase-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--text-muted, #666);
  display: block;
  margin-bottom: 0.4rem;
}

.phase-num.red-phase {
  color: #ff4d4d;
}

.chart-phase-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main, #fff);
  margin: 0 0 0.4rem 0;
}

.chart-phase-card p {
  font-size: 0.8rem;
  color: var(--text-muted, #aaa);
  line-height: 1.4;
  margin: 0;
}

/* MOBILE LAYOUT (Boxen liegen exakt übereinander und wechseln sich ab) */
@media (max-width: 768px) {
  .chart-stage {
    padding: 1rem;
  }

  .chart-svg {
    height: 170px;
  }

  .chart-phases-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-top: 1rem;
    padding-top: 1rem;
    position: relative;
    min-height: 110px; /* Hält Platz für die jeweils aktive Box frei */
  }

  .chart-phase-card {
    grid-area: 1 / 1; /* Stapelt alle 4 Boxen im selben Raster-Feld */
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  /* Nur die aktuell aktive Box wird eingeblendet */
  .chart-phase-card.active,
  .chart-phase-card.active-red {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
.cost-chart-section .section-container {
  padding: 0 1.5rem;
}
}


/* Positionierung & Stil des Zeichenzählers */
.form-group.full-width {
  position: relative; /* Wichtig für die Positionierung */
}

.char-counter {
  display: block;
  text-align: right;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  margin-top: 0.35rem;
  transition: color 0.2s ease;
}

/* Warnfarbe kurz vor dem Limit */
.char-counter.near-limit {
  color: #ff4d4d;
}


/* ==========================================================================
   SUCCESS PAGE STYLES
   ========================================================================== */
body.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark, #0a0a0c);
  color: var(--text-main, #ffffff);
  padding: 2rem 1rem;
}

.success-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.success-card {
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.success-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.success-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color, #888888) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-description {
  color: var(--text-muted, #a1a1aa);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Steps Box */
.next-steps-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  color: var(--accent-color, #a1a1aa);
  opacity: 0.7;
  padding-top: 0.2rem;
}

.step-text strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.step-text span {
  font-size: 0.85rem;
  color: var(--text-muted, #a1a1aa);
}

.success-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 600px) {
  .success-card {
    padding: 2rem 1.5rem;
  }
}

.brand-symbol img{
  height: 16px;
  width: 16px;
}
@media (max-width: 850px) {
  .only-desk {
    display: none;
  }
}
@media (min-width: 851px) {
  .only-phone {
    display: none;
  }
}