/* =========================================================
   StudyBuddy — mystudybuddy.at
   CI-Farben: Orange #FF6B1C · Graphit #1A1A1A · Soft White #F8F8F8 · Warm Grey #D9D9D9
   Schrift: Poppins
   ========================================================= */

:root {
  --orange: #FC4600;
  --orange-dark: #db3c00;
  --graphite: #1A1A1A;
  --soft-white: #F8F8F8;
  --warm-grey: #D9D9D9;
  --text: #1A1A1A;
  --text-muted: #5b5b5b;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  --shadow-soft: 0 8px 26px rgba(0, 0, 0, 0.07);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 50px; border: none;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(252,70,0,.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,26,26,.92); backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem;
  opacity: .85; transition: color .15s, opacity .15s;
}
.main-nav a:hover { color: var(--orange); opacity: 1; }
.header-cta { padding: 11px 22px; font-size: .95rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--graphite); color: #fff; overflow: hidden;
  padding: 70px 0 80px;
}
.hero-bg-shape {
  position: absolute; top: -10%; right: -5%; width: 55%; height: 120%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 1px, transparent 1.6px) 0 0/22px 22px,
    linear-gradient(135deg, transparent 35%, rgba(252,70,0,.18) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.hero-text h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 900; }
.hero-sub { margin: 22px 0 30px; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-claim { margin-top: 28px; font-size: .95rem; color: rgba(255,255,255,.6); font-weight: 500; }

.hero-image { position: relative; }
.hero-image img { width: 100%; border-radius: var(--radius-lg); }
.hero-badge {
  position: absolute; top: 6%; left: -6%;
  background: #fff; color: var(--graphite); font-weight: 700; font-size: .82rem;
  padding: 10px 16px; border-radius: 14px 14px 14px 2px; transform: rotate(-8deg);
  box-shadow: var(--shadow); line-height: 1.25; text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 1.08rem; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.72); }

.kicker {
  display: inline-block; color: var(--orange); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}

/* ---------- Benefits ---------- */
.benefits { background: var(--soft-white); }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.benefit {
  background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center;
  border: 1px solid #eee; transition: transform .18s ease, box-shadow .2s ease;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.benefit-icon { color: var(--orange); width: 56px; height: 56px; margin: 0 auto 16px; }
.benefit-icon svg { width: 100%; height: 100%; }
.benefit h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: .94rem; }

/* ---------- Lernorte (dark) ---------- */
.places { background: var(--graphite); }
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.place-card { background: #232323; border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease; }
.place-card:hover { transform: translateY(-6px); }
.place-img { height: 210px; background-size: cover; background-position: center; }
.place-body { padding: 24px 26px 30px; color: #fff; }
.place-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.place-body p { color: rgba(255,255,255,.7); font-size: .98rem; }

/* ---------- Fächer ---------- */
.subjects-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.subjects-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.subjects-intro p { color: var(--text-muted); margin-bottom: 26px; font-size: 1.06rem; }
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.subject-card {
  background: var(--soft-white); border: 1px solid #eee; border-radius: var(--radius);
  padding: 24px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--orange); }
.subject-card h4 { font-size: 1.15rem; margin-bottom: 6px; color: var(--orange); }
.subject-card p { color: var(--text-muted); font-size: .92rem; }

/* ---------- Ablauf ---------- */
.steps { background: var(--soft-white); }
.step-grid { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; max-width: 300px; text-align: center; }
.step-circle {
  width: 62px; height: 62px; border-radius: 50%; background: var(--graphite); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem;
  margin: 0 auto 18px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .96rem; }
.step-line { flex: 0 0 60px; height: 2px; background: var(--warm-grey); margin-top: 31px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--soft-white); border: 1px solid #eee; border-radius: var(--radius);
  padding: 4px 24px; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--orange); }
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 1.08rem;
  padding: 18px 0; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--orange); font-size: 1.6rem; font-weight: 700; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 20px; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--orange); color: #fff; padding: 50px 0; }
