/* ============================================
   ImmoClean & Clear — style.css
   Mobile-First · System Fonts · No Dependencies
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary:      #0846aa;
  --color-primary-dark: #063a8a;
  --color-accent:       rgba(33, 196, 93, 0.953);
  --color-accent-dark:  rgba(20, 160, 70, 0.953);
  --color-white:        #ffffff;
  --color-bg-alt:       #f7f7f7;
  --color-text:         #2d3748;
  --color-text-muted:   #718096;
  --color-border:       #e2e8f0;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);

  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* --- Accessibility: Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 4vw, 1.9rem);  font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Scroll offset for sticky header */
[id] { scroll-margin-top: 80px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-stack);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  min-height: 48px;
  min-width: 48px;
  text-align: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-primary);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.header-phone:hover {
  background: var(--color-accent-dark);
}
.phone-icon { font-size: 1rem; }

/* Hide phone number text on very small screens — show icon only */
@media (max-width: 400px) {
  .header-phone .phone-number { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a6ed4 100%);
  color: var(--color-white);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

/* Mobile-only CTA (phone call) */
.hero-cta-mobile  { display: flex; }
/* Desktop-only CTAs (scroll to form + phone) */
.hero-cta-desktop { display: none; }

.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Hero image placeholder (shown when image is missing) */
.hero-img-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-align: center;
  gap: 0.5rem;
}
.hero-img-placeholder .placeholder-icon { font-size: 2.5rem; }

@media (min-width: 768px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
  .hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-cta-mobile  { display: none; }
  .hero-cta-desktop { display: flex; }
  .hero-image-wrapper img,
  .hero-img-placeholder { height: 360px; }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--color-white);
  padding: 1.25rem 0;
  border-bottom: 2px solid var(--color-border);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.trust-icon { font-size: 1.3rem; }

/* ============================================
   SECTION DEFAULTS
   ============================================ */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.service-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.service-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================
   3-STEP PROCESS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step { text-align: center; }

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(33, 196, 93, 0.35);
}
.step h3 { margin-bottom: 0.5rem; }
.step p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ============================================
   EMPATHY SECTION
   ============================================ */
.empathy-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3.5rem 0;
}

.empathy-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.empathy-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}
.empathy-content h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}
.empathy-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

/* ============================================
   LOCAL PROOF / REVIEWS
   ============================================ */
.service-area {
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.service-area p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); }
.service-area strong { color: var(--color-primary); }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.review-stars {
  color: #f6ad55;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.review-text {
  font-size: 0.9rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.review-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}
.review-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   CONTACT / LEAD FORM
   ============================================ */
.contact-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3.5rem 0;
}
.contact-section h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 0.5rem;
}
.contact-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-form-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.4rem;
}
.required-mark {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-family: var(--font-stack);
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
  min-height: 52px;
}
.form-group input::placeholder { color: rgba(255, 255, 255, 0.45); }
.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.15);
}
.form-group input[type="tel"] {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.optional-label {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85em;
}

.btn-submit {
  width: 100%;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-stack);
  min-height: 56px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-submit:hover, .btn-submit:focus-visible {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 16px rgba(33, 196, 93, 0.5);
  transform: translateY(-1px);
  outline: none;
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-micro-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
}
.form-privacy-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}
.form-privacy-note a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}
.form-privacy-note a:hover { color: var(--color-white); }

/* Form validation visual */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #fc8181;
}
.form-error-msg {
  font-size: 0.8rem;
  color: #fc8181;
  margin-top: 0.25rem;
  display: none;
}
.form-group.has-error .form-error-msg { display: block; }
.form-group.has-error input { border-color: #fc8181; }

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-accent);
  padding: 0.875rem 1.25rem;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.25);
  display: none; /* shown on mobile via media query */
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 48px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    display: block;
  }
  /* Prevent content from being hidden behind sticky CTA */
  body {
    padding-bottom: 74px;
  }
  /* Push cookie banner above sticky CTA */
  .cookie-banner {
    bottom: 74px !important;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-primary-dark, #063a8a);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.footer-brand a {
  color: var(--color-accent);
  transition: color var(--transition);
}
.footer-brand a:hover { color: var(--color-accent-dark); }

.footer-links h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-links ul li { margin-bottom: 0.4rem; }
.footer-links ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #12182e;
  color: var(--color-white);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  display: none;
}
.cookie-banner.visible { display: block; }

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  min-width: 180px;
  margin: 0;
}
.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-stack);
  min-height: 44px;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--color-accent-dark); }

.btn-cookie-necessary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-stack);
  min-height: 44px;
  transition: border-color var(--transition), color var(--transition);
}
.btn-cookie-necessary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2.5rem 0;
}
.legal-header h1 { color: var(--color-white); }

.legal-content { padding: 3rem 0; }

.legal-content h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-primary);
}
.legal-content h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.legal-content h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text);
}
.legal-content p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content ul li {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}
.legal-content code {
  background: var(--color-bg-alt);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.legal-nav {
  background: var(--color-bg-alt);
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}
.legal-nav .container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.legal-nav a {
  color: var(--color-primary);
  font-size: 0.9rem;
  text-decoration: underline;
}

/* ============================================
   THANK-YOU PAGE
   ============================================ */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  padding: 2rem 1.25rem;
}

.thankyou-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.thankyou-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
}
.thankyou-card h1 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.thankyou-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.thankyou-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 52px;
  margin-top: 0.5rem;
  transition: background var(--transition);
}
.thankyou-phone:hover { background: var(--color-accent-dark); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
