:root {
  --yellow: #F7D000;
  --orange: #F07B00;
  --green:  #5DB82E;
  --dark:   #1E1E1E;
  --mid:    #555;
  --light:  #f9f9f7;
  --brand-blue: #36447B;
  --footer-bg: #30374f;
}

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

html { font-size: 16px; }

body {
  font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--green); }

/* ── Header ── */
.site-header {
  background: var(--yellow);
  padding: 1.9rem 2.4rem 1.6rem;
  position: relative;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 15px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%);
}

.brand-text {
  max-width: calc(100% - 130px);
}

.logo-link {
  position: absolute;
  top: 1rem;
  right: 1.6rem;
  display: flex;
}

.logo-link {
  display: flex;
  flex-shrink: 0;
}

.logo-wrap {
  display: flex;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.brand {
  font-family: 'Poppins', 'DejaVu Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  line-height: 1;
}

.location {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-blue);
  opacity: 0.8;
  margin-top: 0.3rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--light);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--orange);
  color: #fff;
}

/* ── Main content ── */
.site-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.page {
  width: 100%;
  max-width: 700px;
}

.page h1 {
  font-family: 'Poppins', sans-serif;
  color: var(--brand-blue);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.content h2 {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  margin: 1.6rem 0 0.9rem;
}

.content h3 {
  color: var(--mid);
  font-size: 0.9rem;
  color: var(--green);
  margin: 1.6rem 0 0.9rem;
}

.page-figure {
  position: relative;
  margin: 0 0 1.4rem 0;
}

.page-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.page-figure .page-image {
  margin-bottom: 0;
}

.bild-quelle {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  font-size: 0.62rem;
  color: var(--mid);
  text-align: right;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

.bild-quelle a {
  color: var(--mid);
}

.page-with-sidebar {
  /* image floats right; .content flows normally and regains full width
     once it passes the image's bottom edge — no flex needed */
}

.page-figure-side {
  position: relative;
  float: right;
  width: 220px;
  margin: 0 0 1.4rem 2rem;
}

.page-image-side {
  width: 100%;
  max-height: none;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 600px) {
  .page-figure-side {
    float: none;
    width: 100%;
    margin-left: 0;
  }
  .page-image-side {
    aspect-ratio: 4 / 5;
  }
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.1rem;
}

.content p.note-small {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.content ul li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 16px;
  line-height: 1.5;
}

.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yellow);
}

.content ul li:nth-child(3n+2)::before { background: var(--orange); }
.content ul li:nth-child(3n)::before { background: var(--green); }

.content strong { font-weight: 700; }

.content .sub {
  display: block;
  font-size: 0.82em;
  font-weight: 400;
  color: #888;
  margin-top: 0.2em;
}

.content .details {
  border-top: 4px solid var(--green);
  padding-top: 1.1rem;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.content p.meta-row {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: 0.5rem;
  font-size: 16px;
  margin-bottom: 0;
}

.content p.meta-row > strong:first-child {
  color: var(--green);
}

/* ── Termine list ── */
.termin-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.termin-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.termin-info {
  flex: 1;
}

.termin-theme {
  background: var(--light);
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

a.termin-theme:hover {
  background: var(--orange);
  color: #fff;
}

a.termin-theme:hover .info-icon {
  border-color: #fff;
  color: #fff;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1.3px solid var(--orange);
  border-radius: 50%;
  font-size: 0.65rem;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
  flex-shrink: 0;
}

.termin-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background: var(--light);
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

.termin-date.accent-1 { border-color: var(--orange); }
.termin-date.accent-2 { border-color: var(--green); }

.termin-date .kw-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
}

.termin-date .kw-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-blue);
  line-height: 1.1;
}

.termin-info .date {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
}

.termin-info .time {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-note {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.5;
}

.footer-note .label {
  color: white;
  font-weight: 700;
  display: block;
}

.footer-note a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
}

.footer-note em {
  color: #ccc;
  font-size: 0.82rem;
}

.footer-note .impressum-link {
  color: #999;
  font-weight: 400;
  font-size: 0.78rem;
  text-decoration: underline;
}

.footer-links {
  display: block;
  margin-top: 0.4rem;
}

.footer-links .impressum-link + .impressum-link {
  margin-left: 0.6rem;
}

.free-badge {
  background: var(--orange);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header { padding: 1.1rem 1.2rem 1.4rem; }
  .brand { font-size: 1.5rem; }
  .logo-img { width: 62px; height: 62px; }
  .logo-link { top: 0.8rem; right: 1rem; }
  .brand-text { max-width: calc(100% - 90px); }
  .site-nav { gap: 0.6rem; }
  .site-nav a { font-size: 0.68rem; padding: 0.45rem 0.9rem; }
  .site-main { padding: 1.8rem 1rem; }
  .content ul li { font-size: 16px; padding-left: 1.4rem; }
  .content p.meta-row { grid-template-columns: 3.2rem 1fr; font-size: 15px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand { font-size: 1.25rem; }
  .location { font-size: 0.62rem; letter-spacing: 0.1em; }
  .logo-img { width: 50px; height: 50px; }
  .brand-text { max-width: calc(100% - 74px); }
  .termin-card { flex-wrap: wrap; }
  .termin-theme { margin-left: 74px; }
}
