/* ===== Projektmanagement nach DIN 69901 — Stylesheet ===== */

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --accent: #c9a96e;
  --accent-light: #e0c89a;
  --bg: #f7f6f3;
  --bg-card: #ffffff;
  --text: #2a2a2a;
  --text-light: #5a5a5a;
  --border: #e0ddd6;
  --shadow: 0 2px 12px rgba(26, 58, 92, 0.08);
  --shadow-hover: 0 6px 24px rgba(26, 58, 92, 0.15);
  --radius: 10px;
  --max-width: 900px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
}

/* ===== Header / Navigation ===== */

.site-header {
  background: var(--primary);
  color: #fff;
  padding: 1.5rem 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.site-header__title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 1px;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header__title a {
  color: #fff;
  text-decoration: none;
}

.site-header__title a:hover {
  color: var(--accent-light);
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 0.85rem 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
  border-bottom: 3px solid transparent;
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--accent);
}

/* ===== Main Content ===== */

.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.page-hero__eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: 2.4rem;
  font-weight: normal;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 650px;
  margin: 0 auto;
}

/* ===== Content Sections ===== */

.section {
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.section__text {
  margin-bottom: 1rem;
  text-align: justify;
}

/* ===== Cards ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--accent);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__number {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ===== Overview Cards (Index Page) ===== */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.overview-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid var(--primary-light);
  display: flex;
  flex-direction: column;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--accent);
}

.overview-card__title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.overview-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  flex-grow: 1;
}

.overview-card__link {
  margin-top: 0.75rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== Lists ===== */

.styled-list {
  list-style: none;
  margin: 1rem 0 1rem 0.5rem;
}

.styled-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.styled-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.numbered-list {
  list-style: none;
  counter-reset: num;
  margin: 1rem 0;
}

.numbered-list li {
  counter-increment: num;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.numbered-list li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
}

/* ===== Table ===== */

.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.styled-table thead {
  background: var(--primary);
  color: #fff;
}

.styled-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.styled-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.styled-table tbody tr:nth-child(even) {
  background: rgba(201, 169, 110, 0.06);
}

.styled-table tbody tr:hover {
  background: rgba(201, 169, 110, 0.12);
}

/* ===== Callout ===== */

.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.callout__title {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--accent-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== Page Navigation (prev/next) ===== */

.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.page-nav__link {
  text-decoration: none;
  color: var(--primary);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: inline-block;
}

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

.page-nav__link--next {
  margin-left: auto;
}

.page-nav__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.page-nav__link:hover .page-nav__label {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0.5rem 0;
  }

  .site-header__title {
    font-size: 1.2rem;
  }

  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .nav__link {
    padding: 0.7rem 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .main {
    padding: 2rem 1rem 3rem;
  }

  .page-hero__title {
    font-size: 1.8rem;
  }

  .page-nav {
    flex-direction: column;
  }

  .page-nav__link {
    text-align: center;
  }
}