/*
Theme Name: R&R Hausverwaltung
Theme URI: https://r2hausverwaltung.de
Author: R&R Hausverwaltung
Author URI: https://r2hausverwaltung.de
Description: Modernes One-Pager Theme für die R&R Hausverwaltung in Hamburg. Mit integriertem Kontaktformular.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rr-hausverwaltung
*/

/* ============================================================
   FONTS & VARIABLES
   ============================================================ */
:root {
  --navy: #16243a;
  --navy-deep: #0e1726;
  --slate: #2c3e54;
  --brass: #b08d4f;
  --brass-light: #cdab6e;
  --sand: #f4f0e8;
  --sand-warm: #ede6d8;
  --paper: #fbf9f4;
  --ink: #1a2434;
  --ink-soft: #4a5568;
  --line: rgba(22, 36, 58, 0.12);
  --shadow-sm: 0 2px 12px rgba(14, 23, 38, 0.06);
  --shadow-md: 0 12px 40px rgba(14, 23, 38, 0.10);
  --shadow-lg: 0 30px 80px rgba(14, 23, 38, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", -apple-system, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brass);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--navy);
  margin: 18px 0 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  display: grid; place-items: center;
  font-family: var(--font-display);
  color: var(--brass-light);
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.3s;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-header:not(.scrolled) .brand-name,
.site-header:not(.scrolled) .nav a { color: var(--paper); }
.site-header:not(.scrolled) .brand-tag { color: rgba(244,240,232,0.7); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--brass);
  color: var(--navy) !important;
  padding: 11px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: all 0.3s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--brass-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(176,141,79,0.4); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--paper); transition: 0.3s; }
.site-header.scrolled .menu-toggle span { background: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(14,23,38,0.92) 0%, rgba(22,36,58,0.78) 55%, rgba(44,62,84,0.6) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 0h1v40H0zM0 0h40v1H0z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 140px 0 80px; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--paper);
  margin: 26px 0 24px;
}
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero p {
  font-size: 1.18rem;
  color: rgba(244,240,232,0.85);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-eyebrow { color: var(--brass-light); }
.hero-eyebrow::before { background: var(--brass-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 16px 34px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease);
}
.btn-primary { background: var(--brass); color: var(--navy); }
.btn-primary:hover { background: var(--brass-light); transform: translateY(-3px); box-shadow: 0 14px 38px rgba(176,141,79,0.45); }
.btn-ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(244,240,232,0.4); }
.btn-ghost:hover { background: rgba(244,240,232,0.1); border-color: var(--paper); }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 56px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.stat-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--brass-light); line-height: 1; }
.stat-label { font-size: 0.86rem; color: rgba(244,240,232,0.7); margin-top: 8px; letter-spacing: 0.04em; }

.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(244,240,232,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(var(--brass-light), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100%{opacity:0.3;} 50%{opacity:1;} }

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-intro { font-size: 1.12rem; color: var(--ink-soft); margin-top: 20px; }

/* ABOUT */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-points { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.about-points .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: var(--brass-light);
  display: grid; place-items: center; font-size: 0.8rem;
}
.about-visual { position: relative; }
.about-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -28px; left: -28px;
  background: var(--navy);
  color: var(--paper);
  padding: 26px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  max-width: 220px;
}
.about-badge .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--brass-light); line-height: 1; }
.about-badge .txt { font-size: 0.88rem; color: rgba(244,240,232,0.8); margin-top: 8px; }

/* SERVICES */
.services { background: var(--sand); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 40px 34px;
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: var(--brass-light);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.42rem; color: var(--navy); margin-bottom: 14px; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* PROCESS */
.process { background: var(--navy-deep); color: var(--paper); }
.process .section-title { color: var(--paper); }
.process .section-intro { color: rgba(244,240,232,0.7); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.process-step { position: relative; }
.process-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--brass);
  opacity: 0.4;
  line-height: 1;
}
.process-step h3 { font-size: 1.25rem; color: var(--paper); margin: 14px 0 12px; }
.process-step p { color: rgba(244,240,232,0.65); font-size: 0.94rem; }

/* CONTACT */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-info h2 { margin-bottom: 22px; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 38px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-detail .ci {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--sand-warm); color: var(--navy);
  display: grid; place-items: center;
}
.contact-detail .cl { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.contact-detail .cv { font-size: 1.05rem; color: var(--ink); font-weight: 500; margin-top: 3px; }

.contact-form-wrap {
  background: var(--navy);
  border-radius: 22px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 { color: var(--paper); font-size: 1.7rem; margin-bottom: 8px; }
.contact-form-wrap .fsub { color: rgba(244,240,232,0.65); font-size: 0.95rem; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: rgba(244,240,232,0.8); margin-bottom: 8px; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(244,240,232,0.18);
  background: rgba(244,240,232,0.06);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: all 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(244,240,232,0.4); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(244,240,232,0.1);
}
.form-group select option { background: var(--navy); color: var(--paper); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.form-consent input { width: auto; margin-top: 4px; flex-shrink: 0; }
.form-consent label { font-size: 0.82rem; color: rgba(244,240,232,0.7); margin: 0; line-height: 1.5; }
.form-submit { width: 100%; justify-content: center; }
.form-note { margin-top: 16px; padding: 14px; border-radius: 10px; font-size: 0.9rem; display: none; }
.form-note.success { display: block; background: rgba(120,180,120,0.15); color: #a8d8a8; border: 1px solid rgba(120,180,120,0.3); }
.form-note.error { display: block; background: rgba(200,100,100,0.15); color: #e0a0a0; border: 1px solid rgba(200,100,100,0.3); }

/* FOOTER */
.site-footer { background: var(--navy-deep); color: rgba(244,240,232,0.7); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(244,240,232,0.1); }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { margin-top: 18px; font-size: 0.94rem; max-width: 320px; }
.footer-col h4 { color: var(--paper); font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 0.94rem; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.85rem; flex-wrap: wrap; gap: 14px; }
.footer-bottom a:hover { color: var(--brass-light); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-badge { left: 0; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 0; right: -100%; flex-direction: column; background: var(--navy); width: 80%; max-width: 320px; height: 100vh; padding: 100px 40px; gap: 28px; align-items: flex-start; transition: right 0.4s var(--ease); box-shadow: var(--shadow-lg); }
  .nav.open { right: 0; }
  .nav a { color: var(--paper) !important; font-size: 1.1rem; }
  .menu-toggle { display: flex; z-index: 1001; }
  .site-header.scrolled .menu-toggle span,
  .menu-toggle.active span { background: var(--paper); }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 32px; }
  .section-pad { padding: 76px 0; }
}
