/* ==========================================================================
   Computeria Innerschwyz — Apple-inspired design system
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-secondary: #f7f5f3;
  --bg-tertiary: #faf8f6;
  --text: #3a3836;
  --text-secondary: #726f6c;
  --text-tertiary: #8f8b88;
  --accent: #a41e22;
  --accent-hover: #8c1a1e;
  --accent-active: #7a1519;
  --accent-tint: rgba(164, 30, 34, 0.1);
  --charcoal: #4a4a48;
  --charcoal-dark: #383735;
  --border: #ddd9d5;
  --border-light: #eae6e2;
  --dark-bg: #383735;
  --dark-bg-2: #4a4a48;
  --dark-text: #f7f5f3;
  --dark-text-secondary: #c9c5c1;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --nav-height: 72px;
  --font-head: "Quicksand", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .nav-links a, .nav-mobile a, .btn {
  font-family: var(--font-head);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-height);
  background: var(--bg-secondary);
  border-bottom: 3px solid var(--accent);
}

.nav-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 700; }

.nav-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--bg-secondary);
  z-index: 499;
  padding: 24px;
  overflow-y: auto;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li { border-bottom: 1px solid var(--border-light); }

.nav-mobile a {
  display: block;
  padding: 18px 4px;
  font-size: 27px;
  font-weight: 700;
}

/* ---------- Hero (Logo ist der Blickfang) ---------- */
.hero, .page-hero {
  position: relative;
  padding: 44px 24px 34px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.hero-logo {
  max-width: 620px;
  width: 92%;
  margin: 0 auto 20px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.page-hero .hero-logo {
  max-width: 560px;
  width: 88%;
  margin-bottom: 18px;
}

/* Eyebrow wird nicht mehr verwendet — das Logo tragt den Namen bereits */
.hero-eyebrow { display: none; }

.hero h1 {
  font-size: clamp(22px, 2.6vw, 25px);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  line-height: 1.4;
  color: var(--text);
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 8px auto 20px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.page-hero h1 {
  font-size: clamp(22px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  color: var(--accent);
}

.page-hero h1::before {
  content: "› ";
}

.page-hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 8px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 30px;
  border-radius: 980px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-tint); }

.btn-light {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-light:hover { background: var(--bg-secondary); }


/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--bg-secondary); }
section.dark { background: var(--dark-bg-2); color: var(--dark-text); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 25px);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.section-head p {
  font-size: 22px;
  color: var(--text-secondary);
  margin: 0;
}

.dark .section-head p { color: var(--dark-text-secondary); }

h2.title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

h3.subtitle {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.grid.centered > * {
  flex: 1 1 260px;
  max-width: 320px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.card h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.card p { margin: 0; color: var(--text-secondary); font-size: 20px; }

.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--bg-secondary);
}

.media-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.media-card h3 { font-size: 23px; margin: 0 0 8px; font-weight: 800; }
.media-card p { color: var(--text-secondary); font-size: 19.5px; flex: 1; margin: 0 0 16px; }
.media-card .btn { align-self: flex-start; }

/* ---------- Agenda / list items ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
}

.event-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--border-light);
}

.event-date {
  font-weight: 800;
  color: var(--text);
  font-size: 20px;
}

.event-date .time {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 18.5px;
  margin-top: 2px;
}

.event-title { font-size: 22px; font-weight: 700; }

.event-row .btn { padding: 11px 24px; font-size: 18px; }

.notice {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  color: var(--text-secondary);
  font-size: 20px;
  margin-top: 28px;
}

/* ---------- Table-style contact / info blocks ---------- */
.info-table {
  border-top: 1px solid var(--border-light);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border-light);
}

.info-row .label {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 700;
}

