/* ==========================================================================
   AI-CONNECTOR.org — Landing Page
   Look adaptiert vom Webinterface (Design-Tokens v1, 2026-04-19)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --aic-accent:         #3a6ea5;
  --aic-accent-hover:   #325e8f;
  --aic-accent-dark:    #2c5a8a;
  --aic-accent-soft:    #d5e8f5;

  --aic-bg:             #f5f5f5;
  --aic-surface:        #fff;
  --aic-surface-alt:    #f8f9fa;

  --aic-border:         #e9ecef;
  --aic-border-soft:    #eef1f5;

  --aic-text:           #222;
  --aic-text-muted:     #555;
  --aic-text-dim:       #888;
  --aic-text-inverse:   #fff;

  --aic-dark-contact:   #454545;
  --aic-dark-footer:    #2c2c2c;

  --aic-radius-sm:      6px;
  --aic-radius-md:      10px;
  --aic-radius-lg:      12px;

  --aic-shadow-sm:      0 1px 4px rgba(0,0,0,.08);
  --aic-shadow-md:      0 4px 12px rgba(0,0,0,.08);

  --header-height:      52px;
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Roboto'; font-weight: 300; font-style: normal;
  src: url('../fonts/Roboto-Light.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto'; font-weight: 400; font-style: normal;
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto'; font-weight: 500; font-style: normal;
  src: url('../fonts/Roboto-Medium.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto'; font-weight: 700; font-style: normal;
  src: url('../fonts/Roboto-Bold.ttf') format('truetype');
  font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--aic-text);
  background: var(--aic-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--aic-accent); text-decoration: none; }
a:hover { color: var(--aic-accent-hover); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; color: var(--aic-text); }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--aic-accent);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  gap: 10px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.header-brand .logo {
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.header-brand .brand-text {
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .5px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.btn-header {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--aic-radius-sm);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  font-family: inherit;
}
.btn-header:hover { background: rgba(255,255,255,.28); color: #fff; }

@media (max-width: 560px) {
  .header-brand .brand-text { font-size: 17px; }
  .btn-header { padding: 0 10px; font-size: 12px; height: 32px; white-space: nowrap; }
}
/* Zwei Menüpunkte (Aktuelles, Kontakt) passen auf schmalen Telefonen nur ohne Schriftzug — das Logo bleibt. */
@media (max-width: 420px) {
  .header-brand .brand-text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  padding-top: var(--header-height);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,40,.15) 0%, rgba(10,20,40,.35) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  margin-top: calc((100vh - var(--header-height)) * 0.42 - 120px);
  padding: 0 20px;
  width: 100%;
}
.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 9px;
  opacity: 0;
  animation: fadeInLogo 2s ease .2s forwards;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.5));
}
.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 500;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0;
  animation: fadeInLogo 2s ease .4s forwards;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  margin-top: 14px;
  letter-spacing: 1px;
  color: #fff;
  opacity: 0;
  animation: fadeInLogo 1s ease 1.8s forwards;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

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

@media (max-width: 1024px) {
  .hero-logo { width: 180px; height: 180px; }
}
@media (max-width: 768px) {
  .hero-logo { width: 170px; height: 170px; }
  .hero-content { margin-top: 20vh; }
}
@media (max-width: 480px) {
  .hero-logo { width: 150px; height: 150px; }
}

/* ---------- Section base ---------- */
.section {
  padding: 80px 20px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Content section (light gray bg) ---------- */
.section-content {
  background: var(--aic-bg);
}
.section-content .container {
  max-width: 1200px;
}

.content-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
  color: var(--aic-accent);
  letter-spacing: .5px;
}
.content-headline-icon {
  width: clamp(32px, 4vw, 44px);
  height: clamp(32px, 4vw, 44px);
  flex-shrink: 0;
  color: var(--aic-accent);
}
.content-lead {
  text-align: center;
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 780px;
  margin: 0 auto 56px;
  color: var(--aic-text-muted);
  font-weight: 300;
}

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

.card {
  background: var(--aic-surface);
  border: 1px solid var(--aic-border);
  border-radius: var(--aic-radius-md);
  box-shadow: var(--aic-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--aic-shadow-md);
}
.card.card-wide { grid-column: 1 / -1; }
.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  padding: 14px 20px;
  min-height: 76px;
  color: #fff;
  background: #2c2c2c;
  display: flex; align-items: center; gap: 10px;
  line-height: 1.3;
  letter-spacing: .3px;
}
.card h3 .card-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  color: #fff;
}
.card-body {
  padding: 22px 24px 24px;
}
.card-body p {
  color: var(--aic-text-muted);
  margin-bottom: 10px;
}
.card-body p:last-child { margin-bottom: 0; }
/* Legacy-Fallback: Karten ohne .card-body bekommen direkt Abstand */
.card > p,
.card > ul,
.card > table {
  padding-left: 24px;
  padding-right: 24px;
}
.card > p:first-of-type,
.card > h3 + p,
.card > h3 + ul,
.card > h3 + table { padding-top: 22px; }
.card > *:last-child:not(h3) { padding-bottom: 24px; }

