@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
}

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

:root {
  --red: #E2002D;
  --red-dark: #B8001F;
  --red-light: #FF6B6B;
  --gold: #FFD700;
  --bg: #F8FAFC;
  --dark: #1A1A1A;
  --text: #333333;
  --white: #FFFFFF;
}

body {
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

header {
  background: var(--white);
  color: var(--dark);
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.logo img {
  height: 48px;
  width: auto;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  transition: color 0.2s;
}

nav a:hover {
  color: var(--red);
}

nav .portal-btn {
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background 0.2s;
}

nav .portal-btn:hover {
  background: var(--red-dark);
  color: var(--white);
}

.red-section {
  background-image: url('pictures/Abraham_Fassade.jpg');
  background-size: cover;
  background-position: center calc(100% + 80px);
  color: var(--white);
  padding: 200px 48px;
  position: relative;
}

.red-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(26,26,26,0.85);
  background-image: radial-gradient(circle, rgba(226,0,45,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.red-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(226,0,45,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 40px;
}

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--red-light);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.process-section {
  padding: 100px 48px;
  background: var(--white);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--red);
}

.section-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-dark);
  margin-bottom: 60px;
}

.process-flow {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 80px;
  right: 80px;
  height: 2px;
  background: var(--red);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--red);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  top: 4px;
  right: 4px;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.step-desc {
  font-size: 13px;
  opacity: 0.7;
  max-width: 150px;
  margin: 0 auto;
}

.service-cards {
  padding: 100px 48px;
  background: var(--bg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 8px 30px rgba(226,0,45,0.15);
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--red);
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
}

.service-card .tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--red-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-section {
  padding: 100px 48px;
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding-bottom: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red) 80%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  padding: 24px 40px;
  position: relative;
  z-index: 1;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.6) 30%, 
    rgba(255,255,255,0.6) 70%, 
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.timeline-content h3,
.timeline-content p {
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.timeline-content p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

.timeline-node {
  width: 24px;
  height: 24px;
  background: var(--gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--red);
  z-index: 3;
}

.areas-section {
  padding: 80px 48px;
  background: var(--bg);
  color: var(--dark);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.area-box {
  background: var(--white);
  padding: 32px;
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.area-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.area-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 16px;
}

.area-box p {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.8;
}

.contact-section {
  padding: 80px 48px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
  align-items: stretch;
}

.contact-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 150px;
}

.contact-item a.contact-link {
  text-decoration: none;
  color: inherit;
}

.contact-item a.contact-link:hover {
  color: var(--red);
}

.contact-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  line-height: 1.3;
}

.contact-item span {
  font-size: 14px;
  opacity: 0.8;
}

.contact-item:last-child span {
  text-align: center;
}

.contact-item span {
  font-size: 14px;
  opacity: 0.8;
  margin-top: auto;
}

.contact-item a {
  color: var(--white);
}

footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 48px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--red);
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 10px;
  font-size: 13px;
  opacity: 0.7;
}

footer a:hover {
  opacity: 1;
  color: var(--red);
}

.footer-bottom {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  opacity: 0.5;
  text-align: center;
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { flex-direction: column; gap: 32px; }
}

@media (max-width: 768px) {
  .process-flow { flex-direction: column; gap: 40px; }
  .process-flow::before { display: none; }
  .timeline::before { left: 12px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-content { padding: 0 0 0 40px; }
  .timeline-node { left: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 32px; }
  .red-section, .process-section, .service-cards, .timeline-section { padding: 60px 24px; }
  header { padding: 16px 24px; }
  nav { gap: 16px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.subpage-header {
  padding: 140px 48px 100px;
}

.subpage-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.subpage-header p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 80px 48px;
  background: var(--white);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
}

.main-content {
  background: var(--white);
  padding: 40px;
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.main-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 24px;
}

.main-content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
}

.main-content strong {
  color: var(--dark);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dienstleister-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.dienstleister-tabelle th,
.dienstleister-tabelle td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.dienstleister-tabelle th {
  background: rgba(0,0,0,0.2);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dienstleister-tabelle tr:hover td {
  background: rgba(0,0,0,0.1);
}

.sidebar-card {
  background: var(--white);
  padding: 32px;
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
}

.sidebar-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--white);
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.contact-card .contact-person {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-card .contact-person img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.contact-card .person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card .person-info strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.contact-card .person-info span {
  font-size: 12px;
  color: var(--red);
  margin-bottom: 4px;
}

.contact-card .person-info a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.contact-card .person-info a:hover {
  color: var(--red);
}

.promo-section {
  background: var(--red);
  color: var(--white);
  padding: 60px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.promo-section .promo-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-section .promo-content h3 a {
  color: var(--white);
  text-decoration: underline;
}

.promo-section .promo-content p {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .section-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .promo-section {
    flex-direction: column;
    text-align: center;
  }
  .subpage-header {
    padding: 100px 24px 60px;
  }
  .subpage-header h1 {
    font-size: 32px;
  }
  .content-section {
    padding: 40px 24px;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.team-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder::after {
  content: 'Foto';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.team-info {
  padding: 24px;
}

.team-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.team-role {
  font-size: 12px;
  color: var(--red);
  margin-bottom: 12px;
  line-height: 1.4;
}

.team-info a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.team-info a:hover {
  color: var(--red);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-item {
  background: var(--white);
  padding: 32px;
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 12px;
}

.news-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.news-item p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 0.8;
}

.pagination {
  text-align: center;
  margin-top: 48px;
  grid-column: 1 / -1;
}

.contact-form {
  max-width: 600px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  flex: 1 1 100%;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

.checkbox-group a {
  color: var(--red);
  text-decoration: underline;
}

.form-default {
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
  }
}