.info-row .value {
  font-size: 18px;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.info-row .value a.link { color: var(--accent); }
.info-row .value a.link:hover { text-decoration: underline; }

a.link { color: var(--accent); font-weight: 700; }
a.link:hover { text-decoration: underline; }

/* ---------- Simple list ---------- */
ul.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

ul.check-list li {
  padding-left: 30px;
  position: relative;
  font-size: 21px;
  color: var(--text);
}

ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

ul.check-list.negative li::before { content: "✗"; }

/* ---------- Nummerierte Schrittliste ---------- */
ol.step-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

ol.step-list li {
  position: relative;
  padding-left: 46px;
}

ol.step-list li .num {
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

ol.step-list li strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

ol.step-list li .desc {
  display: block;
  color: var(--text-secondary);
  font-size: 17px;
  margin-top: 2px;
}

/* ---------- Ampel-Badge (Grün/Gelb/Rot) ---------- */
.ampel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.ampel-badge .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ampel-badge.gruen { background: #eaf3de; color: #3b6d11; }
.ampel-badge.gruen .dot { background: #3b6d11; }
.ampel-badge.gelb { background: #faeeda; color: #854f0b; }
.ampel-badge.gelb .dot { background: #d99a1f; }
.ampel-badge.rot { background: #fcebeb; color: #a32d2d; }
.ampel-badge.rot .dot { background: var(--accent); }

.tool-subtitle {
  color: var(--text-tertiary, var(--text-secondary));
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 24px 0 4px;
}

/* ---------- Einfache Datentabelle ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table th {
  text-align: left;
  background: var(--bg-secondary);
  padding: 10px 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
.data-table { overflow-x: auto; display: block; }
.data-table thead, .data-table tbody { display: table; width: 100%; table-layout: fixed; }

/* ---------- Bewertungsbalken ---------- */
.rating-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rating-row .rating-label { font-size: 14px; color: var(--text-secondary); }
.rating-bar { height: 8px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
.rating-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.rating-row .rating-value { font-size: 13px; color: var(--text-tertiary); }

/* ---------- Board / people ---------- */
.people-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.person-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
}

.person-card .name { font-weight: 800; font-size: 21px; margin-bottom: 4px; }
.person-card .role { color: var(--text-secondary); font-size: 19px; }

/* ---------- Form (static, non-submitting) ---------- */
.form-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 20px;
  font-family: var(--font);
  background: #fff;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(164, 30, 34, 0.15);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 19px;
  color: var(--text-secondary);
}

.checkbox-field input { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Sponsor logos ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
}

.sponsor-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  transition: box-shadow 0.2s ease;
}

.sponsor-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07); }
.sponsor-card img { max-height: 60px; width: auto; }

/* ---------- Blog list ---------- */
.blog-list {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--border-light);
}

.blog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border-light);
  font-size: 21px;
}

.blog-row a { color: var(--text); }
.blog-row a:hover { color: var(--accent); }

.badge {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}

/* ---------- Map ---------- */
.map-frame {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
}

/* ---------- Footer ---------- */
footer { margin: 0; }

.footer-hero {
  position: relative;
  padding: 56px 24px 48px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.footer-brand img {
  max-width: 320px;
  width: 68%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin: 0 auto;
}

.footer-tagline {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 22px auto 0;
  max-width: 420px;
}

.footer-social {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover { background: var(--accent-hover); transform: translateY(-2px); }

.footer-bottom {
  background: var(--bg-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 17.5px;
  color: var(--text-tertiary);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Passwortschutz (Sichtschutz, kein echter Serverschutz) ---------- */
.password-gate { text-align: center; }
.password-gate .lock-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.password-gate h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.password-gate p { color: var(--text-secondary); font-size: 17px; margin: 0 0 20px; }
.pw-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 380px; margin: 0 auto; }
.pw-input {
  flex: 1 1 200px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 18px;
  font-family: var(--font);
}
.pw-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(164, 30, 34, 0.15); }
.pw-error { display: none; color: var(--accent); font-size: 15px; margin-top: 14px; }

/* ---------- Intro-Text (Original-Stil) ---------- */
.intro-text {
  text-align: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 18px; color: var(--text-tertiary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .event-row { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .event-row .btn { justify-self: start; }
}

@media (max-width: 600px) {
  body { font-size: 21px; }
  .hero { padding: 90px 20px 64px; }
  section { padding: 56px 0; }
  .form-card { padding: 24px; }
}
