/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,700;0,900;1,400&family=Roboto+Mono:wght@400;700&display=swap');

/* Color Palette */
:root {
  --pitch-black: #100b00;
  --white: #ffffff;
  --dusty-rose: #c16e70;
  --steel-azure: #084887;
}

/* Reset / Base */
html, body {
  margin: 0;
  overscroll-behavior: none;
}

body {
  font-family: 'Fira Sans', system-ui, -apple-system, sans-serif;
}

/* Header Layout */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 72px;
  padding: 0 28px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  z-index: 10;
}

/* Titel links */
.title {
  position: absolute;
  left: 28px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.social {
  position: absolute;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f7f7f7;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social a:hover,
.social a:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.social svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* Hero / Home */
.home {
  position: relative;
  min-height: 100vh;
  padding: 72px 24px 24px;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)),
    url("Images/Background Home/pexels-pok-rie-33563-1655166.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}


.home-overlay {
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.32);
  border-radius: 18px;
  max-width: 680px;
}

.home-text h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
}

.home-text p {
  margin: 6px 0;
  color: #f3f3f3;
}

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* Zentrierte Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #f7f7f7;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.35;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  opacity: 0.6;
}

nav a:hover {
  color: var(--white);
}

/* About & Standort Pages (heller Header) */
.about-page,
.standort-page {
  background: var(--white);
  color: var(--pitch-black);
}

/* Blogs Page (heller, transparenter Header) */
.blogs-page {
  background: var(--white);
  color: var(--pitch-black);
  overscroll-behavior: none;
}

.blogs-page header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blogs-page .title {
  color: var(--pitch-black);
  text-shadow: none;
}

.blogs-page nav a {
  color: var(--pitch-black);
}

.blogs-page nav a:hover {
  color: var(--steel-azure);
}

.blogs-page nav a::after {
  opacity: 0.3;
}

.blogs-page .social a {
  border: none;
  color: var(--pitch-black);
}

.blogs-page .social a:hover,
.blogs-page .social a:focus-visible {
  border: none;
  color: var(--steel-azure);
  background: transparent;
}

.about-page header,
.standort-page header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e3e3e3;
}

.about-page .title,
.standort-page .title {
  color: var(--pitch-black);
  text-shadow: none;
}

.about-page nav a,
.standort-page nav a {
  color: var(--pitch-black);
}

.about-page nav a:hover,
.standort-page nav a:hover {
  color: var(--steel-azure);
}

.about-page nav a::after,
.standort-page nav a::after {
  opacity: 0.3;
}

.about-page .social a,
.standort-page .social a {
  border-color: rgba(16, 11, 0, 0.18);
  color: var(--pitch-black);
}

.about-page .social a:hover,
.about-page .social a:focus-visible,
.standort-page .social a:hover,
.standort-page .social a:focus-visible {
  border-color: var(--steel-azure);
  color: var(--steel-azure);
  background: rgba(8, 72, 135, 0.06);
}

.about-page .eyebrow,
.standort-page .eyebrow {
  color: #666;
}

.about-main {
  margin-top: 72px;
  padding: 48px 0 80px;
}

.blogs-main {
  margin-top: 72px;
  min-height: 100vh;
}

.about-shell {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 320px));
  justify-content: center;
  align-items: start;
  justify-items: center;
  column-gap: clamp(40px, 6vw, 80px);
  row-gap: clamp(24px, 5vw, 60px);
  padding: clamp(32px, 5vw, 60px) 0;
}

.about-gallery figure {
  margin: 0;
  text-align: center;
}

.about-gallery img {
  width: 320px;
  height: 320px;
  max-width: 100%;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.profile-details {
  margin-top: 12px;
}

.profile-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  padding: 0 0 6px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pitch-black);
  background: transparent;
  border: none;
  transition: color 0.2s ease;
  position: relative;
}

.profile-details summary::-webkit-details-marker {
  display: none;
}

.profile-details summary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.35;
}

.profile-details summary:hover::after,
.profile-details summary:focus-visible::after,
.profile-details[open] summary::after {
  transform: scaleX(1);
  opacity: 0.6;
}

.profile-details summary:hover,
.profile-details summary:focus-visible {
  color: var(--steel-azure);
}

.profile-text {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(16, 11, 0, 0.7);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .about-gallery {
    grid-template-columns: 1fr;
    row-gap: 24px;
    column-gap: 24px;
  }

  .about-gallery img {
    width: min(340px, 80vw);
    height: min(340px, 80vw);
  }
}

/* Blog Page */
.blog-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 84px 0 80px;
  display: flex;
  justify-content: center;
}

.blog-hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("Images/Image Blog/envelope.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.paper-scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0;
}

.paper-window {
  position: relative;
  width: min(527px, 76.5vw);
  margin: 0 auto;
  transform: translateX(-30px);
}

.paper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  padding: 16px 0 24px;
}

