/* ==========================================================
   Handelskolleg – Stylesheet
   Schwarz-Weiß, minimalistisch, ohne externe Ressourcen
   ========================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../fonts/pt-serif-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/pt-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/pt-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Grundwerte ---------- */
:root {
  --black: #000;
  --white: #fff;
  --grey: #5c5c5c;      /* Nebentext, erfüllt WCAG-Kontrast */
  --line: #d9d9d9;      /* feine Linien */
  --tint: #f4f4f4;      /* Bild-Platzhalter, Hinterlegungen */
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --wide: 72rem;
  --text: 40rem;
  --gap: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .3em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--black); color: var(--white); padding: .5rem 1rem;
}
.skip:focus { left: 1rem; }

/* ---------- Kopfbereich ---------- */
.site-header {
  border-bottom: 1px solid var(--black);
}
.site-header .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gap);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.brand { text-decoration: none; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.9rem;   /* gleich breit wie die Unterzeile */
  line-height: 1;
  margin-bottom: .2rem;
}
.brand-tag {
  display: block;
  font-size: .85rem;
  color: var(--grey);
  letter-spacing: .02em;
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
}
.nav li { margin: 0; }
.nav a {
  text-decoration: none;
  font-size: 1rem;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--black); }

/* ---------- Layout ---------- */
main { display: block; }

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gap);
}
.section + .section { border-top: 1px solid var(--line); }

.intro { max-width: var(--text); }
.lead { font-size: 1.25rem; }
.kicker {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .75rem;
}

/* Bild + Text nebeneinander, abwechselnd */
.feature {
  display: grid;
  gap: var(--gap);
  align-items: center;
}
.feature + .feature { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(even) .feature-img { order: 2; }
}
.feature-text { max-width: var(--text); }

/* Bilder: einheitliches Format, schwarz-weiß */
.feature-img img,
.img-wide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--tint);
  filter: grayscale(1) contrast(1.05);
}
/* Wer farbige Bilder möchte: die Zeile "filter: …" oben löschen. */

/* Liste ohne Punkte, mit feiner Linie */
.list-clean {
  list-style: none; padding: 0;
  border-top: 1px solid var(--black);
}
.list-clean li {
  margin: 0;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}

/* Nummerierte Schritte */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; margin: 0; border-top: 1px solid var(--black); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: .5rem;
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.2rem; }

/* Link-Button */
.more {
  display: inline-block;
  margin-top: .5rem;
  padding: .7rem 1.4rem;
  border: 1px solid var(--black);
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.more:hover { background: var(--black); color: var(--white); }
.more::after { content: " →"; }

/* Kontaktblock (schwarz) */
.contact-band {
  background: var(--black);
  color: var(--white);
}
.contact-band .section { border: 0; }
.contact-band a { color: var(--white); }
.contact-lines {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.5;
  margin: 0;
}

/* Rechtstexte */
.legal { max-width: var(--text); }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.legal p, .legal li { font-size: 1rem; }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--black);
  font-size: 1rem;
}
.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gap);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer address strong { font-family: var(--serif); font-size: 1.15rem; }
.footer-legal { font-size: .85rem; color: var(--grey); }
.footer-legal a { color: var(--grey); }

/* ---------- Druck ---------- */
@media print {
  .nav, .skip, .more { display: none; }
  .contact-band { background: none; color: #000; }
  .contact-band a { color: #000; }
}

/* Ergänzungen */
.feature-img { margin: 0; }
.contact-band .kicker { color: #bbb; }
address { font-style: normal; }

/* ---------- Fixierte Kopfzeile + Menü mit drei Balken ---------- */
html { scroll-padding-top: 6rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
}
.menu-toggle { display: none; }

@media (max-width: 51.99rem) {
  .site-header .inner {
    flex-wrap: nowrap;
    align-items: center;
    padding-top: .8rem;
    padding-bottom: .8rem;
  }
  .brand-name { font-size: 1.4rem; }
  .brand-tag { display: none; }   /* schmale Leiste auf dem Handy */

  .js .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -.5rem;
    padding: 0;
    background: none;
    border: 0;
    color: var(--black);
    cursor: pointer;
  }
  .bars,
  .bars::before,
  .bars::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    transition: transform .2s, background .2s;
  }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after  { top: 7px; }
  /* geöffnet: Balken werden zum X */
  .is-open .bars { background: transparent; }
  .is-open .bars::before { transform: translateY(7px) rotate(45deg); }
  .is-open .bars::after  { transform: translateY(-7px) rotate(-45deg); }

  /* Menü ausklappen */
  .js .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--black);
    margin-top: 1px;
  }
  .js .is-open .nav { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; padding: 0 var(--gap) .5rem; }
  .js .nav li { border-top: 1px solid var(--line); }
  .js .nav li:first-child { border-top: 0; }
  .js .nav a {
    display: block;
    padding: .9rem 0;
    font-size: 1.15rem;
    border-bottom: 0;
  }
  .js .nav a[aria-current="page"] { font-weight: 700; }
}

/* ---------- Banner auf der Startseite ---------- */
.banner { margin: 0; }
.banner img {
  width: 100%;
  height: clamp(11rem, 32vw, 24rem);
  object-fit: cover;
  object-position: 50% 40%;
  background: var(--tint);
  filter: grayscale(1) contrast(1.05);   /* für Farbe: diese Zeile löschen */
}
.banner + .section { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Personen (Über uns) ---------- */
.people {
  display: grid;
  gap: var(--gap);
  margin-top: 1.5rem;
}
@media (min-width: 40rem) { .people { grid-template-columns: 1fr 1fr; } }
.person { margin: 0; }
.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--tint);
  filter: grayscale(1) contrast(1.05);
  margin-bottom: 1rem;
}
.person h3 { margin-bottom: .3rem; }
.person p { color: var(--grey); }
.people { max-width: 44rem; }

/* ---------- Sprachumschalter DE / EN ---------- */
.lang {
  margin: 0;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--grey);
  display: flex;
  gap: .35rem;
  align-items: center;
}
.lang a { text-decoration: none; color: var(--grey); padding: .2rem .1rem; }
.lang a:hover { color: var(--black); text-decoration: underline; }
.lang a[aria-current] { color: var(--black); font-weight: 700; }
.site-header .inner { position: relative; }
.lang-top {
  position: absolute;
  top: .6rem;
  right: var(--gap);
}
.footer-legal { text-align: right; }
.footer-legal p { margin: 0; }
.footer-legal .lang { justify-content: flex-end; margin-bottom: .4rem; }

@media (max-width: 51.99rem) {
  .lang-top {
    position: static;
    margin-left: auto;
    margin-right: .5rem;
  }
  .footer-legal { text-align: left; }
  .footer-legal .lang { justify-content: flex-start; }
}

/* Englische Unterzeile ist kürzer: auf Titelbreite ausgleichen */
html[lang="en-GB"] .brand-tag { font-size: .95rem; letter-spacing: .108em; }
