:root {
  --bg: #f7f5f1;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --text: #1f1d1a;
  --text-soft: #4d473e;
  --border: #d7cec2;
  --border-strong: #b4a896;
  --accent: #2d5c67;
  --accent-strong: #204850;
  --focus: #ffbf47;
  --shadow: 0 10px 28px rgba(31, 29, 26, 0.07);
  --radius: 18px;
  --radius-small: 12px;
  --container: 76rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(to bottom, #faf8f4 0%, var(--bg) 100%);
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 0.18em;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(31, 29, 26, 0.95);
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -200px;
  z-index: 1000;
  padding: 0.8rem 1rem;
  background: var(--surface-strong);
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: var(--radius-small);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav-list a:hover {
  background: rgba(45, 92, 103, 0.08);
}

.nav-list a[aria-current="page"] {
  background: rgba(45, 92, 103, 0.14);
  color: var(--accent-strong);
}

.site-main {
  padding: 2.5rem 0 4rem;
}

.intro-section {
  padding: 1rem 0 2rem;
}

.intro-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,253,249,0.98));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 2vw + 1rem, 3rem);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.35rem);
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(1.55rem, 1.4vw + 1rem, 2.2rem);
}

h3 {
  font-size: clamp(1.3rem, 0.9vw + 1rem, 1.65rem);
}

p {
  margin: 0;
  max-width: 68ch;
}

p + p {
  margin-top: 1.15rem;
}

.projects-section {
  padding: 2rem 0 1rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.6rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-label {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(45, 92, 103, 0.1);
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.project-card p:not(.project-label) {
  color: var(--text-soft);
}

.project-actions {
  margin-top: auto;
  padding-top: 0.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(45, 92, 103, 0.2);
}

.button:hover {
  background: var(--accent-strong);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #f3efe8;
}

.footer-content {
  padding: 2rem 0 1.5rem;
}

.footer-contact h2 {
  margin-bottom: 0.8rem;
}

.footer-meta {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.footer-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.copyright {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 48rem) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    gap: 0.35rem;
  }

  .nav-list a {
    min-height: 2.6rem;
  }

  .footer-meta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   IPA-SEITE (ipa.html)
============================================================ */

.ipa-intro-section {
  padding-bottom: 1.25rem;
}

.ipa-intro-content {
  display: grid;
  gap: 1.35rem;
}

.info-panel {
  max-width: 68ch;
  padding: 1rem 1.15rem;
  background: rgba(47, 95, 105, 0.06);
  border: 1px solid rgba(47, 95, 105, 0.18);
  border-radius: var(--radius-small);
}

.ipa-content-section {
  padding: 0.5rem 0 1rem;
}

.ipa-content-wrap {
  padding: clamp(1.1rem, 1.4vw + 0.8rem, 1.8rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 249, 0.98));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-soft);
}

.accordion-group {
  display: grid;
  gap: 0.9rem;
}

.accordion-item {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item[open] {
  border-color: var(--border-strong);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary:hover {
  background: rgba(47, 95, 105, 0.05);
}

.accordion-item summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 2px rgba(31, 29, 26, 0.95);
}

.accordion-title {
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  line-height: 1.35;
}

.accordion-indicator {
  position: relative;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.accordion-indicator::before,
.accordion-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 2px;
  background: var(--accent-strong);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.accordion-indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item[open] .accordion-indicator::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion-panel {
  padding: 0 1.25rem 1.3rem;
  border-top: 1px solid var(--border);
}

.accordion-panel > p:first-child,
.accordion-panel > ol:first-child {
  margin-top: 1.15rem;
}

.document-list {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.document-block {
  display: grid;
  gap: 0.85rem;
}

.document-block + .document-block {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.document-links {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  min-height: 2.8rem;
  padding: 0.35rem 0;
  color: var(--accent-strong);
  font-weight: 600;
}

.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgba(47, 95, 105, 0.06);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.supporting-note {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.tool-placeholder {
  display: grid;
  place-items: center;
  min-height: 16rem;
  margin-top: 1.4rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(47, 95, 105, 0.05), rgba(47, 95, 105, 0.08));
  border: 1px solid rgba(47, 95, 105, 0.18);
  border-radius: var(--radius);
}

.tool-placeholder p {
  max-width: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.steps-list {
  margin: 1.15rem 0;
  padding-left: 1.4rem;
}

.steps-list li + li {
  margin-top: 0.8rem;
}

.inline-code {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: #f5f0e7;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
  color: var(--text);
}

@media (max-width: 48rem) {
  .accordion-item summary {
    min-height: 3.8rem;
    padding: 0.95rem 1rem;
  }

  .accordion-panel {
    padding: 0 1rem 1.15rem;
  }

  .document-link {
    width: 100%;
  }

  .tool-placeholder {
    min-height: 12rem;
  }
}


/* ============================================================
   IPA-TABELLEN-SEITE (ipa-tabellen.html)
============================================================ */

.zero-note {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-soft);
}

.section-nav-wrap {
  background: rgba(247, 245, 241, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
}

.section-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.tab-btn:hover {
  background: rgba(45, 92, 103, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
}

.tab-btn[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-btn[aria-selected="true"]:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.ipa-tables-section {
  padding: 1.5rem 0 2rem;
}

.section-panel {
  display: none;
}

.section-panel.is-active {
  display: block;
}

.section-panel-inner {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,253,249,0.98));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2vw + 0.75rem, 2.25rem);
}

.table-group {
  display: grid;
  gap: 1.5rem;
}

.subsection-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.subsection-heading h3 {
  color: var(--accent-strong);
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
}

.subsection-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ipa-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-small);
  border: 1px solid var(--border);
}

.ipa-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 360px;
  font-size: 1rem;
  background: var(--surface-strong);
}

.ipa-table th,
.ipa-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--border);
}

