/* =========================================================================
   Marcel Stadlhofer – IT & Websites für Betriebe im Ennstal
   Static implementation of the "Ennstal IT Website" design (high-fidelity 1:1)
   ========================================================================= */

:root {
  --acc: #1d6ff2;
  --acc-hover: #0b4fbc;
  --acc-soft: rgba(29, 111, 242, .1);

  --ink: #0f1b2d;      /* headlines            */
  --ink-2: #26364b;    /* strong body text     */
  --body: #4f5c6e;     /* default body text    */
  --line: #e4eaf2;     /* card borders         */
  --light-blue: #8fc0ff;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Hanken Grotesk", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

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

input, textarea, button { font: inherit; color: inherit; }
::placeholder { color: #93a0b3; }
::selection { background: var(--acc); color: #fff; }

img { max-width: 100%; }

h1, h2, h3 { font-family: Poppins, Helvetica, sans-serif; }

/* Layout helpers ---------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; }

.section { padding: clamp(56px, 8vw, 104px) 24px; }
.section--light { background: #ffffff; }
.section--alt   { background: #f4f7fb; }
.section--dark  { background: #0d1a2c; }

.eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acc);
}
.eyebrow--light { color: var(--light-blue); }

.section-head { max-width: 680px; }
.section-head--wide { max-width: 700px; }

.h2 {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: clamp(27px, 4.6vw, 42px);
  line-height: 1.14;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.h2--light { color: #ffffff; }

.lead {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
}
.lead--light { color: rgba(255, 255, 255, .78); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: filter .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--acc); color: #ffffff; }
.btn--primary:hover { color: #ffffff; filter: brightness(1.07); transform: translateY(-1px); }

.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, .6); color: #ffffff; }
.btn--outline-light:hover { color: #ffffff; background: rgba(255, 255, 255, .14); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0 12px;
  background: transparent;
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  background: #ffffff;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 0 10px 30px -18px rgba(15, 27, 45, .35);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  font-family: Poppins, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--acc);
}
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .16s ease;
}
.nav-link:hover { color: var(--acc); }
.nav-dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--acc);
  display: inline-block;
}
.nav-cta {
  margin-left: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav-cta:hover { background: var(--ink); color: #ffffff; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  background-color: #12233c;
  background-image: url('https://d8j0ntlcm91z4.cloudfront.net/user_3HSX1o2l1QDMhQftA3XDtE1tLr8/hf_20260804_172506_d3884de2-878c-4419-804a-2cd20eccc390.png');
  background-size: cover;
  background-position: 72% center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 18, 32, .9) 0%, rgba(9, 18, 32, .72) 46%, rgba(9, 18, 32, .3) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 110px) 24px;
}
.hero-title {
  margin: 18px 0 0;
  max-width: 820px;
  font-weight: 700;
  font-size: clamp(34px, 7.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #ffffff;
  text-wrap: balance;
}
.hero-sub {
  margin: 20px 0 0;
  max-width: 600px;
  font-size: clamp(16.5px, 2.3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================================
   Über mich
   ========================================================================= */
.about-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about-photo-wrap { display: flex; justify-content: flex-start; }
.about-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 172 / 178;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #e9edf3;
  box-shadow: 0 18px 34px -24px rgba(15, 27, 45, .5);
}
.about-text p {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  text-wrap: pretty;
}
.about-text p + p { margin-top: 14px; }
.about-text strong { color: var(--ink); font-weight: 600; }

.checklist { margin-top: 26px; display: grid; gap: 12px; }
.check-item { display: flex; gap: 12px; align-items: center; }
.check-item span:last-child { font-size: 16px; color: var(--ink-2); }
.check-badge {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   Leistungen / Ablauf shared grid + cards
   ========================================================================= */
.grid-head { margin-bottom: 40px; }

.card-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}
.card {
  padding: 28px 26px 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: 0 18px 34px -28px rgba(15, 27, 45, .4);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(29, 111, 242, .45); }
.card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.64;
  color: var(--body);
  text-wrap: pretty;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--acc-soft);
  color: var(--acc);
  font-family: Poppins, Helvetica, sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   Projekte
   ========================================================================= */
.project-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 34px -28px rgba(15, 27, 45, .4);
  transition: transform .2s ease, border-color .2s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: rgba(29, 111, 242, .45); }
.project-media {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.project-media--hugofit { background-color: #0d1117; }
.project-media--cmdb    { background-color: #0d1a2c; }
.project-media--placeholder {
  padding: 14px;
  background-color: #e9edf3;
  background-image: repeating-linear-gradient(135deg, rgba(15, 27, 45, .05) 0 10px, rgba(15, 27, 45, 0) 10px 20px);
}
.project-media--placeholder span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #7d8a9d;
}
.project-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.project-title {
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.project-desc {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--body);
}

/* =========================================================================
   Ablauf – steps
   ========================================================================= */
.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 18px;
}
.step {
  padding: 30px 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.step h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.64; color: var(--body); }
.step-num {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   Kontakt
   ========================================================================= */
.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 18px;
  align-items: start;
}
.form {
  padding: 28px 26px 30px;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input, .field textarea {
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #f8fafd;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; font-family: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--acc); background: #ffffff; }

.form-submit {
  margin-top: 4px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--acc);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 54px;
  transition: filter .18s ease;
}
.form-submit:hover { filter: brightness(1.07); }
.form-status {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b7889;
  min-height: 1em;
}

.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #ffffff;
  min-height: 54px;
  transition: border-color .18s ease;
}
a.contact-card:hover { color: #ffffff; border-color: rgba(143, 192, 255, .6); }
.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--light-blue);
}
.contact-value {
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.contact-note { font-size: 14.5px; color: rgba(255, 255, 255, .7); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { padding: 28px 24px 34px; background: #0a1421; }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  gap: 14px 26px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 14.5px; color: rgba(255, 255, 255, .6); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.footer-links a:hover { color: var(--light-blue); }

/* =========================================================================
   Modals (Impressum / Datenschutz)
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 26, .72);
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  max-width: 680px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  margin: 20px 0;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
.modal h2 {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.02em;
}
.modal h3 {
  margin: 22px 0 4px;
  font-family: Poppins, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.modal p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.modal .muted { font-size: 14px; color: #7d8a9d; }

/* =========================================================================
   Scroll-reveal
   ========================================================================= */
[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal] {
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal].is-hidden { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { justify-content: center; }
  .about-photo { max-width: 260px; }
}
