/*
Theme Name: Reinekraft
Theme URI: https://reinekraft.at
Author: Reinekraft
Author URI: https://reinekraft.at
Description: Ein modernes, responsives WordPress-Theme für Hausbetreuung, Reinigung und Objektservice in Salzburg.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: reinekraft
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, accessibility-ready, one-column
*/

:root {
  --rk-navy: #142437;
  --rk-navy-2: #0f1c2a;
  --rk-green: #5aaa3a;
  --rk-green-dark: #448c2b;
  --rk-green-soft: #edf7e9;
  --rk-text: #263545;
  --rk-muted: #647181;
  --rk-line: #e5eaf0;
  --rk-bg: #f7f9fb;
  --rk-white: #ffffff;
  --rk-shadow: 0 18px 55px rgba(20, 36, 55, 0.12);
  --rk-radius: 22px;
  --rk-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rk-text);
  background: var(--rk-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rk-green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rk-green); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--rk-container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--soft { background: var(--rk-bg); }
.section--dark { color: var(--rk-white); background: var(--rk-navy); }
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--rk-green-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-title {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--rk-navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-lead {
  max-width: 740px;
  margin: 0;
  color: var(--rk-muted);
  font-size: 1.08rem;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -100px;
  padding: 12px 16px;
  color: var(--rk-white);
  background: var(--rk-navy);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 8px; left: 8px;
  width: auto; height: auto;
  clip: auto;
  padding: 12px 16px;
  color: var(--rk-white);
  background: var(--rk-navy);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(229,234,240,.85);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding img { width: 275px; max-height: 66px; }
.custom-logo-link img { width: auto; max-width: 275px; max-height: 66px; }
.site-title { margin: 0; font-size: 1.55rem; }
.site-title a { color: var(--rk-navy); text-decoration: none; font-weight: 900; }
.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  position: relative;
  color: var(--rk-navy);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--rk-green);
  transition: right .2s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { right: 0; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: var(--rk-white);
  background: var(--rk-green);
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(90,170,58,.22);
}
.header-phone:hover { color: var(--rk-white); background: var(--rk-green-dark); }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rk-line);
  border-radius: 10px;
  background: var(--rk-white);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 22px; height: 2px;
  display: block;
  background: var(--rk-navy);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Hero */
.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(90deg, #f7fafc 0 47%, #e7edf0 47% 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 14% 20%, rgba(90,170,58,.09), transparent 31%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  min-height: 690px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px 115px 0;
}
.hero-title {
  margin: 0 0 24px;
  color: var(--rk-navy);
  font-size: clamp(3.45rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-title span { display: block; color: var(--rk-green); }
.hero-text {
  max-width: 590px;
  margin: 0 0 34px;
  color: #4d5c6a;
  font-size: 1.18rem;
}
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--rk-white); background: var(--rk-green); }
.button--primary:hover { color: var(--rk-white); background: var(--rk-green-dark); }
.button--secondary { color: var(--rk-navy); background: var(--rk-white); border-color: var(--rk-line); }
.button--secondary:hover { color: var(--rk-navy); border-color: var(--rk-green); }
.button--light { color: var(--rk-navy); background: var(--rk-white); }
.hero-media {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(247,250,252,.38), rgba(247,250,252,0) 18%),
    url("assets/images/hero.webp") center/cover no-repeat;
}
.hero-panel-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -42px;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), var(--rk-container));
}
.hero-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--rk-white);
  border: 1px solid var(--rk-line);
  border-radius: 18px;
  box-shadow: var(--rk-shadow);
}
.hero-service {
  min-height: 175px;
  padding: 29px 22px 25px;
  text-align: center;
  border-right: 1px solid var(--rk-line);
}
.hero-service:last-child { border-right: 0; }
.hero-service svg { width: 42px; height: 42px; margin: 0 auto 13px; color: var(--rk-green-dark); }
.hero-service h3 { margin: 0 0 7px; color: var(--rk-navy); font-size: .98rem; }
.hero-service p { margin: 0; color: var(--rk-muted); font-size: .8rem; line-height: 1.48; }

/* Content sections */
.intro-section { padding-top: 155px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 78px;
  align-items: center;
}
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--rk-shadow);
}
.media-card img { width: 100%; aspect-ratio: 1.05; object-fit: cover; }
.media-badge {
  position: absolute;
  right: 28px; bottom: 28px;
  max-width: 265px;
  padding: 19px 22px;
  color: var(--rk-navy);
  background: var(--rk-white);
  border-radius: 13px;
  box-shadow: 0 14px 35px rgba(20,36,55,.16);
  font-weight: 800;
}
.check-list { display: grid; gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: "✓";
  width: 22px; height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  color: var(--rk-white);
  background: var(--rk-green);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.service-card,
.value-card,
.process-card,
.quote-card {
  background: var(--rk-white);
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  box-shadow: 0 12px 38px rgba(20,36,55,.06);
}
.service-card { padding: 34px; }
.service-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--rk-green-dark);
  background: var(--rk-green-soft);
  border-radius: 16px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin: 0 0 10px; color: var(--rk-navy); font-size: 1.23rem; }
