/* =============================================
   Premium 2nd Hand – Shared Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
  --bg: #f7f6f3;
  --bg-alt: #efede8;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --accent: #8a7f70;
  --accent-dark: #6e6558;
  --line: #e5e2dc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 1100px;
  --header-height: 72px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 200ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-height);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Utilities --- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 246, 243, 0.95);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Brand --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.85; }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-text { line-height: 1.2; }
.brand-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.brand-subtitle {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  position: relative;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 300ms ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link--external .ext-arrow {
  font-size: 11px;
  margin-left: 2px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  line-height: 1;
  transition: transform var(--transition);
}
.nav-link--external:hover .ext-arrow { transform: translate(1px, -1px); }
.nav-link--download .dl-icon {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-left: 2px;
  line-height: 1;
  transition: transform var(--transition);
}
.nav-link--download .dl-icon svg {
  display: inline-block;
  vertical-align: middle;
}
.nav-link--download:hover .dl-icon { transform: translateY(2px); }
.nav-social {
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}
.nav-social:hover {
  transform: translateY(-1px) scale(1.05);
}

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  z-index: 101;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.nav-toggle:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.nav-toggle:active {
  background: var(--bg-alt);
}
.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease, width 300ms ease;
  transform-origin: center;
}
.nav-toggle span:nth-child(2) { width: 14px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.open { background: var(--bg-alt); border-color: var(--accent); }

/* --- Hero --- */
.hero {
  padding: 80px 24px 80px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
}
.hero-lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.hero-opening {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 300ms ease, transform 300ms ease;
  text-align: left;
}
.hero-opening:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hero-opening-logo {
  width: 260px;
  height: 260px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.opening-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.opening-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.opening-teaser {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 300px;
}
.opening-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 4px;
  transition: color var(--transition), transform var(--transition);
}
.opening-follow-link:hover {
  color: var(--text);
  transform: translateX(2px);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1.5px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease,
              background var(--transition), color var(--transition),
              border-color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-copy {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--line);
  padding: 12px 18px;
  font-size: 13px;
  cursor: pointer;
}
.btn-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}
.btn-copy:hover {
  border-color: var(--accent);
  background: #faf9f7;
}

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* --- Sections --- */
.section {
  padding: 70px 0;
  scroll-margin-top: var(--header-height);
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 300ms ease, transform 300ms ease;
}
.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Location --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.location-info { padding-top: 8px; }
.location-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.location-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.location-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* --- Contact --- */
.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.contact-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-address {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* --- Cookie Consent --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 400ms ease, opacity 400ms ease;
  pointer-events: none;
}
.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Content Pages (Datenschutz, Impressum) --- */
.page-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  animation: fadeIn 600ms ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.content-card h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 16px;
}
.content-card h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}
.content-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--text);
}
.content-card h4 {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}
.content-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 12px 0;
}
.content-card ul {
  padding-left: 0;
  list-style: none;
}
.content-card ul li {
  margin: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.content-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.content-card a:hover { color: var(--accent-dark); }

/* --- Mobile Menu Backdrop --- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  .header-inner { padding: 0 32px; }

  .hero { padding: 60px 32px 60px; }
  .hero-opening {
    padding: 18px 24px;
    gap: 16px;
  }
  .hero-opening-logo {
    width: 160px;
    height: 160px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-top {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section { scroll-margin-top: calc(var(--header-height) + 24px); }
  .header {
    background: rgba(247, 246, 243, 0.98);
  }
  .header.scrolled { background: rgba(247, 246, 243, 0.98); }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px rgba(0,0,0,0.06);
    z-index: 100;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 18px; }
  .nav-link::after { display: none; }
  .nav-social svg { width: 24px; height: 24px; }

  .hero { padding: 80px 24px 64px; }
  .hero-opening {
    display: flex;
    padding: 16px 20px;
    gap: 14px;
    max-width: 100%;
  }
  .hero-opening-logo {
    width: 68px;
    height: 68px;
  }
  .opening-date {
    font-size: 14px;
  }
  .opening-teaser {
    font-size: 12px;
    max-width: 240px;
  }
  .opening-follow-link {
    font-size: 11px;
  }

  .location-info { text-align: center; }
  .location-info .btn { display: inline-flex; }

  .features { grid-template-columns: 1fr; gap: 20px; }

  .location-grid { grid-template-columns: 1fr; gap: 24px; }
  .location-map iframe { height: 300px; }

  .footer-top { justify-content: center; text-align: center; }

  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons .btn { flex: 1; }
}

@media (max-width: 480px) {
  :root { --header-height: 64px; }
  .wrap { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-title { font-size: 16px; }
  .hero { padding: 60px 16px 50px; }
  .hero-opening {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }
  .hero-opening-logo {
    width: 92px;
    height: 92px;
  }
  .opening-text {
    align-items: center;
  }
  .opening-teaser {
    text-align: center;
    max-width: 280px;
  }
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 40px; }
  .feature { padding: 28px 20px; }
  .page-content { padding: 40px 16px 60px; }
  .content-card { padding: clamp(24px, 5vw, 40px); }

  .footer-top { flex-direction: column; gap: 12px; }
}
