/* Casimir Eigensatz Stiftung – Stil */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-tight-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-tight-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #000;
  --paper: #fff;
  --grey: #6b6b6b;
  --pad: clamp(20px, 3.2vw, 40px);
  --maxw: 1360px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }

/* Kopf */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.site-header .wrap { height: 80px; display: flex; align-items: center; }
.site-header a { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
@media (max-width: 640px) { .site-header .wrap { height: 64px; } .site-header a { font-size: 15px; } }

/* Einstieg */
.hero { padding: clamp(80px, 14vw, 200px) 0 clamp(40px, 6vw, 90px); }
.hero p {
  margin: 0 0 clamp(14px, 2vw, 28px);
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.12; letter-spacing: -0.02em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 8.4vw, 112px);
  font-weight: 300; line-height: 1; letter-spacing: -0.035em;
}

/* Lead */
.lead { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); }
.lead p {
  margin: 0; max-width: 1150px;
  font-size: clamp(21px, 2.35vw, 30px);
  line-height: 1.55; letter-spacing: -0.01em;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(18px, 2.2vw, 28px) 0;
  font-size: clamp(21px, 1.9vw, 24px); font-weight: 700; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px; margin-right: 6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translateY(-4px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .answer { padding: 0 0 clamp(22px, 2.5vw, 32px); max-width: 1150px; }
.faq .answer p { margin: 0; }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Abschnitte */
.section { padding: clamp(56px, 7vw, 96px) 0 0; scroll-margin-top: 64px; }
.section h2 {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
}

/* Formular */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; max-width: 860px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 16px; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel] {
  font: inherit; font-size: 18px; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 8px 0; background: transparent; outline: none;
}
.field input:focus { border-bottom-width: 2px; padding-bottom: 7px; }
.field .hint { font-size: 14px; color: var(--grey); margin-top: 6px; }
.file {
  border-bottom: 1px solid var(--ink); padding: 8px 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.file input[type=file] { font: inherit; font-size: 16px; max-width: 100%; }
.file input[type=file]::file-selector-button {
  font: inherit; font-size: 16px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0; padding: 6px 14px; margin-right: 14px; cursor: pointer;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  font: inherit; font-size: 18px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 0;
  width: 300px; max-width: 100%; height: 48px; margin-top: 8px;
}
.btn:disabled { opacity: .55; cursor: progress; }
.btn:hover:not(:disabled) { background: #222; }
.notice { max-width: 860px; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.45; margin: 0; }
.error { color: #b00020; font-size: 16px; margin: 0; grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn { width: 100%; }
}

/* Kontakt */
.contact address { font-style: normal; }
.contact p { margin: 0 0 14px; }

/* Fuss */
.site-footer { padding: clamp(64px, 8vw, 110px) 0 32px; }
.site-footer .rule { margin-bottom: 20px; }
.site-footer p { margin: 0 0 12px; font-size: 16px; }

/* Impressum */
.legal { padding: clamp(56px, 7vw, 96px) 0 0; }
.legal h1 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; margin: 0 0 clamp(24px, 3vw, 36px); letter-spacing: -0.025em; line-height: 1.1; }
.legal h2 { font-size: clamp(21px, 1.9vw, 24px); font-weight: 700; margin: clamp(40px, 5vw, 64px) 0 14px; letter-spacing: -0.015em; }
.legal p { margin: 0 0 20px; max-width: 760px; }

/* Verwaltung */
.admin table { border-collapse: collapse; width: 100%; font-size: 16px; }
.admin th, .admin td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.admin th { border-bottom: 1px solid var(--ink); font-weight: 700; }
.admin .muted { color: var(--grey); }
.admin form.inline { display: inline; }
.admin .linkbtn { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; }
.admin .tablewrap { overflow-x: auto; }
