/* ============================================================
   ALPASANA DESIGN SYSTEM  ·  v1
   Wiederverwendbares Stylesheet für alle Alpasana-Projekte
   Quelle: https://www.alpasana.ch/assets/alpasana-design.css
   Lokal eingebunden für ki-console.com (Mutterseiten-Header).
   ============================================================ */

:root {
  /* Markenfarben */
  --alp-blue:         #269CD9;   /* Hauptakzent: Links, Buttons, Labels */
  --alp-blue-bright:  #2EA3F2;   /* helleres Blau: Logo, Hover */
  --alp-blue-dark:    #1C7CB0;   /* Button-Hover, aktive Zustaende */
  --alp-dark:         #232434;   /* dunkle Flaechen: Topbar, Footer, Overlays */
  --alp-dark-2:       #2C2D40;
  --alp-heading:      #232434;
  --alp-text:         #6E7077;
  --alp-muted:        #9AA0A6;
  --alp-bg:           #FFFFFF;
  --alp-bg-soft:      #F5F7FA;
  --alp-border:       #E6E9EF;

  /* Typografie */
  --alp-font-head:    'Rajdhani', 'Segoe UI', sans-serif;
  --alp-font-body:    'Rubik', 'Segoe UI', Arial, sans-serif;
  --alp-font-display: 'Squada One', 'Rajdhani', sans-serif;

  /* Form & Effekte */
  --alp-radius:    6px;
  --alp-radius-lg: 14px;
  --alp-shadow:    0 10px 30px rgba(35,36,52,.10);
  --alp-shadow-sm: 0 4px 14px rgba(35,36,52,.07);
  --alp-container: 1200px;
  --alp-transition: .2s ease;
}

/* ============================================================ BASIS */
.alp body, body.alp {
  font-family: var(--alp-font-body);
  color: var(--alp-text);
  line-height: 1.7;
  margin: 0;
}
.alp h1, .alp h2, .alp h3, .alp h4,
.alp .alp-h1, .alp .alp-h2 {
  font-family: var(--alp-font-head);
  color: var(--alp-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
}
.alp-uppercase { text-transform: uppercase; letter-spacing: .02em; }
.alp a { color: var(--alp-blue); text-decoration: none; transition: color var(--alp-transition); }
.alp a:hover { color: var(--alp-blue-dark); }
.alp-container { max-width: var(--alp-container); margin: 0 auto; padding: 0 20px; }

/* ============================================================ TOPBAR (dunkle Kontaktleiste) */
.alp-topbar {
  background: var(--alp-dark); color: rgba(255,255,255,.85);
  font-size: .85rem; padding: 9px 0;
}
.alp-topbar .alp-container { display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.alp-topbar a { color: rgba(255,255,255,.85); }
.alp-topbar a:hover { color: #fff; }
.alp-topbar .alp-ico { color: var(--alp-blue-bright); margin-right: 6px; }

/* ============================================================ HEADER / NAVIGATION */
.alp-header { background: #fff; border-bottom: 1px solid var(--alp-border); }
.alp-header .alp-container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.alp-logo img { height: 46px; width: auto; display: block; }
.alp-nav { display: flex; gap: 34px; }
.alp-nav a {
  font-family: var(--alp-font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--alp-heading); text-transform: none;
}
.alp-nav a:hover, .alp-nav a.active { color: var(--alp-blue); }

/* ============================================================ HERO (Foto-Banner mit Overlay) */
.alp-hero {
  position: relative; color: #fff; padding: 120px 0;
  background: var(--alp-dark) center/cover no-repeat;
}
.alp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(35,36,52,.82) 0%, rgba(35,36,52,.45) 60%, rgba(35,36,52,.15) 100%);
}
.alp-hero .alp-container { position: relative; z-index: 2; }
.alp-hero-label {
  font-family: var(--alp-font-head); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--alp-blue-bright); margin-bottom: 14px;
}
.alp-hero-label::before { content: '// '; }
.alp-hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700;
  text-transform: uppercase; margin-bottom: 18px;
}
.alp-hero p { font-size: 1.15rem; max-width: 560px; opacity: .92; }

/* ============================================================ SEKTIONEN */
.alp-section { padding: 90px 0; }
.alp-section--soft { background: var(--alp-bg-soft); }
.alp-section--dark { background: var(--alp-dark); color: rgba(255,255,255,.85); }
.alp-section--dark h2, .alp-section--dark h3 { color: #fff; }
.alp-section-label {
  font-family: var(--alp-font-head); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--alp-blue-dark); margin-bottom: 10px;
}
.alp-section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; }