.feature-list {
  list-style: none;
  margin-top: 12px;
}
.feature-list li {
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--aic-border-soft);
  position: relative;
  color: var(--aic-text-muted);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 6px; height: 6px;
  border-radius: 0;
  background: var(--aic-accent);
}

.channel-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}
.channel-table th,
.channel-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--aic-border);
}
.channel-table th {
  background: var(--aic-surface-alt);
  color: var(--aic-text);
  font-weight: 500;
}
.channel-table tr:last-child td { border-bottom: none; }

/* Datenschutz content */
.prose {
  background: var(--aic-surface);
  border: 1px solid var(--aic-border);
  border-radius: var(--aic-radius-md);
  padding: 36px 40px;
  box-shadow: var(--aic-shadow-sm);
  line-height: 1.7;
}
.prose h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  color: var(--aic-accent);
  letter-spacing: .5px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  margin: 20px 0 8px;
  color: var(--aic-text);
}
.prose p { margin-bottom: 14px; color: var(--aic-text-muted); }
.prose ul { margin: 10px 0 14px 22px; color: var(--aic-text-muted); }
.prose li { margin-bottom: 6px; }

@media (max-width: 768px) {
  .section { padding: 50px 16px; }
  .prose { padding: 24px 20px; }
}

/* ---------- Contact section (dark #454545, full bleed) ---------- */
.section-contact {
  background: var(--aic-dark-contact);
  color: #f0f0f0;
  padding: 80px 20px;
}
.section-contact .container { max-width: 1100px; }
.contact-head {
  text-align: center;
  margin-bottom: 48px;
}
.contact-head h2 {
  color: #fff;
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.contact-head p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
  font-weight: 300;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: .5px;
}
.contact-info-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  align-items: flex-start;
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .label {
  color: rgba(255,255,255,.55);
  min-width: 120px;
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-info-row .value {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.contact-info-row .value a { color: #fff; text-decoration: none; }
.contact-info-row .value a:hover { color: var(--aic-accent-soft); text-decoration: underline; }

.contact-form h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: .5px;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin-bottom: 5px;
  letter-spacing: .3px;
}
.form-group label .req { color: #ffb199; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--aic-radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.14);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 26px;
  border-radius: var(--aic-radius-sm);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s;
}
.btn-submit:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
}
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

.form-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.form-result {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--aic-radius-sm);
  font-size: 14px;
  display: none;
}
.form-result.ok {
  display: block;
  background: rgba(72,187,120,.18);
  border: 1px solid rgba(72,187,120,.5);
  color: #b6ecd1;
}
.form-result.err {
  display: block;
  background: rgba(239,83,80,.18);
  border: 1px solid rgba(239,83,80,.5);
  color: #ffc5c2;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Footer ---------- */
#site-footer {
  background: var(--aic-dark-footer);
  color: #fff;
  padding: 22px 20px;
  position: relative;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.footer-left {
  color: rgba(255,255,255,.75);
  letter-spacing: .3px;
}
.footer-left a {
  color: rgba(255,255,255,.75);
  margin-left: 8px;
  transition: color .15s;
}
.footer-left a:hover {
  color: #fff;
  text-decoration: underline;
}
.scroll-top {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.scroll-top:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}
.scroll-top svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-logo, .hero-title, .hero-subtitle { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}


/* Caret-Color: blinkender Text-Cursor global aus, nur in Eingabefeldern aktiv. Markieren/Kopieren bleibt. */
* { caret-color: transparent; }
input, textarea, select, [contenteditable]:not([contenteditable="false"]) { caret-color: auto; }

/* ---------- Häufige Fragen (FAQ) ----------
   Bildet das FAQPage-Schema im <head> von index.php sichtbar ab. Beides gehört zusammen:
   ein Schema ohne sichtbare Entsprechung wertet Google als Verstoss.
   Bewusst schlicht, damit der Block sich zwischen Inhalt und Kontakt einfügt. */
.section-faq {
  background: var(--aic-surface);
  padding: 80px 20px;
}
.section-faq .container { max-width: 1000px; }
.faq-head { text-align: center; margin-bottom: 38px; }
.faq-head h2 { margin: 0; }
.faq-liste { display: grid; gap: 22px; }
.faq-eintrag {
  padding: 22px 26px;
  background: var(--aic-surface-alt);
  border: 1px solid var(--aic-border);
  border-radius: 12px;
}
.faq-eintrag h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--aic-accent);
}
.faq-eintrag p {
  margin: 0;
  color: var(--aic-text-muted);
  line-height: 1.65;
}

@media (min-width: 860px) {
  .faq-liste { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section-faq { padding: 56px 16px; }
  .faq-eintrag { padding: 18px 18px; }
}