/* ============================================
   hauptmann.schule — Stylesheet
   ============================================ */

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

:root {
  --ink:    #1c1c1c;
  --ink2:   #5a5a5a;
  --ink3:   #9a9a9a;
  --bg:     #f4f3f1;
  --bg2:    #eceae6;
  --bg3:    #e2e0db;
  --white:  #ffffff;
  --pink:   #8b1a5c;
  --pink-l: #f3e0ee;
  --border: rgba(0, 0, 0, 0.09);
  --radius: 14px;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Navigation ── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 54px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  font-size: 13px;
  color: var(--ink2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--bg2);
  color: var(--ink);
}

.nav-links a.cta {
  background: var(--pink);
  color: white;
  font-weight: 500;
  margin-left: 4px;
}

.nav-links a.cta:hover {
  background: #721550;
}

/* ── Hero ── */

.hero {
  padding: 52px 28px 44px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--pink);
}

h1 {
  font-size: 50px;
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h1 strong {
  font-weight: 500;
  color: var(--pink);
}

.hero-right {
  padding-bottom: 6px;
}

.hero-intro {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.8;
  font-weight: 300;
}

.hero-intro strong {
  color: var(--ink);
  font-weight: 400;
}

.hero-sig {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-sig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

.hero-sig-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-sig-role {
  font-size: 12px;
  color: var(--ink3);
  font-weight: 400;
  margin-top: 1px;
}

/* ── Sections ── */

.section {
  padding: 32px 28px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
}

.section-link {
  font-size: 12px;
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

/* ── Cards ── */

.cards-asymmetric {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.card.main {
  grid-row: 1 / 3;
  padding: 28px;
}

.card.main h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card.main p {
  font-size: 14px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}

.card-icon.pink  { background: var(--pink-l); }
.card-icon.stone { background: var(--bg2); }

.card.main .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 20px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

.card-sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 20px;
}

.sub-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--bg2);
  color: var(--ink2);
  font-weight: 400;
}

.card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.card-arrow {
  font-size: 13px;
  color: var(--ink3);
  transition: transform 0.15s, color 0.15s;
}

.card:hover .card-arrow {
  transform: translateX(3px);
  color: var(--pink);
}

/* ── Sketchnotes-Vorschau ── */

.sketch-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 680px;
}

.sketch-thumb {
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.sketch-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sketch-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg2);
}

.sketch-thumb img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.sketch-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.sketch-placeholder {
  width: 60%;
  height: 55%;
  border-radius: 6px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sketch-label {
  font-size: 11px;
  color: var(--ink2);
  padding: 8px 12px;
  font-weight: 400;
}

/* ── Footer ── */

footer {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--ink3);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ── Animationen ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left  { animation: fadeUp 0.4s ease both; }
.hero-right { animation: fadeUp 0.4s 0.07s ease both; }

.card.main         { animation: fadeUp 0.35s 0.08s ease both; }
.card:nth-child(2) { animation: fadeUp 0.35s 0.12s ease both; }
.card:nth-child(3) { animation: fadeUp 0.35s 0.16s ease both; }

.sketch-thumb:nth-child(1) { animation: fadeUp 0.35s 0.06s ease both; }
.sketch-thumb:nth-child(2) { animation: fadeUp 0.35s 0.10s ease both; }
.sketch-thumb:nth-child(3) { animation: fadeUp 0.35s 0.14s ease both; }
.sketch-thumb:nth-child(4) { animation: fadeUp 0.35s 0.18s ease both; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Sketchnotes-Galerie ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg2);
}

.gallery-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.gallery-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.gallery-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.gallery-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg2);
  color: var(--ink2);
  font-weight: 400;
}

.gallery-tag.pink {
  background: var(--pink-l);
  color: var(--pink);
}

