/* Erasmus+ – öffentliches Design */
:root {
  --eu-blue: #003399;
  --eu-blue-dark: #002266;
  --eu-blue-mid: #1a4dad;
  --eu-yellow: #ffcc00;
  --eu-yellow-soft: #ffe566;
  --sky: #e8f0fb;
  --sky-2: #f5f8fd;
  --text: #1a2332;
  --muted: #5a6b80;
  --border: #c5d4e8;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 51, 153, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
}

a { color: var(--eu-blue-mid); text-decoration: none; }
a:hover { color: var(--eu-blue); }

.container { max-width: 980px; margin: 0 auto; padding: 0 1.4rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--eu-yellow);
  box-shadow: 0 2px 12px rgba(0,51,153,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--eu-blue);
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--eu-blue);
}

.brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: 0.15s;
}

nav a:hover {
  background: var(--sky);
  color: var(--eu-blue);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.75rem 0 3.25rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,204,0,0.25) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(0,51,153,0.08) 0%, transparent 45%),
    linear-gradient(180deg, var(--sky) 0%, var(--white) 100%);
  overflow: hidden;
}



.hero-inner { max-width: 620px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--eu-blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero-badge::before {
  content: "★";
  color: var(--eu-yellow);
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--eu-blue-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  max-width: 52ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn-primary {
  display: inline-block;
  background: var(--eu-blue);
  color: var(--white) !important;
  font-weight: 700;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: 2px solid var(--eu-blue);
  transition: 0.15s;
}

.btn-primary:hover {
  background: var(--eu-blue-dark);
  border-color: var(--eu-blue-dark);
}

.btn-yellow {
  display: inline-block;
  background: var(--eu-yellow);
  color: var(--eu-blue-dark) !important;
  font-weight: 700;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: 2px solid var(--eu-yellow);
  transition: 0.15s;
}

.btn-yellow:hover {
  background: var(--eu-yellow-soft);
}

.btn-ghost {
  display: inline-block;
  font-weight: 700;
  color: var(--eu-blue) !important;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  transition: 0.15s;
}

.btn-ghost:hover {
  border-color: var(--eu-blue);
  background: var(--sky);
}

/* Sections */
.section { padding: 3.25rem 0; }

.section-header { margin-bottom: 1.75rem; }

.section-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--eu-blue-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-header p { color: var(--muted); }

/* Feature strip */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: -1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.feature .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 750;
  color: var(--eu-blue);
  margin-bottom: 0.3rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Posts */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow);
  border-color: #9bb5d9;
  transform: translateY(-2px);
}

.post-card .thumb {
  aspect-ratio: 16/10;
  background: var(--sky);
  overflow: hidden;
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-mid) 100%);
  color: var(--eu-yellow);
  font-size: 2rem;
}

.post-card .body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }

.post-card h3 {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--eu-blue-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.post-card:hover h3 { color: var(--eu-blue-mid); }

.post-card .excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 0.75rem;
}

.post-card .meta {
  font-size: 0.8rem;
  color: #8a9bb0;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--sky-2);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  color: var(--muted);
}

/* Content pages */
.page-content, .post-detail {
  padding: 2.5rem 0 3.5rem;
  max-width: 720px;
}

.page-content h1, .post-detail h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--eu-blue-dark);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.post-detail .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--eu-yellow);
}

.post-detail .hero-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-detail .hero-image img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.content { font-size: 1.05rem; line-height: 1.75; }
.content p { margin-bottom: 1.1rem; }
.content h2 { font-size: 1.3rem; color: var(--eu-blue); margin: 1.75rem 0 0.65rem; }
.content ul, .content ol { margin: 0 0 1.1rem 1.3rem; }
.content li { margin-bottom: 0.35rem; }

.pdf-box {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--sky);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pdf-box strong { color: var(--eu-blue-dark); }
.pdf-box span { color: var(--muted); font-size: 0.9rem; display: block; }

