/* Immanuel-Kant-Schule Neumünster – inoffizielle Infoseite.
   Design laut Handoff „design_handoff_iks_neumuenster“. Schriften selbst gehostet. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --paper: #f4f1ea;
  --paper-alt: #ebe6da;
  --card: #faf8f3;
  --ink: #1b2230;
  --text-alt: #2e3544;
  --muted: #454c5b;
  --muted-2: #5b6272;
  --on-dark-muted: #c7cbd4;
  --line: #d8d2c4;
  --line-2: #d0c9b8;
  --line-3: #b9b2a2;
  --line-dark: #3a4254;
  --red: #b3261e;
  --link: #1d3a6b;
  --gold: #c9b98f;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

img {
  display: block;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pretty {
  text-wrap: pretty;
}

.mono-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h2 {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
}

.h2.tight {
  margin-bottom: 12px;
}

.intro {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--muted);
  max-width: 40em;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
}

/* ---------- Banner ---------- */

.banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--red);
  color: #fff;
}

.banner-inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

.banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  text-wrap: pretty;
}

.banner p span {
  font-weight: 400;
}

.banner a {
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
}

.brand-text {
  font-size: 14px;
  line-height: 1.3;
}

.brand-text strong {
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--red);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 72px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.lead {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 34em;
  text-wrap: pretty;
}

.quote {
  margin: 0;
  border-top: 1.5px solid var(--ink);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
}

.quote figure {
  margin: 0;
}

.quote img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  filter: grayscale(0.2);
  background: var(--paper-alt);
}

.quote figcaption {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted-2);
}

.quote figcaption a {
  color: var(--muted-2);
}

.quote-text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

.quote footer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- Gebäudefoto ---------- */

.photo {
  padding-bottom: 56px;
}

.photo figure {
  margin: 0;
}

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  background: var(--paper-alt);
}

.photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* ---------- Faktenleiste ---------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}

.facts-grid {
  padding-top: 28px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 0;
  margin-bottom: 0;
}

.facts-grid div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.facts-grid dd {
  margin: 0;
}

.fact-value {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
}

.fact-label {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */

.contact {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
}

.contact h2 {
  margin-bottom: 20px;
}

.address {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  font-style: normal;
}

.map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
}

.contact dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 16px;
  line-height: 1.5;
  align-content: start;
}

.contact dt {
  color: var(--muted-2);
}

.contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.small-muted {
  color: var(--muted-2);
  font-size: 14px;
}

.leitung {
  border-left: 1.5px solid var(--ink);
  padding-left: 20px;
  align-self: start;
}

.leitung .mono-label {
  margin-bottom: 6px;
  color: var(--muted-2);
}

.leitung-name {
  margin: 0;
  font-size: 20px;
}

.leitung-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Dunkle Sektionen ---------- */

.dark {
  background: var(--ink);
  color: var(--paper);
}

.dark .wrap {
  padding-top: 72px;
  padding-bottom: 72px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.profile-grid > div {
  background: var(--ink);
  padding: 24px;
}

.profile-grid .mono-label,
.dark h3.mono-label {
  color: var(--gold);
}

.profile-grid p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Unterricht ---------- */

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px 48px;
}

.col-grid + .col-grid {
  margin-top: 56px;
}

.subject {
  border-top: 1.5px solid var(--ink);
  padding-top: 16px;
}

.h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.subject p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-alt);
  text-wrap: pretty;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.tags li {
  border: 1px solid var(--line-3);
  padding: 5px 11px;
  font-size: 14px;
  background: var(--card);
}

.tags.strong li {
  border-color: var(--ink);
  background: transparent;
}

.note {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Geschichte ---------- */

.history {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history .wrap {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
}

.timeline,
.alumni {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.timeline .year {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--red);
}

.timeline .event {
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.alumni li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.alumni-name {
  font-size: 17px;
  font-weight: 500;
}

.alumni-desc {
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Online ---------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
}

.link-card:hover {
  background: var(--ink);
  color: var(--paper);
}

.link-card-title {
  font-size: 17px;
  font-weight: 600;
}

.link-card-desc {
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Andere Kant-Schulen ---------- */

.dark .intro {
  color: var(--on-dark-muted);
  max-width: 44em;
  margin-bottom: 36px;
}

.dark h3.mono-label {
  margin-bottom: 14px;
}

.same-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.same-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--gold);
}

.same-city {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
}

.same-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.same-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 14px;
}

.same-links a {
  color: var(--paper);
}

.same-links a:hover {
  color: var(--gold);
}

.related {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  column-gap: 32px;
}

.related li {
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 0;
  font-size: 15px;
}

.related-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
}

.related-links a {
  color: var(--gold);
}

.related-links a:hover {
  color: var(--paper);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 56px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  text-wrap: pretty;
}

.site-footer ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.footer-legal {
  margin-top: 12px !important;
}

/* ---------- Rechtstexte / 404 ---------- */

.legal {
  max-width: 780px;
  padding-top: 72px;
  padding-bottom: 72px;
  font-size: 16px;
  line-height: 1.65;
}

.legal h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
}

.legal h2 {
  margin: 36px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.legal p {
  margin: 0 0 12px;
}

.ph {
  background: #fbe3a8;
  padding: 0 4px;
}
