/* ══════════════════════════════════════════════════════════════
   artedu.ch – Stylesheet
   Plakativ · hochkontrastig · gestalterisch
   Display: Anton  ·  UI/Text: Archivo  ·  Akzent: Orange
   ══════════════════════════════════════════════════════════════ */

:root {
  --black:   #0A0A0A;
  --ink:     #141414;
  --paper:   #FFFFFF;
  --smoke:   #F4F4F2;
  --line:    #E2E2DE;
  --muted:   #6B6B66;
  --accent:  #FF4B12;   /* Orange */
  --accent2: #E13A05;

  --font-display: 'Anton', 'Archivo', sans-serif;
  --font-ui:      'Archivo', system-ui, sans-serif;

  --maxw: 1280px;
  --pad:  clamp(20px, 5vw, 64px);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--black);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout-Helfer ─────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section--dark { background: var(--black); color: var(--paper); }
.section--smoke { background: var(--smoke); }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }

.section-title { font-size: clamp(40px, 7vw, 92px); }
.section-lead { font-size: clamp(17px, 2vw, 21px); max-width: 60ch; color: var(--muted); margin-top: 26px; }
.section--dark .section-lead { color: #B9B9B4; }

/* ── Buttons (Pills) ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 34px; border-radius: 100px;
  border: 2px solid var(--black); background: var(--black); color: var(--paper);
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--paper); border-color: var(--black); }
.section--dark .btn { background: var(--paper); color: var(--black); border-color: var(--paper); }
.section--dark .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.section--dark .btn--ghost { background: transparent; color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--black); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--black); display: block; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); position: relative; }
.hero-kicker {
  font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(58px, 14vw, 200px);
  letter-spacing: -.01em;
}
.hero-title .em { color: var(--accent); }
.hero-lead { font-size: clamp(18px, 2.2vw, 24px); max-width: 64ch; color: var(--muted); margin: 34px 0 40px; line-height: 1.5; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap;
  padding: 16px 0; border-top: 2px solid var(--black); border-bottom: 2px solid var(--black);
}
.marquee-track { display: inline-block; animation: scroll 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: 26px; text-transform: uppercase; letter-spacing: .04em; padding: 0 6px;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Pillars (3 Bereiche) ──────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.pillar { padding: clamp(30px, 4vw, 52px); border-right: 1px solid var(--line); transition: background .25s, color .25s; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--black); color: var(--paper); }
.pillar .num { font-family: var(--font-display); font-size: 16px; color: var(--accent); margin-bottom: 26px; display: block; }
.pillar h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1; margin-bottom: 16px; }
.pillar p { color: var(--muted); font-size: 16px; }
.pillar:hover p { color: #C9C9C4; }

/* ── Stats ─────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 14px 0; border-top: 2px solid currentColor; }
.stat .val { font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); line-height: .9; }
.stat .lbl { font-size: 14px; color: #B9B9B4; max-width: 24ch; margin-top: 10px; }

/* ── Services ──────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  background: var(--paper); padding: clamp(28px, 3.4vw, 46px);
  display: flex; flex-direction: column; min-height: 320px;
  transition: background .3s ease, color .3s ease; position: relative; overflow: hidden;
}
.service.is-featured { grid-column: span 2; }
.service:hover { background: var(--black); color: var(--paper); }
.service-tag {
  align-self: flex-start; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 100px; padding: 6px 14px; margin-bottom: 26px;
}
.service h3 { font-size: clamp(30px, 4vw, 56px); line-height: .94; margin-bottom: 14px; }
.service .summary { font-weight: 600; font-size: 18px; margin-bottom: 14px; }
.service p.desc { color: var(--muted); font-size: 16px; margin-bottom: 26px; max-width: 62ch; }
.service:hover p.desc { color: #C9C9C4; }
.service-foot { margin-top: auto; }
.service-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: gap .2s;
}
.service-link:hover { gap: 16px; }
.service-link .arr { color: var(--accent); }
.service-thumb { margin: -8px 0 24px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16/8; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .service-thumb img { transform: scale(1.05); }

/* ── About ─────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about-text p { font-size: clamp(17px, 1.6vw, 20px); color: #C9C9C4; margin-bottom: 20px; }
.about-text p:last-child { margin-bottom: 0; }

/* ── Kontakt ───────────────────────────────────────────────── */
.contact { text-align: left; }
.contact .big {
  font-family: var(--font-display); text-transform: uppercase; line-height: .9;
  font-size: clamp(44px, 9vw, 130px); margin-bottom: 28px;
}
.contact .big a { transition: color .2s; }
.contact .big a:hover { color: var(--accent); }
.contact-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; border-top: 1px solid #333; padding-top: 28px; }
.contact-meta .k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-meta .v { font-size: 18px; font-weight: 600; }
.contact-meta .v a:hover { color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--black); color: #9C9C97; padding: 40px 0; border-top: 1px solid #222; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-row a { color: #9C9C97; font-size: 14px; transition: color .2s; }
.footer-row a:hover { color: var(--accent); }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: var(--paper); text-transform: uppercase; }

