/* ==========================================================================
   Prolute – statische Website im Stil der bisherigen Screenr-Seite
   Kein WordPress, kein PHP, keine Datenbank, kein JavaScript.
   Farben und Aufbau orientieren sich an der alten Seite:
   dunkler Header, gelbe Navigation, großes Logo im Hero,
   hellgraue Abschnitte, zentrierte Montserrat-Überschriften.
   ========================================================================== */

:root {
  --dark: #2d2d2d;
  --header: #474747;
  --footer: #111111;
  --footer-bar: #222222;
  --light: #f8f9f9;
  --white: #ffffff;
  --text: #666666;
  --heading: #444444;
  --muted: #6b6b6b;
  --line: #e9e9e9;
  --yellow: #eeee22;
  --yellow-hover: #efe121;
  --orange: #e86240;
  --orange-dark: #c2410c;
  --container: 1140px;
  --sans: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--orange-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 15px;
  color: var(--heading);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1.2em;
}

::selection {
  background: var(--yellow);
  color: var(--dark);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 200;
  padding: 10px 15px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

/* --------------------------------------------------------------------------
   Header – dunkelgrau, Logo links, gelbe Navigation rechts
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  background: var(--header);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 85px;
}

.site-branding {
  display: block;
  flex: none;
  line-height: 0;
}

.site-branding img {
  width: 70px;
  height: 70px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: flex;
  align-items: center;
  height: 85px;
  padding: 0 17px;
  color: var(--yellow);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
  background: var(--yellow-hover);
  color: var(--dark);
  text-decoration: none;
}

.main-navigation a[aria-current="page"] {
  background: var(--yellow-hover);
  color: var(--dark);
}

/* --------------------------------------------------------------------------
   Hero – großes Original-Logo als Hintergrund, dunkler Overlay
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  overflow: hidden;
  background-color: var(--dark);
  background-image: url("/assets/img/prolute-logo.png");
  background-image: image-set(
    url("/assets/img/prolute-logo.webp") type("image/webp"),
    url("/assets/img/prolute-logo.png") type("image/png")
  );
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: #000;
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 760px;
  margin: 20px auto 0;
  color: #fff;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.92;
}

.hero-next {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  animation: hero-bounce 2.2s ease-in-out infinite;
}

.hero-next:hover {
  background: rgba(238, 238, 34, 0.2);
  border-color: var(--yellow);
}

.hero-next span {
  display: block;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* --------------------------------------------------------------------------
   Abschnitte – zentrierte Überschriften wie im alten Theme
   -------------------------------------------------------------------------- */

.section {
  padding: 80px 0;
  background: var(--white);
}

.section-light {
  background: var(--light);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-title {
  margin: 0 0 12px;
  color: var(--heading);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.section-desc {
  max-width: 720px;
  margin: 15px auto 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Leistungen – weiße Karten auf hellem Grund
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin-inline: auto;
}

.service-card {
  padding: 35px 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.service-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--orange);
}

.service-icon svg {
  display: block;
  width: 42px;
  height: 42px;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.service-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.service-card-network {
  border-color: #e8df9a;
  background: #fffdf0;
}

/* --------------------------------------------------------------------------
   Über – Text und Steckbrief
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 50px;
  align-items: start;
  max-width: 1020px;
  margin-inline: auto;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.about-copy p:first-child {
  color: var(--heading);
  font-size: 18px;
}

.fact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.fact-card h3 {
  margin: 0 0 20px;
  color: var(--heading);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.fact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 15px;
}

.fact-list dt {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--light);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-actions {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  border-color: #424242;
  background: #424242;
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  border-color: #424242;
  background: transparent;
  color: #424242;
}

.btn-secondary:hover {
  background: #424242;
  color: #fff;
  text-decoration: none;
}

.contact-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Footer – dunkel wie bisher
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer);
  color: #888;
  font-size: 14px;
}

.site-info {
  padding: 21px 0;
  border-top: 1px solid #333;
  background: var(--footer-bar);
  color: #999;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.footer-links a {
  color: var(--orange);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.privacy-note {
  color: #999;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Unterseiten / Rechtstexte
   -------------------------------------------------------------------------- */

.page-header {
  padding: 35px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--light);
  text-align: center;
}

.page-title {
  margin: 0;
  color: var(--heading);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-content {
  padding: 60px 0 80px;
  background: var(--white);
}

.prose {
  max-width: 800px;
  margin-inline: auto;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

.prose h2 {
  margin: 35px 0 12px;
  color: var(--heading);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--orange-dark);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--orange);
}

.prose address {
  margin: 0 0 18px;
  font-style: normal;
  line-height: 1.8;
}

.prose .note {
  margin: 25px 0;
  padding: 15px 20px;
  border-left: 3px solid var(--yellow);
  background: #fffbe6;
  color: var(--heading);
  font-size: 14px;
}

.prose .legal-meta {
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  padding: 30px 0 10px;
  text-align: center;
}

.error-code {
  margin-bottom: 10px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
}

.error-page h1 {
  margin: 0 0 15px;
  color: var(--heading);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
}

.error-page p {
  max-width: 600px;
  margin: 0 auto 25px;
  color: var(--text);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 10px 0;
    gap: 5px;
  }

  .site-branding img {
    width: 56px;
    height: 56px;
  }

  .main-navigation {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-navigation::-webkit-scrollbar {
    display: none;
  }

  .main-navigation ul {
    width: max-content;
    min-width: 100%;
  }

  .main-navigation a {
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  html {
    scroll-padding-top: 130px;
  }

  .hero {
    min-height: 440px;
    background-attachment: scroll;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 15px;
  }

  .section {
    padding: 55px 0;
  }

  .section-head {
    margin-bottom: 35px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-desc {
    font-size: 17px;
  }

  .hero {
    min-height: 360px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-next {
    bottom: 18px;
    width: 40px;
    height: 40px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .fact-card {
    padding: 24px;
  }

  .fact-list div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
  }

  .page-header {
    padding: 28px 0;
  }

  .page-title {
    font-size: 24px;
  }

  .page-content {
    padding: 45px 0 60px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .error-code {
    font-size: 64px;
  }

  .error-page h1 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-next,
  .btn,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: 0;
    padding: 20px 0;
    background: none;
  }

  .hero::before {
    display: none;
  }

  .hero-title {
    color: #000;
  }

  .section,
  .section-light,
  .page-content {
    background: #fff;
  }
}