/* Teaser */
.info-teaser {
  background: var(--eu-blue);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.info-teaser::before {
  content: "★★★★★★★★★★★★";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: var(--eu-yellow);
  opacity: 0.35;
  pointer-events: none;
}

.info-teaser h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.info-teaser p {
  color: rgba(255,255,255,0.8);
  max-width: 48ch;
  margin-bottom: 1.35rem;
}

/* Footer */
.site-footer {
  background: var(--eu-blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 2rem 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  margin-left: 1rem;
  font-size: 0.9rem;
}

.site-footer a:hover { color: var(--eu-yellow); }

.site-footer .logo-mini {
  height: 28px;
  opacity: 0.9;
}

.error-page { text-align: center; padding: 5rem 0; }
.error-page h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}

@media (max-width: 700px) {
  .brand-text { display: none; }
  .brand img { height: 36px; }
  nav a { padding: 0.35rem 0.55rem; font-size: 0.82rem; }
  .features { margin-top: 1.5rem; }
}

/* ===== Barrierefreiheit, Ankündigung, Filter, Suche, Termine, Kontakt, Wartung ===== */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; padding: .6rem 1rem; background: #fff; color: #003399; font-weight: 700; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.announce { position: relative; padding: .6rem 0; font-size: .92rem; background: #e8f0ff; color: #002266; border-bottom: 1px solid #cddcfb; }
.announce .container { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: center; padding-right: 2.6rem; }
.announce a { font-weight: 700; color: inherit; text-decoration: underline; }
.announce-warn { background: #fff4d6; color: #5c4300; border-color: #f2dc9b; }
.announce-success { background: #e3f6ea; color: #0f5132; border-color: #bfe5cd; }
.announce-x { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .7; }
.announce-x:hover { opacity: 1; }
.announce[hidden] { display: none; }
.nav-search { display: inline-flex; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .9rem; border-radius: 999px; border: 1.5px solid #d6e0f5; background: #fff; color: #003399; font-size: .88rem; font-weight: 650; text-decoration: none; }
.chip em { font-style: normal; font-size: .75rem; opacity: .6; }
.chip:hover, .chip.is-on { background: #003399; border-color: #003399; color: #fff; }
.chip-tag { color: #4a5a7a; }
.chip-sm { padding: .15rem .65rem; font-size: .8rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.2rem; }
.post-nav-a { display: block; padding: .9rem 1.1rem; border: 1px solid #d6e0f5; border-radius: 14px; text-decoration: none; color: inherit; }
.post-nav-a small { display: block; color: #5a6a8a; font-weight: 700; margin-bottom: .2rem; }
.post-nav-a span { font-weight: 700; color: #003399; }
.post-nav-a.is-next { text-align: right; grid-column: 2; }
.post-nav-a:hover { background: #f3f7ff; }
.related { margin-top: 2.6rem; }
.related h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.search-form { display: flex; gap: .6rem; margin: 0 0 1.5rem; max-width: 640px; }
.search-form input { flex: 1; padding: .8rem 1rem; border: 1.5px solid #cfd9ef; border-radius: 12px; font: inherit; }
.search-count { color: #5a6a8a; margin-bottom: 1rem; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-width: 760px; }
.search-results li { padding-bottom: 1.1rem; border-bottom: 1px solid #e3eaf8; }
.search-results a { font-size: 1.12rem; font-weight: 750; color: #003399; text-decoration: none; }
.search-results a:hover { text-decoration: underline; }
.search-results p { margin: .3rem 0 0; color: #4a5a7a; font-size: .95rem; }
.search-results mark { background: #ffec99; color: inherit; padding: 0 .1em; border-radius: 3px; }
.search-kind { display: inline-block; margin-right: .5rem; padding: .1rem .55rem; border-radius: 999px; background: #e8f0ff; color: #003399; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }

.event-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.event { display: flex; gap: 1rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #dfe7f7; border-radius: 16px; box-shadow: 0 6px 22px rgba(0, 51, 153, .06); }
.event-date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: #003399; color: #fff; padding: .5rem 0; }
.event-date b { font-size: 1.6rem; line-height: 1; }
.event-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #ffd617; font-weight: 800; }
.event-body { min-width: 0; }
.event-body h3 { margin: 0 0 .15rem; font-size: 1.08rem; }
.event-rel { font-style: normal; font-size: .72rem; font-weight: 800; padding: .1rem .55rem; border-radius: 999px; background: #ffd617; color: #1a2332; vertical-align: middle; }
.event-meta { margin: 0; color: #5a6a8a; font-size: .9rem; }
.event-desc { margin: .45rem 0 0; }
.event-actions { margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .88rem; }
.event-link { font-weight: 700; color: #003399; }
.event-past { margin-top: 2rem; }
.event-past summary { cursor: pointer; font-weight: 700; color: #5a6a8a; }
.event-list.is-past { opacity: .65; }

.contact-page { max-width: 640px; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 650; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { padding: .75rem .9rem; border: 1.5px solid #cfd9ef; border-radius: 12px; font: inherit; width: 100%; }
.contact-form .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .92rem; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.notice { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.2rem; }
.notice-ok { background: #e3f6ea; color: #0f5132; }
.notice-err { background: #fde8e8; color: #7a1c1c; }

.maintenance-body { background: linear-gradient(180deg, #e8f0ff, #fff); min-height: 100vh; }
.maintenance { max-width: 520px; margin: 0 auto; padding: 18vh 1.5rem 3rem; text-align: center; }
.maintenance h1 { margin: 1.4rem 0 .6rem; color: #002266; }
.maintenance-sub { color: #5a6a8a; font-size: .92rem; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav-a.is-next { grid-column: 1; text-align: left; } .search-form { flex-direction: column; } }
@media print { .announce, .site-header, .site-footer, .post-nav, .related, .skip-link { display: none !important; } }
