/* ============================================
   Apartmenthaus Potsdam – im Holländischen Viertel
   Stil inspiriert von Winkelschiffchen & Appartements Lackner
   ============================================ */

:root {
  --color-brick: #a65c45;
  --color-brick-dark: #8b4a36;
  --color-cream: #f6f2eb;
  --color-cream-dark: #e8e2d9;
  --color-forest: #2d4a3e;
  --color-charcoal: #2c2c2c;
  --color-text: #333;
  --color-text-muted: #5c5c5c;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --space: 1.25rem;
  --container: min(90vw, 1200px);
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  text-align: center;
}

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

a {
  color: var(--color-brick);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 235, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-cream-dark);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  text-align: left;
  flex-wrap: nowrap;
}

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-brick);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font: inherit;
  color: var(--color-charcoal);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-list a:hover {
  color: var(--color-brick);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-header {
  background: var(--color-brick);
  color: #fff;
  border: none;
}

.btn-header:hover {
  background: var(--color-brick-dark);
  color: #fff;
}

.btn-hero {
  background: #fff;
  color: var(--color-brick-dark);
  box-shadow: var(--shadow);
}

.btn-hero:hover {
  background: var(--color-cream);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-brick);
  border: 2px solid var(--color-brick);
}

.btn-outline:hover {
  background: var(--color-brick);
  color: #fff;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--space);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-charcoal) 100%);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  color: #fff;
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero-text {
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
  opacity: 0.95;
}

/* ----- Sections ----- */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

/* ----- Intro ----- */
.intro {
  padding: 4rem 0;
  background: #fff;
}

.intro .section-title {
  text-align: center;
}

.intro-grid {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.intro-grid p {
  margin: 0 0 1rem;
}

.intro-lead {
  font-size: 1.15rem;
  color: var(--color-text);
}

/* ----- USPs ----- */
.usps {
  padding: 2.5rem 0;
  background: var(--color-cream-dark);
  border-top: 1px solid var(--color-cream);
  border-bottom: 1px solid var(--color-cream);
}

.usps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.usps-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--color-text);
}

.usps-list li::before {
  content: '✓';
  font-weight: 600;
  color: var(--color-brick);
}

/* ----- Apartments ----- */
.apartments {
  padding: 4rem 0;
}

.apartments .section-title,
.apartments .section-sub {
  text-align: center;
}

.apartment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.apartment-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.apartment-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.apartment-card-gallery {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.apartment-card-gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.apartment-card-gallery img.apartment-gallery-active {
  opacity: 1;
  z-index: 1;
}

.apartment-card-content {
  padding: 1.25rem;
  text-align: center;
}

.apartment-card-content h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-charcoal);
}

.apartment-card-content p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
}

.link-arrow::after {
  content: ' →';
}

/* ----- CTA Block ----- */
.cta-block {
  padding: 4rem 0;
  background: var(--color-cream-dark);
}

.cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-content .section-title {
  margin-bottom: 0.5rem;
}

.cta-content p {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ----- Video ----- */
.video-section {
  padding: 4rem 0;
  background: #fff;
}

.video-section .section-title {
  text-align: center;
}

.video-wrapper {
  aspect-ratio: 16/9;
  background: var(--color-charcoal);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Footer ----- */
.footer {
  padding: 2.5rem 0 1.5rem;
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.85);
}

.footer a {
  color: rgba(255,255,255,0.9);
}

.footer a:hover {
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.footer-brand .logo {
  color: #fff;
  font-size: 1.2rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

/* ----- Buchungsseite ----- */
.page-main {
  padding-bottom: 4rem;
}

.page-hero {
  padding: 2.5rem 0 1rem;
  background: #fff;
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0;
  text-align: center;
}

.page-subtitle {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ----- Anreise / Karte ----- */
.map-section {
  padding: 0 0 4rem;
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-address {
  margin: 1.5rem auto 0;
  max-width: 900px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.6;
}

.map-address strong {
  color: var(--color-charcoal);
}

/* ----- Rechtstexte (Datenschutz, Impressum) ----- */
.legal-content {
  padding: 0 0 4rem;
  background: #fff;
}

.legal-block {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: left;
}

.legal-block h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-cream-dark);
}

.legal-block p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.legal-block ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.legal-block li {
  margin-bottom: 0.25rem;
}

.contact-block {
  padding: 1.5rem 0 2rem;
  background: var(--color-cream);
}

.contact-block .section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--color-charcoal);
}

.contact-card p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-links a {
  color: var(--color-brick);
}

.form-section {
  padding: 2rem 0 3rem;
  background: #fff;
}

.form-section .section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.booking-form {
  max-width: 520px;
  margin: 0 auto 2rem;
  text-align: left;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-brick);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row-half {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
}

.form-row-half:first-of-type {
  margin-right: 0.5rem;
}

.form-row-required .required {
  color: var(--color-brick);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: -0.5rem 0 1rem;
  text-align: left;
}

.form-required-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 1rem 0;
  text-align: left;
}

.btn-submit {
  background: var(--color-brick);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--color-brick-dark);
  color: #fff;
}

.form-footnotes {
  max-width: 520px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-cream-dark);
  text-align: left;
}

.form-footnotes p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.form-footnotes p:last-child {
  margin-bottom: 0;
}

.thank-you-block {
  padding: 4rem 0;
  text-align: center;
}

.thank-you-text {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.thank-you-block .btn {
  margin: 0 0.5rem 0.5rem 0;
}

/* ----- Apartment-Galerie ----- */
.apartment-gallery {
  padding: 2rem 0 3rem;
  background: var(--color-cream);
}

.apartment-gallery .section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

/* ----- Apartment-Detailseite (z. B. Sanssouci) ----- */
.apartment-teaser {
  margin: 0.5rem 0 1rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-align: center;
}

.apartment-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.apartment-links a {
  font-size: 0.95rem;
}

.apartment-detail {
  padding: 2rem 0 4rem;
  background: #fff;
}

.apartment-detail .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.detail-block {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: left;
}

.detail-block h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-cream-dark);
}

.detail-block ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.detail-block li {
  margin-bottom: 0.25rem;
}

.detail-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.detail-prices ul {
  list-style: none;
  padding-left: 0;
}

.detail-prices li {
  margin-bottom: 0.5rem;
}

.detail-cta {
  text-align: center;
  margin: 2.5rem 0 0;
}

.detail-cta .btn {
  display: inline-block;
}

@media (max-width: 600px) {
  .form-row-half {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-cream-dark);
    display: none;
    white-space: normal;
    flex-wrap: wrap;
  }

  .nav-list.is-open {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .hero {
    min-height: 70vh;
    padding: 3rem var(--space);
  }

  .apartment-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cta-links {
    flex-direction: column;
  }

  .cta-links .btn {
    width: 100%;
  }
}
