/* ===== BASE STYLES ===== */
:root {
  --primary-color: #1e90ff;
  --secondary-color: #003366;
  --accent-color: #ff6b35;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #333;
  --text-light: #6c757d;
  --bg-digital: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  --bg-realestate: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --property-card-bg: white;
  --property-card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

/* ===== LAYOUT ===== */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header, section, footer {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  padding: 4rem 1rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-light);
}

/* ===== GRID & CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--property-card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ===== IMMOBILIEN-SHOP STYLES ===== */
.property-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.property-section h1 {
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.property-card {
  background: var(--property-card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--property-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-details {
  padding: 1.5rem;
  flex-grow: 1;
}

.property-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.property-price {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.property-location {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.property-size {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.property-description {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  align-self: flex-start;
}

.btn:hover {
  background: #0056b3;
}

/* Filter-Container */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--property-card-shadow);
}

.filter-select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  min-width: 200px;
  flex-grow: 1;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

.filter-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.filter-btn:hover {
  background: #0056b3;
}

/* ===== HEADER ===== */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  box-shadow: var(--shadow);
}

header img {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* ===== NAVIGATION (ANGEPASST) ===== */
nav {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  margin: 0 auto;
}

.nav-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--secondary-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== SECTION-SPECIFIC STYLES ===== */
.bg-digital {
  background: var(--bg-digital);
}

.bg-realestate {
  background: var(--bg-realestate);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

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

/* ===== FORM STYLES ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: 500;
  display: block;
  text-align: left;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  align-self: flex-start;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #0056b3;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5rem;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 0;
  }

  .nav-footer {
    display: block;
    margin-top: auto;
    padding-bottom: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
  }

  .nav-open .nav-links {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Restliche responsive Anpassungen (unverändert) */
  .hero h2 {
    font-size: 2rem;
  }

  .grid, .property-grid {
    grid-template-columns: 1fr;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    min-width: 100%;
  }

  .property-card {
    height: auto;
  }
}
/* Privacy Banner - Blockiert die gesamte Seite */
.privacy-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.privacy-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.privacy-content h2 {
    margin-top: 0;
    color: #1a237e; /* Dunkles Blau (wyvern-cf.de Farbschema) */
}

.privacy-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.privacy-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background: #1a237e; /* Dunkles Blau */
    color: white;
}

.btn-primary:hover {
    background: #303f9f;
}

.btn-link {
    background: transparent;
    color: #1a237e;
    text-decoration: underline;
}

.btn-link:hover {
    color: #303f9f;
}