.ipa-table thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  border-color: var(--accent-strong);
}

.ipa-table tbody tr:nth-child(odd) td,
.ipa-table tbody tr:nth-child(odd) th {
  background: var(--bg);
}

.ipa-table tbody tr:nth-child(even) td,
.ipa-table tbody tr:nth-child(even) th {
  background: var(--surface-strong);
}

.ipa-table tbody tr:hover td,
.ipa-table tbody tr:hover th {
  background: rgba(45, 92, 103, 0.07);
}

.row-header {
  font-weight: 700;
  color: var(--accent-strong);
  white-space: nowrap;
}

.braille-cell {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--text);
  font-family: "Segoe UI Symbol", "Apple Braille", "Symbola", serif;
}

.table-note {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

@media (max-width: 48rem) {
  .ipa-table th,
  .ipa-table td {
    padding: 0.5rem 0.65rem;
  }

  .braille-cell {
    font-size: 1.3rem;
  }
}


/* ============================================================
   KONTAKTSEITE (kontakt.html)
============================================================ */

/* E-Mail-Block */
.email-block {
  margin-top: 1.75rem;
  text-align: center;
}

.email-address-display {
  display: block;
  font-size: clamp(1.3rem, 2vw + 0.7rem, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.55rem;
  user-select: all;
}

.email-open-link {
  display: inline;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.email-open-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(31, 29, 26, 0.95);
  text-decoration: none;
}

/* Team-Bereich */
.team-section {
  padding: 2rem 0 1rem;
}

.team-content-wrap {
  padding: clamp(1.1rem, 1.4vw + 0.8rem, 1.8rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 249, 0.98));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

/* Gruppenüberschriften auf h2-Ebene */
.team-group-heading {
  font-size: clamp(1.55rem, 1.4vw + 1rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin: 1.75rem 0 1.1rem;
}

.team-group-heading--first {
  margin-top: 0;
}

/* Team-Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.1rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.45rem;
  background: var(--surface-strong);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(31, 29, 26, 0.08);
}

/* Team-Cards */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.45rem;
  width: clamp(17rem, calc(50% - 0.55rem), 22rem);
  background: var(--surface-strong);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(31, 29, 26, 0.08);
}

.team-card-name {
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  font-weight: 700;
  margin: 0 0 0.2rem;
  line-height: 1.2;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Aufgaben-Zeile: „Aufgaben: X und Y" */
.team-card-tasks {
  font-size: 0.93rem;
  line-height: 1.5;
}

.team-tasks-label {
  font-weight: 700;
  color: var(--text-soft);
}

.team-tasks-value {
  color: var(--text);
  font-weight: 600;
}

/* Social-Link: nur der Handle-Text ist verlinkt */
.team-social-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.93rem;
  flex-wrap: wrap;
}

.team-social-platform {
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.team-social-handle {
  font-weight: 600;
  color: var(--accent-strong);
}

/* Ehemalige Mitglieder */
.team-former-group {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 48rem) {
  .team-social-handle {
    width: 100%;
  }
}
