:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #f1851d;        /* NEU: Marken-Orange */
  --accent-600: #474749;    /* NEU: Marken-Dunkelgrau */
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --betreuung: #0ea5e9; /* Wünschenswerter Status */
  --radius: 24px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  --maxw: 920px;
  
  /* Fonts */
  --font-heading: 'Barlow', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: 
    radial-gradient(at 0% 0%, rgba(241, 133, 29, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(71, 71, 73, 0.03) 0px, transparent 50%);
}

h1, h2, h3, h4, .btn, .step-label, .main-footer {
  font-family: var(--font-heading);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.main-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  height: 38px;
  display: block;
  margin: 0 auto;
}

.main-content {
  flex: 1;
  padding: 4rem 0;
}

.hero-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4.5rem 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-600));
}

.card-title { margin: 0 0 0.75rem 0; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-600); }
.card-subtitle { color: var(--muted); margin-bottom: 3rem; font-size: 1.2rem; }

.status-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 460px;
  margin: 0 auto;
}

.input-group { text-align: left; }
.label { display: block; margin-bottom: 0.6rem; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.input {
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  background: #f8fafc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(241, 133, 29, 0.1);
}

.input-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  display: inline-block;
}

.btn {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(241, 133, 29, 0.2);
}

.btn:hover { background-color: var(--accent-600); transform: translateY(-2px); box-shadow: 0 20px 25px -5px rgba(71, 71, 73, 0.2); }

/* --- TIMELINE STYLES --- */
.timeline-container {
  margin: 3rem 0;
  padding: 0 1rem;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-dot {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  transition: all 0.4s ease;
}

.step.completed .step-dot {
  background: var(--success);
  border-color: var(--success);
}

.step.active .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(241, 133, 29, 0.2);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: center;
}

.step.active .step-label { color: var(--accent); }
.step.completed .step-label { color: var(--success); }

/* --- STATUS BADGES --- */
.result-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px dashed #e2e8f0;
  text-align: left;
  animation: fadeIn 0.5s ease-out;
}

.status-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.status-badge.status-backlog { background: #94a3b8; }
.status-badge.status-planung { background: #6366f1; }
.status-badge.status-umsetzung { background: var(--accent); }
.status-badge.status-fertig { background: var(--success); }

/* Sonderstatus */
.status-badge.status-pausiert { background: #64748b; }
.status-badge.status-zuarbeit { background: var(--warning); color: #000; }
.status-badge.status-abgebrochen { background: var(--error); }
.status-badge.status-betreuung { 
  background: linear-gradient(135deg, var(--betreuung), var(--accent-600)); 
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  position: relative;
}
.status-badge.status-betreuung::after {
  content: "★";
  margin-left: 8px;
  color: #fbbf24;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-item {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #ffb066); /* leicht helleres Orange rechts */
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-heading);
}

.nachricht-box {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.reset-link {
  margin-top: 2.5rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/* --- FOOTER STYLES --- */
.main-footer {
  padding: 6rem 0 4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 4rem;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.contact-line {
  font-size: 1.1rem;
  color: var(--accent-600);
  margin-bottom: 2rem;
  font-weight: 600;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.contact-line a:hover {
  border-color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-600);
}

.copyright {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .step { flex-direction: row; gap: 1rem; width: 100%; }
  .step-dot { margin-bottom: 0; }
  .step-label { text-align: left; font-size: 0.9rem; }
  .footer-links { flex-direction: column; gap: 1rem; }
}
