/* ==========================================================================
   Lorenz Striese Immobilien — Design System
   ========================================================================== */

:root {
  --navy-950: #0a1226;
  --navy-900: #0f1c38;
  --navy-800: #16284d;
  --navy-700: #1c3661;
  --blue-600: #2f6db5;
  --blue-500: #3a8fd6;
  --blue-400: #4fb0e8;
  --ink: #1b2534;
  --ink-soft: #4b5768;
  --paper: #f7f9fc;
  --paper-alt: #eef2f8;
  --white: #ffffff;
  --line: rgba(15, 28, 56, 0.08);
  --shadow-sm: 0 2px 10px rgba(10, 22, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 22, 48, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 22, 48, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-500);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue-500);
  display: inline-block;
}

section {
  position: relative;
}

.section-pad {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-pad { padding: 80px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------------- Buttons ---------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.btn:hover::after { opacity: 1; }

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 109, 181, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(47, 109, 181, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.navbar.scrolled .btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}

.navbar.scrolled .btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--paper-alt);
  box-shadow: var(--shadow-sm);
}

/* ---------------- Navbar ---------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 40px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.navbar.scrolled .brand img {
  height: 34px;
}

.brand-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 68px;
}

.brand-mark img {
  height: 148px;
  width: auto;
}

@media (max-width: 768px) {
  .brand-mark img { height: 100px; }
  .brand-mark { margin-bottom: 44px; }
}

.brand-text {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.15;
  transition: color 0.4s var(--ease);
}

.brand-text span {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.navbar.scrolled .brand-text {
  color: var(--navy-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color 0.35s var(--ease);
}

.navbar.scrolled .nav-links a {
  color: var(--navy-800);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta .btn {
  padding: 11px 24px;
  font-size: 0.85rem;
}

.navbar.scrolled .btn-ghost {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.navbar.scrolled .btn-ghost:hover {
  background: var(--navy-700);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
}

.burger span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}

.navbar.scrolled .burger span {
  background: var(--navy-900);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url("../Bilder/stock1.jpg") center 65% / cover no-repeat fixed;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 16, 34, 0.72) 0%, rgba(9, 16, 34, 0.55) 45%, rgba(9, 16, 34, 0.88) 100%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(79, 176, 232, 0.25), transparent 45%);
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  padding-top: 90px;
  color: var(--white);
}

.hero-content .eyebrow {
  color: var(--blue-400);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-top: 20px;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.hero-content p {
  margin-top: 26px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(255,255,255,0.9), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0.3); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.3); opacity: 0.3; transform-origin: bottom; }
}

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------------- About ---------------- */

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.about-visual .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.about-visual:hover .frame img {
  transform: scale(1.06);
}

.crest-image {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 38px rgba(10, 22, 48, 0.22));
  transition: transform 0.6s var(--ease);
}

.about-visual:hover .crest-image {
  transform: translateY(-6px);
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-top: 20px;
}

.about-copy p.lead {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
  margin-top: 22px;
}

.feature-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.chip {
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.chip:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.chip .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 143, 214, 0.12), rgba(47, 109, 181, 0.16));
  border: 1px solid rgba(47, 109, 181, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 18px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.chip .icon svg { width: 24px; height: 24px; transition: transform 0.4s var(--ease); }

.chip:hover .icon {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: var(--white);
  transform: scale(1.08);
}

.chip:hover .icon svg { transform: rotate(-6deg) scale(1.05); }

.chip h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-900);
}

.chip p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------------- Team ---------------- */

.team {
  position: relative;
  background: url("../Bilder/hintergrund7.jpg") center / cover no-repeat fixed;
  padding: 140px 0;
}

.team::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 18, 38, 0.92) 20%, rgba(10, 18, 38, 0.72) 100%);
}

.team .container {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
}

.team-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 52px;
  max-width: 480px;
  display: grid;
  justify-items: center;
  gap: 26px;
  box-shadow: var(--shadow-lg);
}

.team-card .eyebrow::before { display: none; }

.team-quote { text-align: left; }

.team-photo {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-card .eyebrow { color: var(--blue-400); }

.team-card h2 {
  color: var(--white);
  font-size: 2rem;
  margin-top: 6px;
}

.team-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.team-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  border-left: 2px solid var(--blue-400);
  padding-left: 18px;
}

.team-card .btn { align-self: start; }

/* ---------------- Contact ---------------- */

.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  background: linear-gradient(160deg, #ffffff 0%, #eef4fb 100%);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 143, 214, 0.14), transparent 70%);
}

.contact-list {
  display: grid;
  gap: 16px;
  position: relative;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-row:hover {
  background: var(--paper-alt);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.contact-row .icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-row .icon svg { width: 20px; height: 20px; color: var(--white); }

.contact-row .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.contact-row .value {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
  color: var(--navy-900);
}

.hours {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hours h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hours-row.today {
  background: rgba(47, 109, 181, 0.1);
  color: var(--navy-900);
  font-weight: 600;
}

.hours-row .closed {
  color: #c1493f;
}

.contact-card .btn { align-self: flex-start; margin-top: auto; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  position: relative;
  filter: grayscale(0.15) contrast(1.05);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------------- Footer ---------------- */

footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 108px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
}

.footer-links a {
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
}

.footer-credit {
  text-align: center;
  margin-top: 16px;
  font-size: 0.72rem;
  opacity: 0.4;
}

.footer-credit a {
  color: inherit;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.footer-credit a:hover {
  opacity: 1;
  color: var(--blue-400);
}

/* ---------------- Back to top ---------------- */

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.4s var(--ease);
  z-index: 900;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--blue-600);
  transform: translateY(-4px);
}

/* ---------------- Legal pages ---------------- */

.legal-page {
  padding: 160px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 42px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 26px;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.legal-page p, .legal-page li {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-page a {
  color: var(--blue-600);
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-weight: 600;
  color: var(--blue-600);
}

/* ---------------- Mobile ---------------- */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .crest-image { max-width: 380px; margin: 0 auto; }
  .team .container { justify-content: center; }
  .team-card { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .burger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-950);
    padding: 110px 36px 40px;
    gap: 26px;
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
    transform: translateX(0);
    transition: transform 0.5s var(--ease);
    z-index: 1050;
  }

  .navbar .nav-links.mobile-open a,
  .navbar.scrolled .nav-links.mobile-open a {
    color: var(--white);
    font-size: 1.05rem;
  }

  .navbar.scrolled .burger.active span {
    background: var(--white);
  }
}

@media (max-width: 768px) {
  .feature-chips { grid-template-columns: 1fr; }
  .hero { background-attachment: scroll; }
  .team { background-attachment: scroll; }
  .team-card { padding: 32px 26px; }
  .contact-card { padding: 32px 26px; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .brand-text { display: none; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 16, 34, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  z-index: 1040;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}
