/* ========================================
   GLOBAL VARIABLES & BASE STYLES
======================================== */
:root {
  --brand: #0056A0;
  --text: #1e1e24;
  --muted: #555;
  --card: #fff;
  --border: #e5e7eb;
  --shadow: 0 2px 10px rgba(0, 0, 0, .06);
  --radius: 14px;
  --maxw: 1100px;
  --gap: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.container {
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 0 20px;
}

/* ========================================
   HEADER WITH TWO LOGOS
======================================== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 40px;
}

/* Linke Seite: HHU + Titel */
.header-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.hhu-logo {
  height: 60px;
  width: auto;
  margin-bottom: 8px;
}

.title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  font-size: clamp(40px, 4.5vw, 72px);
  max-width: 680px;
  margin: 0;
}

/* Rechte Seite: Logo rechts */
.header-right {
  display: flex;
  align-items: center;
}

.workshop-logo {
  height: 100%;
  max-height: 350px;
  width: auto;
}

/* ----- Centered variant (Workshop header) ----- */
.page-header.center-title {
  align-items: center; /* Gesamtzentrierung vertikal */
}

.page-header.center-title .header-left {
  justify-content: center; /* Titel & Logo wirklich mittig */
  align-items: flex-start;
}

.page-header.center-title .title {
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.15;
  max-width: 720px;
  margin: 0;
}

.page-header.center-title .workshop-logo {
  max-height: 250px;
  height: auto;
  width: auto;
}

/* Mobile Ansicht */
@media (max-width: 700px) {
  .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-left {
    align-items: center;
  }

  .workshop-logo {
    height: 120px;
    width: auto;
    margin-top: 20px;
  }
}

/* ========================================
   HEADINGS
======================================== */
h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  font-size: clamp(28px, 3vw, 36px);
  margin: 10px 0 16px;
}

h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  font-size: clamp(20px, 2.3vw, 26px);
  margin: 22px 0 12px;
}

.sub {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
}

/* ========================================
   NAVIGATION
======================================== */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 40px;
}

nav a {
  color: var(--brand);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
}

nav a[aria-current="page"] {
  background: rgba(0, 86, 160, .08);
}

nav a:hover {
  text-decoration: underline;
}

/* ========================================
   TYPOGRAPHY & CARDS
======================================== */
p { margin: 0 0 12px; }
p.justified { text-align: justify; }
.lead { font-size: 1.05rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.highlight {
  background: #fff;
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.muted { color: var(--muted); }
.card.equal-margin { margin: var(--gap) 0; }

/* ========================================
   GRID LAYOUTS
======================================== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start; /* verhindert ungewolltes Aufstrecken */
}

@media (max-width: 980px) {
  .grid-3cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3cols { grid-template-columns: 1fr; }
  nav { justify-content: center; }
}

/* Intro row (Text + Bild) */
.equal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.equal-item { display: flex; flex-direction: column; }
.equal-inner { flex: 1; display: flex; flex-direction: column; }

.equal-inner img {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
}

.equal-inner figcaption {
  text-align: center;
  font-size: .85rem;
  color: gray;
  margin-top: 6px;
}

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

.equal-row.unequal {
  grid-template-columns: 1fr 2fr;
}

/* Extra spacing when a card is followed by a grid row */
section.card + .equal-row {
  margin-top: var(--gap);
}

/* ========================================
   COLLAPSIBLE TILES (DETAILS)
======================================== */
details.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}

details.tile[open] {
  border-color: #d7dee6;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
}

details.tile > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

details.tile > summary::-webkit-details-marker { display: none; }

.chev {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}

details[open] .chev { transform: rotate(45deg); }

.sub {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  padding: 0 18px;
  margin: -6px 0 10px;
}

.body { padding: 0 18px 16px; font-size: .98rem; }

.list { padding-left: 18px; margin: 0; }
.list li { margin: 6px 0; }

.pill {
  display: inline-block;
  background: rgba(0, 86, 160, .08);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}

/* Abstand der Tiles in großen Karten */
.card > .grid.grid-3cols > details.tile {
  margin-bottom: var(--gap);
}

/* ========================================
   FOOTER
======================================== */
footer {
  margin-top: 40px;
  font-size: .9rem;
  color: #555;
}

/* Registration table styling */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 1rem;
}

.price-table th,
.price-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: center;
}

.price-table th {
  background: rgba(0,86,160,0.08);
  font-weight: 700;
  color: var(--brand);
}

.price-table td:first-child {
  text-align: left;
  font-weight: 600;
}