/* ── Reveal-Animation ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); padding: 24px var(--pad); gap: 18px; border-bottom: 1px solid var(--line);
  }
  .services { grid-template-columns: 1fr; }
  .service.is-featured { grid-column: span 1; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   LOGIN & ADMIN
   ══════════════════════════════════════════════════════════════ */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--black); padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--paper); padding: 44px; }
.auth-card .brand { font-size: 38px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 30px; font-size: 15px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-ui); font-size: 16px; padding: 13px 15px;
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 0; transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 13px 16px; margin-bottom: 20px; font-size: 14px; font-weight: 600; border-left: 4px solid; }
.alert--err { background: #FFF1ED; border-color: var(--accent2); color: var(--accent2); }
.alert--ok  { background: #ECF7EE; border-color: #2E7D32; color: #1E5E22; }

/* Admin-Layout */
.admin-body { background: var(--smoke); min-height: 100vh; }
.admin-top {
  background: var(--black); color: var(--paper); padding: 0;
  position: sticky; top: 0; z-index: 50;
}
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.admin-top .brand { color: var(--paper); font-size: 24px; }
.admin-top .brand span { color: var(--accent); }
.admin-top .tools { display: flex; gap: 10px; align-items: center; }
.admin-top .tools a { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C9C9C4; }
.admin-top .tools a:hover { color: var(--accent); }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 30px 0; flex-wrap: wrap; }
.tabs a {
  padding: 12px 22px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs a.active { color: var(--black); border-color: var(--accent); }
.tabs a:hover { color: var(--black); }

.card { background: var(--paper); border: 1px solid var(--line); padding: 28px; margin-bottom: 22px; }
.card h3 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; margin-bottom: 4px; }
.card .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.svc-admin { border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; background: #FCFCFB; }
.svc-admin .svc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.svc-admin .svc-head strong { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; }

.row-actions { display: flex; gap: 8px; align-items: center; }
.mini {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 14px; border: 1.5px solid var(--black); background: var(--paper); cursor: pointer; transition: all .2s;
}
.mini:hover { background: var(--black); color: var(--paper); }
.mini--danger { border-color: var(--accent2); color: var(--accent2); }
.mini--danger:hover { background: var(--accent2); color: #fff; }
.checkline { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.checkline input { width: auto; }

.admin-foot { padding: 40px 0 80px; }
.save-bar {
  position: sticky; bottom: 0; background: var(--paper); border-top: 2px solid var(--black);
  padding: 16px 0; margin-top: 20px; z-index: 40;
}
.save-bar .wrap { display: flex; justify-content: flex-end; gap: 12px; }
.thumb-preview { max-width: 180px; border: 1px solid var(--line); margin-top: 10px; }
