/* ==========================================================================
   AWA Digital – Stylesheet
   Ruhig, professionell, viel Weißraum, eine blaue Akzentfarbe.
   System-Fonts (keine externen Abhängigkeiten), mobile-first.
   ========================================================================== */

/* --- Design-Tokens ------------------------------------------------------- */
:root {
  /* Blau-Akzent */
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-50:     #eff6ff;
  --blue-100:    #dbeafe;

  /* Neutrale Töne */
  --ink:         #0f172a; /* Haupttext */
  --muted:       #475569; /* Sekundärtext */
  --bg:          #ffffff;
  --surface:     #f8fafc; /* dezente Flächen */
  --border:      #e2e8f0;

  /* Schatten (dezent) */
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg:   0 12px 32px rgba(15, 23, 42, 0.10);

  /* Maße */
  --radius:      14px;
  --radius-sm:   10px;
  --container:   1120px;

  --font-sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, "Helvetica Neue", sans-serif;
}

/* --- Reset / Basis ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

/* --- Layout-Hilfen ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 72px; }
.section--surface { background: var(--surface); }

.section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--lg { min-height: 54px; padding-inline: 30px; font-size: 1.05rem; }

/* --- Navbar -------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar__logo img { height: 34px; width: auto; }

.navbar__nav { display: none; }
.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.navbar__links a:hover { color: var(--ink); text-decoration: none; }

.navbar__cta { display: none; }

.navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

/* Mobile-Menü (eingeklappt) */
.navbar__mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 0 20px;
}
.navbar__mobile.is-open { display: block; }
.navbar__mobile ul { list-style: none; margin: 0 0 14px; padding: 0; }
.navbar__mobile a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  font-weight: 500;
}
.navbar__mobile a:hover { text-decoration: none; color: var(--blue); }
.navbar__mobile .btn { width: 100%; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: 64px 80px;
  background:
    radial-gradient(1200px 500px at 70% -10%, var(--blue-50), transparent 60%);
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__sub {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__note svg { color: var(--blue); flex-shrink: 0; }

/* Browser-Mockup mit echtem Projekt-Screenshot (verlinkt auf #referenzen) */
.mockup {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.mockup:hover {
  text-decoration: none;
  border-color: var(--blue-100);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mockup__bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #cbd5e1;
}
.mockup__screen { position: relative; }
.mockup__screen img {
  display: block;
  width: 100%;
  height: auto;
}
.mockup__badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* --- Karten-Grid (Problem) ---------------------------------------------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* --- Preispakete --------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__tag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan__price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue);
  margin: 4px 0 22px;
}
.plan__price small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.plan ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  flex: 1;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--muted);
}
.plan li svg { color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.plan .btn { width: 100%; margin-top: auto; }

/* --- Demo-Seiten ---------------------------------------------------------- */
.demo-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.demo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.demo-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}
.demo-card img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.demo-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 24px;
  flex: 1;
}
.demo-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}
.demo-card h3 { margin: 0; }
.demo-card__body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.demo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 600;
  color: var(--blue);
}
.demo-card:hover .demo-card__link { color: var(--blue-dark); }
.demo-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 36px 0 0;
}

/* --- Referenzen (echte Projekte, nutzen den Demo-Karten-Stil) ------------ */
.ref-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.ref-quote {
  margin: 0 0 12px;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Ablauf -------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
.ablauf__cta { text-align: center; margin-top: 48px; }

/* --- Über mich ----------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.about__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}
.about p { color: var(--muted); }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-50);
  color: var(--blue-dark);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- Kontakt (Formular + direkte Wege) ----------------------------------- */
.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  max-width: 960px;
  margin-inline: auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field__hint { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field textarea { resize: vertical; }
/* Honeypot: visuell verborgen, für Bots ein normales Feld */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-card__submit { width: 100%; }
.contact-card__promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.contact-card__promise svg { color: var(--blue); flex-shrink: 0; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}
.contact-aside h3 { margin-bottom: 4px; }
.contact-aside .btn { width: 100%; }
.contact-aside__points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-aside__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--muted);
}
.contact-aside__points svg { color: var(--blue); flex-shrink: 0; }

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding-block: 48px 32px;
}
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.footer__brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: #94a3b8; font-size: 0.92rem; max-width: 320px; }
.footer__col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* --- Rechtstexte (Impressum / Datenschutz) ------------------------------- */
.legal { padding-block: 56px 72px; }
.legal__content { max-width: 760px; margin-inline: auto; }
.legal__content h1 { margin-bottom: 28px; }
.legal__content h2 { font-size: 1.4rem; margin-top: 40px; }
.legal__content h3 { margin-top: 24px; }
.legal__content p,
.legal__content li { color: var(--muted); }
.legal__placeholder {
  background: var(--blue-50);
  border: 1px dashed var(--blue);
  border-radius: 8px;
  padding: 2px 8px;
  color: var(--blue-dark);
  font-weight: 600;
  font-style: normal;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* --- Responsive (Tablet ab 768px) --------------------------------------- */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .section { padding-block: 96px; }

  .navbar__nav { display: block; }
  .navbar__cta { display: inline-flex; }
  .navbar__toggle { display: none; }
  .navbar__mobile { display: none !important; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }

  .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .about__grid { grid-template-columns: 360px 1fr; }
}

/* --- Responsive (Desktop ab 1024px) ------------------------------------- */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Reduzierte Bewegung ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Scroll-Morph-Section
   ========================================================================== */
.morph { padding-top: 72px; }
.morph__cta { text-align: center; padding-block: 8px 72px; }

/* Scroll-gesteuerte Sequenz – gemeinsame Basis (Desktop + Mobile) */
.morph__scroll {
  position: relative;
  height: 300vh; /* Scroll-Strecke für die Sequenz */
}
.morph__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.morph__stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;   /* verhindert Layout-Shift */
}
/* Mobile-Variante: Hochformat, vertikal in den sticky-Viewport skaliert */
.morph__sticky--mobile {
  padding-top: 76px;      /* unter der Navbar */
  padding-bottom: 16px;
}
.morph__stage--mobile {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: calc(100vh - 100px);
  aspect-ratio: 652 / 1412;
}
.morph__canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.morph__demo,
.morph__compare figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Statischer Vorher/Nachher-Vergleich (nur bei reduzierter Bewegung) */
.morph__static {
  display: none;
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
}
.morph__compare { position: relative; margin: 0; }
.morph__compare img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.morph__static-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Anzeige-Logik – Standard (mobile-first, Bewegung ok): mobile Sequenz */
.morph__scroll { display: none; }
.morph__scroll--mobile { display: block; }

@media (min-width: 768px) {
  .morph { padding-top: 96px; }
  .morph__cta { padding-bottom: 96px; }
  .morph__scroll { display: block; }
  .morph__scroll--mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .morph__scroll,
  .morph__scroll--mobile { display: none; }
  .morph__static { display: grid; }
}