.service-card p { margin: 0; color: var(--rk-muted); font-size: .94rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--rk-line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--rk-white);
}
.value-card {
  padding: 36px 28px;
  text-align: center;
  border: 0;
  border-right: 1px solid var(--rk-line);
  border-radius: 0;
  box-shadow: none;
}
.value-card:last-child { border-right: 0; }
.value-card svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--rk-green); }
.value-card h3 { margin: 0 0 8px; color: var(--rk-navy); font-size: 1rem; }
.value-card p { margin: 0; color: var(--rk-muted); font-size: .88rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.process-card { position: relative; padding: 34px; }
.process-number {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--rk-white);
  background: var(--rk-green);
  border-radius: 50%;
  font-weight: 900;
}
.process-card h3 { margin: 0 0 8px; color: var(--rk-navy); }
.process-card p { margin: 0; color: var(--rk-muted); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.quote-card { padding: 34px; }
.quote-card blockquote { margin: 0 0 18px; color: var(--rk-navy); font-size: 1.08rem; font-weight: 650; }
.quote-card cite { color: var(--rk-muted); font-style: normal; font-size: .9rem; }

.cta {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 35px;
  align-items: center;
  padding: 38px 0;
}
.cta h2 { margin: 0 0 5px; font-size: 1.45rem; }
.cta p { margin: 0; color: #cbd4dc; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 54px;
  align-items: start;
}
.contact-card {
  padding: 34px;
  color: var(--rk-white);
  background: var(--rk-navy);
  border-radius: 22px;
}
.contact-card h3 { margin-top: 0; font-size: 1.6rem; }
.contact-details { display: grid; gap: 18px; margin-top: 28px; }
.contact-detail { display: flex; gap: 13px; align-items: flex-start; }
.contact-detail a { color: var(--rk-white); text-decoration: none; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--rk-navy); font-size: .9rem; font-weight: 800; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 15px;
  color: var(--rk-text);
  background: var(--rk-white);
  border: 1px solid #d7dee5;
  border-radius: 9px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 3px solid rgba(90,170,58,.18);
  border-color: var(--rk-green);
}
.form-notice {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: .92rem;
}
.form-notice--success { color: #245c1a; background: #e8f7e4; border: 1px solid #b8dfad; }
.form-notice--error { color: #7b2626; background: #fff0f0; border: 1px solid #efc0c0; }
.hp-field { position: absolute !important; left: -9999px !important; }

/* Generic pages */
.page-hero {
  padding: 86px 0 78px;
  color: var(--rk-white);
  background:
    linear-gradient(120deg, rgba(20,36,55,.98), rgba(20,36,55,.86)),
    url("assets/images/building.webp") center/cover no-repeat;
}
.page-hero h1 { max-width: 840px; margin: 0 0 14px; font-size: clamp(2.7rem, 6vw, 4.7rem); line-height: 1.03; letter-spacing: -.04em; }
.page-hero p { max-width: 720px; margin: 0; color: #dbe2e8; font-size: 1.12rem; }
.content-wrap { width: min(calc(100% - 40px), 860px); margin-inline: auto; padding: 76px 0; }
.entry-content h2,
.entry-content h3 { color: var(--rk-navy); line-height: 1.2; }
.entry-content h2 { margin-top: 2.3em; font-size: 2rem; }
.entry-content h3 { margin-top: 1.8em; font-size: 1.35rem; }
.entry-content p,
.entry-content li { color: #465462; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: 12px; text-align: left; border: 1px solid var(--rk-line); }
.entry-content .wp-block-button__link { background: var(--rk-green); }
.post-list { display: grid; gap: 24px; padding: 70px 0; }
.post-card { padding: 30px; background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: 16px; }
.post-card h2 { margin-top: 0; }
.pagination { margin: 40px 0; }

/* Footer */
.footer-cta { background: var(--rk-navy); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer { color: #d4dce4; background: var(--rk-navy-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1fr;
  gap: 48px;
  padding: 58px 0 44px;
}
.footer-logo { width: 250px; filter: brightness(0) invert(1); opacity: .95; }
.footer-title { margin: 0 0 16px; color: var(--rk-white); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-text { max-width: 320px; margin: 18px 0 0; color: #b8c3ce; font-size: .9rem; }
.footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #cbd4dc; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--rk-white); }
.footer-contact { display: grid; gap: 11px; font-size: .9rem; }
.footer-contact a { color: #cbd4dc; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0 28px;
  color: #97a5b2;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: .82rem;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: #b9c4ce; text-decoration: none; }

/* Responsive */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .primary-nav ul { gap: 20px; }
  .hero-services { grid-template-columns: repeat(3, 1fr); }
  .hero-service:nth-child(3) { border-right: 0; }
  .hero-service:nth-child(n+4) { border-top: 1px solid var(--rk-line); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card:nth-child(2) { border-right: 0; }
  .value-card:nth-child(n+3) { border-top: 1px solid var(--rk-line); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 88px;
    left: 0; right: 0;
    display: none;
    padding: 20px;
    background: var(--rk-white);
    border-bottom: 1px solid var(--rk-line);
    box-shadow: 0 20px 35px rgba(20,36,55,.1);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--rk-line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: 13px 4px; }
  .primary-nav a::after { display: none; }
  .hero { background: var(--rk-bg); }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 78px 0 60px; }
  .hero-media { min-height: 480px; }
  .hero-panel-wrap { position: relative; left: auto; bottom: auto; transform: none; width: min(calc(100% - 40px), var(--rk-container)); margin: -55px auto 0; }
  .intro-section { padding-top: 95px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .process-grid, .quote-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--rk-container)); }
  .section { padding: 72px 0; }
  .site-branding img, .custom-logo-link img { max-width: 210px; }
  .header-inner { min-height: 76px; }
  .primary-nav { top: 76px; }
  .hero-title { font-size: clamp(3rem, 16vw, 4.1rem); }
  .hero-media { min-height: 370px; }
  .hero-services { grid-template-columns: 1fr; }
  .hero-service { min-height: auto; border-right: 0; border-top: 1px solid var(--rk-line); }
  .hero-service:first-child { border-top: 0; }
  .card-grid, .values-grid { grid-template-columns: 1fr; }
  .value-card { border-right: 0; border-top: 1px solid var(--rk-line); }
  .value-card:first-child { border-top: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
