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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f6f5f3;
  color: #2b2b2b;

  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: min(520px, 100%);
  min-height: 100svh;
  text-align: center;

  padding: 32px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo { margin-bottom: 18px; }
.logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  opacity: 0.95;
}

/* =========================
   NEW: Section switcher pills
   (emulates lang-switcher)
   ========================= */

.section-switch {
  margin-bottom: 12px;
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

.section-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 0.98rem;
  padding: 10px 16px;
  border-radius: 999px;

  color: #5a3b8d; /* subtle “link-like” tint; remove if you want it identical to lang switch */
  background: transparent;

  transition: background-color 0.2s ease, color 0.2s ease, transform 0.05s ease;
}

.section-switch a:hover { background: rgba(0, 0, 0, 0.06); color: #3a1f66; }
.section-switch a:active { transform: translateY(1px); }

/* =========================
   Existing language switcher
   ========================= */

.lang-switch {
  margin-bottom: 26px;
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;

  color: #555;
  background: transparent;

  transition: background-color 0.2s ease, color 0.2s ease, transform 0.05s ease;
}

.lang-switch a:hover { background: rgba(0, 0, 0, 0.06); color: #000; }
.lang-switch a:active { transform: translateY(1px); }
.lang-switch a.active {
  background: #fff;
  color: #000;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  margin: 0 0 14px 0;
  font-size: 2.1rem;
  line-height: 1.15;
}

p { line-height: 1.7; margin: 0.75rem 0; }

/* =========================
   NEW: Section content styles
   ========================= */

.section {
  margin-top: 22px;
  padding-top: 10px;
  scroll-margin-top: 120px;
}

.section h2 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
}

.section p {
  margin: 0.6rem 0;
}

.signup {
  padding-top: 10px;
}

.signup-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signup-details summary {
  list-style: none;
  cursor: pointer;
}

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

.signup-message {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
}

.signup-message.success { color: #1b5e20; }
.signup-message.error { color: #8a1f1f; }

.signup-form {
  margin-top: 12px;
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.field span {
  font-size: 0.85rem;
  color: #555;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #2b2b2b;
}

.field input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.15);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 0.85rem;
  color: #555;
}

.consent input { margin-top: 3px; }

.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 999px;

  transition: background-color 0.2s ease, color 0.2s ease, transform 0.05s ease;
  user-select: none;
}

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: #fff;
  color: #000;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.btn.primary:hover { background: rgba(255, 255, 255, 0.85); }

.btn.secondary {
  background: rgba(0, 0, 0, 0.04);
  color: #555;
}

.btn.secondary:hover { background: rgba(0, 0, 0, 0.06); color: #000; }

.footer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 480px) {
  .container { padding: 24px 18px; }
  .logo img { max-width: 150px; }
  h1 { font-size: 1.7rem; }
  p { font-size: 0.98rem; }
  .lang-switch { margin-bottom: 20px; }

  /* Mobile tightening for the new section switch */
  .section-switch { gap: 8px; }
  .section-switch a { padding: 9px 12px; font-size: 0.95rem; }
}

/* Optional: smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* --- Layout: Logo links, Sprache rechts oben --- */
.topbar{
  width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.logo--left{
  text-align: left;
  margin: 0;
}

.logo--left img{
  max-width: 170px;          /* ggf. 150–200 testen */
  height: auto;
}

/* Language switch dezenter rechts oben */
.lang-switch--top{
  margin: 0;
  justify-content: flex-end;
  background: transparent;   /* nimmt “großen Balken” raus */
  padding: 0;
  border-radius: 0;
  gap: 10px;
}

/* Die Buttons bleiben, aber dezenter */
.lang-switch--top a{
  padding: 6px 12px;
  font-size: 13px;
  opacity: 0.75;
  border-radius: 999px;
}

.lang-switch--top a.active{
  opacity: 1;
}

/* --- Navigation mittig & schöner --- */
.main-nav{
  width: min(900px, 100%);
  margin: 18px auto 6px auto;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a{
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 10px;
  opacity: 0.75;
  transition: opacity .15s ease, background-color .15s ease;
}

.main-nav a:hover{
  opacity: 1;
  background: rgba(0,0,0,0.05);
}

.main-nav a.active{
  opacity: 1;
  background: rgba(0,0,0,0.07);
}

/* --- Mobile: Topbar stapeln, Sprache rechts --- */
@media (max-width: 520px){
  .topbar{
    align-items: center;
  }
  .logo--left img{
    max-width: 140px;
  }
}

/* === Between Skins: Studio Card Redesign (drop-in) === */

:root{
  --ink: #1e1e1e;
  --muted: rgba(0,0,0,.62);
  --line: rgba(0,0,0,.08);
  --card: rgba(255,255,255,.72);
  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --radius: 22px;
}

/* Hintergrund schon da – wir geben dem Ganzen mehr „Luft“ */
body{
  color: var(--ink);
}

/* Container als “Card” */
.container{
  width: min(920px, calc(100% - 40px));
  padding: 34px 34px 26px 34px;
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Topbar */
.topbar{
  width: 100%;
  margin: 0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo kleiner, edler */
.logo--left img{
  max-width: 150px;
  filter: saturate(0.95);
}

/* Language Switch als kleine Pill rechts */
.lang-switch--top{
  background: transparent;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.lang-switch--top a{
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .75;
}

.lang-switch--top a:hover{ opacity: 1; }
.lang-switch--top a.active{
  opacity: 1;
  background: rgba(255,255,255,.85);
}

/* Navigation: „Tabs“ in der Mitte */
.main-nav{
  width: 100%;
  margin: 18px auto 10px auto;
  display:flex;
  justify-content:center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .2px;
  color: var(--ink);
  opacity: .75;
  transition: opacity .15s ease, background-color .15s ease, border-color .15s ease;
}

.main-nav a:hover{
  opacity: 1;
  background: rgba(255,255,255,.55);
  border-color: var(--line);
}

.main-nav a.active{
  opacity: 1;
  background: rgba(255,255,255,.90);
  border-color: var(--line);
}

/* Typo-Hierarchie */
h1{
  margin-top: 18px;
  font-size: 44px;
  letter-spacing: -0.6px;
}

p{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Content-Blöcke */
.block{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.block h2{
  margin: 0 0 6px 0;
  font-size: 18px;
  letter-spacing: .2px;
}

/* Links/CTA schöner */
a{
  text-underline-offset: 3px;
}

a.button, .btn{
  display:inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  text-decoration: none;
}

/* Footer dezenter */
.footer{
  margin-top: 18px;
  font-size: 12px;
  opacity: .65;
}

/* Mobile */
@media (max-width: 520px){
  .container{ padding: 22px 18px 18px 18px; }
  h1{ font-size: 34px; }
  .logo--left img{ max-width: 130px; }
}

/* === Subtle Elegant Scrollbar === */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.25) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.35);
}

/* === Typography Upgrade === */

body{
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2px;
}

/* Haupttitel */
h1{
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

/* Sekundärtitel */
h2{
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 20px;
  margin-top: 22px;
  margin-bottom: 6px;
}

/* Fließtext */
p{
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  opacity: 0.85;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Navigation etwas feiner */
.main-nav a{
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Language Switch eleganter */
.lang-switch--top a{
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
}

.footer--row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.footer-badges{
  display:flex;
  align-items:center;
  gap: 10px;
}

.footer-badges img{
  height: 18px;          /* dezent */
  width: auto;
  opacity: .65;
  transition: opacity .15s ease, transform .15s ease;
  filter: saturate(.95);
}

.footer-badges img:hover{
  opacity: .95;
  transform: translateY(-1px);
}

/* Mobile: Footer stapeln */
@media (max-width: 520px){
  .footer--row{
    flex-direction: column;
    justify-content:center;
    text-align:center;
  }
}