.post {
  display: block;
  text-decoration: none;
  margin: 0 auto 14px;
  width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 16px 18px 16px 60px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #222;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.post-number {
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--dusty-rose);
  letter-spacing: 0.5px;
}

.post h2 { margin: 0 0 8px; color: var(--pitch-black); }
.post p  { margin: 0 0 8px; line-height: 1.5; color: rgba(16, 11, 0, 0.75); }

/* Post Detail Page */
.post-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.post-detail {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 40px 32px 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.post-detail .post-number {
  position: static;
  display: block;
  margin-bottom: 8px;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--dusty-rose);
  letter-spacing: 1px;
}

.post-detail h1 {
  margin: 0 0 20px;
  font-size: 1.8rem;
  color: var(--pitch-black);
  line-height: 1.3;
}

.post-detail p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: rgba(16, 11, 0, 0.8);
  font-size: 1.05rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--dusty-rose);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--steel-azure);
}

.post-page .blog-hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("Images/Image Blog/envelope.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.envelope-overlay {
  position: fixed;
  left: 49.4%;
  bottom: -290px;
  width: 2601.76px;
  height: 3862.5px;
  transform: translateX(-50%) scale(0.39);
  transform-origin: center bottom;
  pointer-events: none;
  background: url("Images/Subtract.png") center bottom / contain no-repeat;
  z-index: 999; /* vorderste Ebene, losgelöst von den bewegten Posts */
}

/* Standort Page */
.standort-main {
  margin-top: 72px;
  padding: 0;
}

.standort-shell {
  width: 100%;
  margin: 0;
}

.map-hero {
  height: calc(100vh - 72px);
  width: 100%;
}

.map-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 0;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Page */
.contact-page {
  background: var(--white);
  color: var(--pitch-black);
}

.contact-page header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e3e3e3;
}

.contact-page .title {
  color: var(--pitch-black);
  text-shadow: none;
}

.contact-page nav a {
  color: var(--pitch-black);
}

.contact-page nav a:hover {
  color: var(--steel-azure);
}

.contact-page nav a::after {
  opacity: 0.3;
}

.contact-page .social a {
  border-color: rgba(16, 11, 0, 0.18);
  color: var(--pitch-black);
}

.contact-page .social a:hover,
.contact-page .social a:focus-visible {
  border-color: var(--steel-azure);
  color: var(--steel-azure);
  background: rgba(8, 72, 135, 0.06);
}

.contact-main {
  margin-top: 72px;
  padding: 48px 24px 80px;
}

.contact-shell {
  width: min(520px, 92vw);
  margin: 0 auto;
}

.contact-heading {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--pitch-black);
  text-align: center;
}

.contact-intro {
  font-size: 15px;
  color: rgba(16, 11, 0, 0.6);
  line-height: 1.6;
  margin: 0 0 32px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pitch-black);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  color: var(--pitch-black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--steel-azure);
  box-shadow: 0 0 0 3px rgba(8, 72, 135, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-submit {
  align-self: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--steel-azure);
  border-radius: 8px;
  background: var(--steel-azure);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  background: var(--white);
  color: var(--steel-azure);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
}

.form-feedback--success {
  color: #1a7a3a;
}

.form-feedback--error {
  color: #c0392b;
}

/* ── Hamburger Menu Button ── */
.menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Dark lines for light-header pages */
.about-page .menu-toggle span,
.standort-page .menu-toggle span,
.blogs-page .menu-toggle span,
.contact-page .menu-toggle span {
  background: var(--pitch-black);
}

/* X animation when open */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #fff;
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: #fff;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .social {
    display: none;
  }

  header {
    padding: 0 20px;
  }

  .title {
    left: 20px;
  }

  /* Nav becomes fullscreen overlay */
  nav,
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 15;
  }

  nav.open,
  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  nav a,
  .site-nav a {
    font-size: 22px !important;
    color: #fff !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
  }

  nav a::after,
  .site-nav a::after {
    display: none;
  }

  /* Prevent scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }

  /* Home hero adjustments */
  .home {
    padding: 72px 16px 16px;
  }

  .home-overlay {
    padding: 24px 20px;
  }

  /* Blog page adjustments */
  .paper-scene {
    justify-content: center;
    align-items: center;
  }

  .paper-window {
    width: min(527px, 90vw);
    margin: 0 auto;
    transform: none;
  }

  .post {
    width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
    padding: 14px 14px 14px 50px;
  }

  /* Post detail adjustments */
  .post-main {
    padding: 88px 16px 60px;
  }

  .post-detail {
    padding: 28px 20px 24px;
  }

  /* Contact adjustments */
  .contact-main {
    padding: 32px 16px 60px;
  }

  /* About adjustments */
  .about-main {
    padding: 32px 0 60px;
  }

  /* Envelope background: zoom in on mobile to align with overlay edges */
  .blog-hero::before,
  .post-page .blog-hero::before {
    background-size: 1440px auto;
    background-position: center bottom;
  }
}