.gallery-card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-link {
  font-size: 12px;
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-link:hover {
  text-decoration: underline;
}

/* Galerie-Animationen */
.gallery-card:nth-child(1) { animation: fadeUp 0.35s 0.04s ease both; }
.gallery-card:nth-child(2) { animation: fadeUp 0.35s 0.08s ease both; }
.gallery-card:nth-child(3) { animation: fadeUp 0.35s 0.12s ease both; }
.gallery-card:nth-child(4) { animation: fadeUp 0.35s 0.16s ease both; }
.gallery-card:nth-child(5) { animation: fadeUp 0.35s 0.20s ease both; }
.gallery-card:nth-child(6) { animation: fadeUp 0.35s 0.24s ease both; }
.gallery-card:nth-child(7) { animation: fadeUp 0.35s 0.28s ease both; }

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ── Informatik-Grid ── */

.informatik-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.informatik-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.informatik-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.informatik-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.informatik-card-header .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.informatik-card-header h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.informatik-card p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

.informatik-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.informatik-card .card-footer {
  margin-top: 14px;
}

.informatik-card:hover .card-arrow {
  transform: translateX(3px);
  color: var(--pink);
}

/* Animationen Informatik-Grid */
.informatik-card:nth-child(1) { animation: fadeUp 0.35s 0.04s ease both; }
.informatik-card:nth-child(2) { animation: fadeUp 0.35s 0.08s ease both; }
.informatik-card:nth-child(3) { animation: fadeUp 0.35s 0.12s ease both; }
.informatik-card:nth-child(4) { animation: fadeUp 0.35s 0.16s ease both; }
.informatik-card:nth-child(5) { animation: fadeUp 0.35s 0.20s ease both; }
.informatik-card:nth-child(6) { animation: fadeUp 0.35s 0.24s ease both; }

/* ── Inhaltsseiten (HTML-Unterordner) ── */

/* Seitenheader ohne Hero-Split */
.page-header {
  padding: 40px 28px 32px;
  border-bottom: 1px solid var(--border);
}

.page-header .hero-eyebrow {
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: 36px;
}

/* Unternavigation */
.subnav {
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}

.subnav a {
  font-size: 13px;
  color: var(--ink2);
  text-decoration: none;
  padding: 12px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  font-weight: 400;
}

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

.subnav a.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
  font-weight: 500;
}

/* Inhaltsbereich */
.content {
  padding: 36px 28px;
  max-width: 780px;
}

.content h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 12px;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
}

.content p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 12px;
}

.content p strong {
  color: var(--ink);
  font-weight: 500;
}

.content ul, .content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content li {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 4px;
}

.content li strong {
  color: var(--ink);
  font-weight: 500;
}

.content a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 400;
}

.content a:hover {
  text-decoration: underline;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* Code */
.content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  background: var(--bg2);
  color: var(--pink);
  padding: 2px 6px;
  border-radius: 5px;
}

.content pre {
  background: var(--ink);
  color: #e8e8e8;
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 1.65;
}

.content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Hinweisbox */
.content .hinweis {
  background: var(--pink-l);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.65;
}

.content .hinweis strong {
  color: var(--pink);
  font-weight: 500;
}

/* Beispielbox */
.content .beispiel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0 20px;
}

.content .beispiel-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 10px;
}

/* Weiterblättern-Navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.page-nav a {
  font-size: 13px;
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.page-nav .prev::before { content: '←'; }
.page-nav .next::after  { content: '→'; }

/* ── Kontaktseite ── */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.kontakt-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.kontakt-info h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.kontakt-info p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 12px;
}

.kontakt-info a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 400;
}

.kontakt-info a:hover {
  text-decoration: underline;
}

.kontakt-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.kontakt-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.kontakt-form h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 14px;
  transition: border-color 0.15s;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--pink);
}

.form-field textarea {
  height: 130px;
  resize: vertical;
}

.form-submit {
  background: var(--pink);
  color: white;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 9px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.form-submit:hover {
  background: #721550;
}

/* ── Platzhalter-Seiten ── */

.placeholder-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.placeholder-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.placeholder-box h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.placeholder-box p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.placeholder-link {
  font-size: 13px;
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
}

.placeholder-link:hover {
  text-decoration: underline;
}

/* ── Zwei-Karten-Layout (Startseite ohne Fortbildung) ── */

.cards-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cards-two .card.main {
  grid-row: auto;
}

.card-slim {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.card-slim .card-icon {
  margin-bottom: 0;
}

.card-slim h3 {
  margin-bottom: 2px;
}

.card-slim p {
  margin: 0;
}

.card-slim .card-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
