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

:root {
  --dark: #2c2420;
  --warm: #6b5344;
  --accent: #a0785c;
  --light: #f9f5f0;
  --white: #ffffff;
  --gray: #8a7e76;
  --radius: 14px;
  --rose: #c4a68a;
}

html { scroll-behavior: smooth; }

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

.script-heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* === Navbar === */
  .navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  gap: 2rem;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  margin-right: auto;
}

.navbar.scrolled .logo { color: var(--dark); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s;
}

.navbar.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a:hover { color: var(--accent); }

.btn-book {
  padding: 0.6rem 1.5rem;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.navbar.scrolled .btn-book {
  background: var(--dark);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar.scrolled .mobile-toggle { color: var(--dark); }

/* === Hero === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('images/amelie/landscape/1.png?w=1920&h=1080&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
  padding: 0 2rem;
}

.hero-content .hero-script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-hero {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* === Welcome === */
.welcome {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.welcome-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.welcome-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.welcome-text p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.link-arrow {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.link-arrow:hover { color: var(--accent); }

/* === Apartments === */
.apartments {
  padding: 6rem 3rem;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  line-height: 1.3;
}

.apartment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.apartment-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.apartment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.apartment-card.highlighted {
  border: 2px solid var(--accent);
  position: relative;
}

.apartment-card.highlighted::before {
  content: 'NEU';
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s;
}

.apartment-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

.card-body {
  padding: 1.8rem;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.card-body p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.card-features {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.card-features li {
  background: var(--light);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--warm);
  font-weight: 500;
}

.btn-card {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-card:hover { background: var(--warm); }

/* === Surroundings === */
.surroundings {
  padding: 6rem 0 0;
}

.surroundings .section-header {
  padding: 0 3rem;
  margin-bottom: 3rem;
}

.surroundings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.5rem;
  width: 100%;
  padding: 0 0;
}

.surroundings-grid .surround-item:first-child img {
  margin-left: 0;
}

.surroundings-grid .surround-item:last-child img {
  margin-right: 0;
}

.surround-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: opacity 0.8s ease;
}

.surround-item img.fade-out {
  opacity: 0;
}

.surround-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  text-align: center;
  padding: 1.2rem 0;
}

/* === Contact === */
.contact {
  padding: 6rem 3rem;
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  background: var(--white);
  transition: border-color 0.2s;
}

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

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  padding: 0.9rem 2rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-submit:hover { background: var(--warm); }

/* === Footer === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 3rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer p { font-size: 0.85rem; }

.footer-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--white); }

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 9999;
  font-size: 0.88rem;
  line-height: 1.6;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  max-width: 700px;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--warm);
}

.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover {
  background: rgba(255,255,255,0.1);
}

/* === Translate Widget (Navbar) === */
.translate-wrapper {
  position: relative;
  margin-right: 0.6rem;
}

.translate-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.3s, border-color 0.3s;
}

.navbar.scrolled .translate-toggle {
  color: var(--dark);
  border-color: #ccc;
}

.translate-toggle:hover {
  border-color: var(--white);
  color: var(--white);
}

.navbar.scrolled .translate-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.translate-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 0.5rem;
  display: none;
  min-width: 160px;
  z-index: 1001;
}

.translate-dropdown.open {
  display: block;
}

.translate-dropdown button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.8rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.translate-dropdown button:hover {
  background: var(--light);
}

.translate-dropdown button.active {
  background: var(--light);
  font-weight: 600;
  color: var(--accent);
}

/* Hide Google Translate bar */
.goog-te-banner-frame, .skiptranslate {
  display: none !important;
}

body { top: 0 !important; }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.2rem;
    gap: 0.8rem;
  }
}

/* === Longterm Rental === */
.longterm {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
}

.longterm h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.longterm p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.longterm-contact {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.longterm-contact a {
  color: var(--accent);
  text-decoration: none;
}

.longterm-contact a:hover { text-decoration: underline; }

/* === Potsdam Page === */
.potsdam-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: url('images/potsdam/oleksandra-k-F0hmFWBSbJM-unsplash.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.potsdam-section {
  padding: 5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.potsdam-section-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.potsdam-section-inner > p {
  color: var(--gray);
  line-height: 1.9;
  font-size: 1rem;
}

.potsdam-attractions {
  padding: 5rem 3rem;
  background: var(--light);
}

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.attraction-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.attraction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.attraction-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.attraction-body {
  padding: 1.5rem;
}

.attraction-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.attraction-body p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

.potsdam-tips {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.tip-item {
  text-align: left;
  padding: 2rem;
  background: var(--light);
  border-radius: var(--radius);
}

.tip-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose);
  display: block;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.tip-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tip-item p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

.potsdam-cta {
  padding: 5rem 3rem;
  background: var(--dark);
  text-align: center;
  color: var(--white);
}

.potsdam-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.potsdam-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.potsdam-cta p {
  opacity: 0.8;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.potsdam-cta .script-heading {
  color: var(--rose);
}

@media (max-width: 900px) {
  .attractions-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .potsdam-section, .potsdam-tips { padding: 3rem 1.5rem; }
  .potsdam-attractions { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
  .tips-grid { grid-template-columns: 1fr; }
}

/* === Impressum Page === */
.impressum-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
}

.impressum-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.impressum-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.impressum-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}

.impressum-page p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.impressum-page a {
  color: var(--accent);
  text-decoration: none;
}

.impressum-page a:hover { text-decoration: underline; }

/* === Responsive === */
@media (max-width: 900px) {
  .nav-links, .btn-book { display: none; }
  .mobile-toggle { display: block; }
  .navbar { padding: 1rem 1.5rem; }

  .translate-wrapper { order: 1; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .nav-links.open a { color: var(--dark); }

  .translate-toggle {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
  }

  .navbar.scrolled .translate-toggle {
    color: var(--dark);
    border-color: #ccc;
  }

  .hero-content h1 { font-size: 2.4rem; }
  .welcome-grid { grid-template-columns: 1fr; gap: 2rem; }
  .welcome-image img { height: 350px; }
  .apartment-cards { grid-template-columns: 1fr; max-width: 500px; }
  .surroundings-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .welcome, .apartments, .surroundings, .contact { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .date-row { grid-template-columns: 1fr; }
}