.cta-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-icon {
  width: 62px; height: 62px; background: #fff; color: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cta-icon svg { width: 30px; height: 30px; }
.cta-text { flex: 1; min-width: 240px; }
.cta-text h2 { font-size: 1.7rem; }
.cta-text p { opacity: .92; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #fff; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 44px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .95rem; }
.footer-brand .powered { color: var(--orange); font-weight: 600; margin-top: 10px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: #2b2b2b; color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .15s;
}
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

.footer-col h4 { font-size: 1.02rem; margin-bottom: 16px; color: #fff; }
.footer-col a { display: block; color: rgba(255,255,255,.65); text-decoration: none; font-size: .94rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--orange); }
.contact-line { display: flex !important; align-items: center; gap: 10px; }
.contact-line .ci { color: var(--orange); font-size: 1.05rem; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 46px; padding-top: 24px; border-top: 1px solid #2e2e2e;
  color: rgba(255,255,255,.5); font-size: .88rem;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-legal a:hover { color: var(--orange); }

/* ---------- Chatbot ---------- */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 12px 30px rgba(252,70,0,.5); transition: transform .2s;
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher-icon { width: 30px; height: 30px; }
.chat-launcher-close { display: none; font-size: 2rem; line-height: 1; font-weight: 300; }
.chat-launcher.open .chat-launcher-icon { display: none; }
.chat-launcher.open .chat-launcher-close { display: block; }

.chat-window {
  position: fixed; bottom: 100px; right: 24px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden; transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.chat-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-header { background: var(--graphite); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.chat-header img { height: 30px; }
.chat-status { color: #fff; font-size: .82rem; display: flex; align-items: center; gap: 7px; }
.chat-status i { width: 9px; height: 9px; border-radius: 50%; background: #46d369; display: inline-block; }
.chat-body { padding: 22px 20px 8px; background: var(--soft-white); }
.chat-bubble {
  background: #fff; border: 1px solid #ececec; border-radius: 4px 16px 16px 16px;
  padding: 15px 17px; font-size: .96rem; color: var(--text); box-shadow: var(--shadow-soft);
}
.chat-form { padding: 16px 20px 22px; background: var(--soft-white); display: flex; flex-direction: column; gap: 12px; }
.chat-form input {
  width: 100%; padding: 14px 16px; border: 2px solid #e3e3e3; border-radius: 12px;
  font-family: inherit; font-size: 1rem; transition: border-color .2s;
}
.chat-form input:focus { outline: none; border-color: var(--orange); }
.chat-form .btn { justify-content: center; }
.chat-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 16px; border-radius: 12px; background: #25D366; color: #fff;
  text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, transform .15s;
}
.chat-whatsapp:hover { background: #1ebe57; transform: translateY(-1px); }
.chat-whatsapp svg { width: 20px; height: 20px; }
.chat-hint { font-size: .76rem; color: var(--text-muted); text-align: center; }
.chat-hint a { color: var(--orange); }
.chat-error { color: #d33; font-size: .82rem; text-align: center; }
.chat-success { display: none; padding: 34px 24px 40px; text-align: center; background: var(--soft-white); }
.chat-success.show { display: block; }
.chat-success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--orange); color: #fff;
  font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.chat-success h4 { font-size: 1.25rem; margin-bottom: 8px; }
.chat-success p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Rechtliche Seiten (Impressum / Datenschutz) ---------- */
.legal-header { background: var(--graphite); padding: 18px 0; }
.legal-header .container { display: flex; align-items: center; justify-content: space-between; }
.legal-header img { height: 36px; }
.legal-header a.back { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; }
.legal-header a.back:hover { color: var(--orange); opacity: 1; }
.legal { padding: 60px 0 90px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--graphite); }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #333; font-size: 1rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--orange); }
.legal .placeholder { background: #fff3ec; border: 1px dashed var(--orange); border-radius: 8px; padding: 2px 8px; color: var(--orange-dark); font-weight: 600; }
.legal .note { background: var(--soft-white); border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 8px; font-size: .92rem; color: var(--text-muted); margin: 18px 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { max-width: 460px; margin: 0 auto; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .place-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .subjects-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .step-line { display: none; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--graphite); padding: 18px 24px; gap: 4px; border-top: 1px solid #2e2e2e;
  }
  .main-nav.open a { padding: 12px 0; opacity: 1; }
  .nav-toggle { display: flex; margin-left: auto; }
  .section { padding: 64px 0; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .subject-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text { min-width: 0; }
}

@media (max-width: 420px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .chat-window { right: 12px; bottom: 90px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}
