@import './variables.css';

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

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

body {
  font-family: var(--font-family-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: var(--radius-pill);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

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

ul {
  list-style: none;
}

.section {
  padding: var(--spacing-xl) 0;
  scroll-margin-top: 100px;
}

.section-light {
  background-color: var(--color-white);
}

.section-accent {
  background-color: var(--color-accent);
}

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

/* Utilities */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ═══ Demo-Banner (Frameschmiede) ═══ */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
  letter-spacing: 0.01em;
}

.demo-banner a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

.demo-banner a:hover {
  color: #ecfeff;
}

body {
  padding-top: 44px;
}

.header {
  top: 44px !important;
}

@media (max-width: 600px) {
  .demo-banner {
    font-size: 0.78rem;
    padding: 8px 10px;
    line-height: 1.35;
  }
  body {
    padding-top: 62px;
  }
  .header {
    top: 62px !important;
  }
}

.placeholder-hint {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #0891b2;
  background: #ecfeff;
  border: 1px dashed #06b6d4;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  font-style: italic;
  font-weight: 500;
}

.demo-placeholder {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Demo-Hinweis oberhalb des Kontakt-Formulars */
.demo-form-notice {
  margin-top: var(--spacing-md);
  padding: 10px 14px;
  background: #ecfeff;
  border: 1px dashed #06b6d4;
  color: #0891b2;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
}

/* Google-Maps-Platzhalter: stilisiertes Karten-Mockup statt grauer Box */
.map-placeholder {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: var(--spacing-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-accent-dark);
  background:
    linear-gradient(#ffffff 1.5px, transparent 1.5px) 0 0 / 100% 42px,
    linear-gradient(90deg, #ffffff 1.5px, transparent 1.5px) 0 0 / 62px 100%,
    radial-gradient(ellipse at 25% 30%, rgba(133, 192, 41, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(133, 192, 41, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, #dde6dc 0%, #eaeeea 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-md);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.map-placeholder::before {
  content: '';
  position: absolute;
  top: 60%;
  left: -10%;
  width: 120%;
  height: 10px;
  background: #ffffff;
  transform: rotate(-8deg);
  box-shadow: 0 -40px 0 #ffffff;
  opacity: 0.85;
}

.map-placeholder-pin {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
  position: relative;
  z-index: 2;
}

.map-placeholder-label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  position: relative;
  z-index: 2;
}

.map-placeholder-hint {
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 10px;
  color: #0891b2;
  background: #ecfeff;
  border: 1px dashed #06b6d4;
  border-radius: 8px;
  padding: 4px 10px;
  position: relative;
  z-index: 2;
}