/* ============================================================ BUTTONS */
.alp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--alp-font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 32px; border-radius: var(--alp-radius); border: 2px solid transparent;
  cursor: pointer; text-transform: uppercase; letter-spacing: .02em;
  transition: all var(--alp-transition);
}
.alp .alp-btn-primary { background: var(--alp-blue); color: #fff; }
.alp .alp-btn-primary:hover { background: var(--alp-blue-dark); color: #fff; }
.alp .alp-btn-outline { background: transparent; color: var(--alp-blue-dark); border-color: var(--alp-blue-dark); }
.alp .alp-btn-outline:hover { background: var(--alp-blue-dark); color: #fff; border-color: var(--alp-blue-dark); }
.alp .alp-btn-light { background: #fff; color: var(--alp-heading); }
.alp .alp-btn-light:hover { background: var(--alp-blue); color: #fff; }

/* ============================================================ CARDS */
.alp-card {
  background: #fff; border: 1px solid var(--alp-border); border-radius: var(--alp-radius-lg);
  padding: 32px; box-shadow: var(--alp-shadow-sm); transition: all var(--alp-transition);
}
a.alp-card:hover, .alp-card--interactive:hover { box-shadow: var(--alp-shadow); transform: translateY(-3px); }
.alp-form-card, .alp-form-card:hover { box-shadow: var(--alp-shadow); transform: none; }
.alp-card h3 { font-size: 1.25rem; text-transform: uppercase; }
.alp-grid { display: grid; gap: 26px; }
.alp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.alp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.alp-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* ============================================================ FORM-FELDER */
.alp-input, .alp-textarea, .alp-select {
  width: 100%; font-family: var(--alp-font-body); font-size: 1rem;
  padding: 13px 16px; border: 1.5px solid var(--alp-border); border-radius: var(--alp-radius);
  background: #fff; color: var(--alp-heading);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.alp-input:hover, .alp-textarea:hover, .alp-select:hover { border-color: #C7D0DC; }
.alp-input:focus, .alp-textarea:focus, .alp-select:focus {
  outline: none; border-color: var(--alp-blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(38, 156, 217, .16);
}
.alp-input::placeholder, .alp-textarea::placeholder { color: var(--alp-muted); }
.alp-field { margin-bottom: 18px; }
.alp-field:last-child { margin-bottom: 0; }
.alp-form-label {
  display: block; font-family: var(--alp-font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .01em; color: var(--alp-heading); margin-bottom: 7px;
}
.alp-form-label .opt { font-weight: 400; color: var(--alp-muted); }
.alp-hint { font-size: .78rem; color: var(--alp-muted); margin-top: 7px; }
.alp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .alp-field-row { grid-template-columns: 1fr; } }

/* ============================================================ FOOTER */
.alp-footer { background: var(--alp-dark); color: rgba(255,255,255,.7); padding: 60px 0 28px; }
.alp-footer a { color: rgba(255,255,255,.7); }
.alp-footer a:hover { color: #fff; }
.alp-footer h4 { color: #fff; font-family: var(--alp-font-head); text-transform: uppercase; letter-spacing: .05em; }
.alp-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ============================================================ RESPONSIVE */
@media (max-width: 1300px) {
  .alp-nav { display: none; }
}
@media (max-width: 900px) {
  .alp-hero { padding: 80px 0; }
  .alp-section { padding: 60px 0; }
}

/* ============================================================
   KI-Console Ergänzungen
   ============================================================ */
.alp-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--alp-heading);
}

.alp-logo:hover { color: var(--alp-heading); }

.ict-logo-text {
  display: grid;
  gap: 0;
  font-family: var(--alp-font-head);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: .95;
  color: var(--alp-heading);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.ict-logo-text span {
  font-size: .74rem;
  font-weight: 600;
  color: var(--alp-blue);
  letter-spacing: .08em;
}

.ict-header-right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.ict-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alp-nav-toggle,
.alp-nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: var(--alp-radius);
  background: var(--alp-dark);
  color: #fff;
  cursor: pointer;
  font: 700 1.25rem/1 var(--alp-font-head);
  transition: background var(--alp-transition), transform var(--alp-transition);
}

.alp-nav-toggle:hover,
.alp-nav-toggle:focus-visible,
.alp-nav-close:hover,
.alp-nav-close:focus-visible {
  background: var(--alp-blue-dark);
  outline: none;
}

.alp-nav-toggle:focus-visible,
.alp-nav-close:focus-visible,
.ict-header-right a:focus-visible,
.ict-header-actions button:focus-visible {
  outline: 3px solid rgba(38,156,217,.35);
  outline-offset: 3px;
}

.alp-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(35,36,52,.64);
  transition: opacity var(--alp-transition), visibility var(--alp-transition);
}

.alp-language-switcher .language-link {
  border-radius: 999px;
  padding: 2px 7px;
}

.alp-language-switcher .language-link.is-active {
  background: rgba(46,163,242,.18);
  color: #fff;
}

.alp-topbar .ki-topbar-inner {
  align-items: center;
  gap: 22px;
}

.alp-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, .8fr));
  gap: 34px;
}

.alp-footer-grid p {
  max-width: 430px;
  margin: 0;
}

.alp-footer-grid a {
  display: table;
  margin: 8px 0;
}

.alp-cookie-note {
  margin-top: 30px;
  font-size: .86rem;
  color: rgba(255,255,255,.58);
}

.alp-cookie-note a {
  color: rgba(255,255,255,.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1300px) {
  .alp-nav-toggle { display: inline-flex; }

  .ict-header-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(420px, 88vw);
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
    margin-left: 0;
    padding: 26px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -24px 0 60px rgba(35,36,52,.22);
    transform: translateX(105%);
    transition: transform .24s ease;
  }

  .ict-header-right.is-open { transform: translateX(0); }

  .alp-nav-backdrop.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .alp-nav-close {
    display: inline-flex;
    align-self: flex-end;
  }

  .ict-header-right .alp-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .ict-header-right .alp-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--alp-border);
    font-size: 1.2rem;
  }

  .ict-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ict-header-actions .alp-btn,
  .ict-header-actions form,
  .ict-header-actions form button {
    width: 100%;
  }

  body.alp-menu-open { overflow: hidden; }
}

@media (max-width: 780px) {
  .alp-topbar .ki-topbar-inner {
    justify-content: flex-start;
    gap: 10px 18px;
  }

  .alp-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 520px) {
  .alp-logo img {
    height: 40px;
  }

  .ict-logo-text {
    font-size: 1.25rem;
  }
}
