/* styles.css */

@font-face {
  font-family: "RauschenB";
  src: url("./fonts/RauschenB-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: rgb(239,239,231);
  --blue: rgb(0,0,255);

  --pad: clamp(18px, 2.8vw, 72px);
  --content-max: 1180px;
  --block-max: 760px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden; /* verhindert horizontales Scrollen */
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--blue);
  font-family: "RauschenB", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.35;
  letter-spacing: 0.01em;

  width: 100%;
  overflow-x: hidden;          /* verhindert horizontales Scrollen */
  overscroll-behavior-x: none; /* verhindert seitliches "Rubberband" */
  touch-action: pan-y;         /* nur vertikal scrollen auf Touch */

  /* Worttrennung global */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

a{ color: var(--blue); }

/* Worttrennung + Umbrüche für Text */
p, li, h1, h2, h3, a{
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;

  overflow-wrap: break-word;
  word-break: normal;
}

/* =========================
   HERO
   ========================= */
.hero{
  min-height: 100vh;
  padding: 0 var(--pad);
  display: flex;
  overflow-x: hidden; /* extra Sicherheit gegen SVG-Überstand */
  position: relative;
  min-height: 100vh;
}

.hero-inner{
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 18px;
}

.hero-kicker{
  margin: 0;
  margin-right: 40px;
  font-size: clamp(18px, 1.4vw, 25px);
}

/* =========================
   ARC
   ========================= */
.arc-wrap{
  display: grid;
  place-items: center;
  align-self: center;
  pointer-events: none;
  overflow: visible;
}

.arc{
  width: min(1800px, 100%);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.arc-text{
  fill: var(--blue);
  font-size: 180px;
  letter-spacing: 0.06em;
}

/* =========================
   HERO RIGHT TEXT
   ========================= */
.hero-right{
  margin: 0;
  font-size: clamp(18px, 1.4vw, 25px);
  justify-self: end;
  align-self: end;
  max-width: 720px;
  text-align: left;
}

/* =========================
   NAV
   ========================= */
.nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(14px, 2vw, 48px);
  padding-top: 12px;
  padding-bottom: 10px;
}

.nav a{
  text-decoration: none;
  font-size: clamp(16px, 1.2vw, 22px);
  white-space: nowrap;
}
.nav a:hover{
  text-decoration: underline;
  text-underline-offset: 7px;
}

/* =========================
   CONTENT
   ========================= */
.content{
  padding: 20px var(--pad) 90px;
  overflow-x: hidden; /* extra Sicherheit */
}

.section{
  padding-top: 70px;
  scroll-margin-top: 12px; /* beim Scrollen (auch über Burger-Menü) schön oben */
}

.stack{
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.heading{
  margin: 0 0 18px;
  font-size: clamp(20px, 1.4vw, 28px);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 8px;
  width: var(--block-max);
  max-width: 100%;
}

.block{
  max-width: var(--block-max);
  font-size: clamp(20px, 1.4vw, 28px);
}

.block p{ margin: 0 0 16px; }
.block ul{ margin: 0 0 16px; padding-left: 22px; }
.block li{ margin: 8px 0; }
.block + .block{ margin-top: 54px; }

.is-right{ margin-left: auto; }

.link{
  text-decoration: underline;
  text-underline-offset: 7px;
}

/* =========================
   FADE
   ========================= */
.fade{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade.in{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   UPLOAD
   ========================= */
.upload{
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.upload input[type="file"]{
  font-family: inherit;
  font-size: 16px;
  color: var(--blue);
}

.upload-btn{
  justify-self: start;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-family: inherit;
  font-size: 18px;
  padding: 10px 14px;
  cursor: pointer;
}

.upload-btn:hover{
  text-decoration: underline;
  text-underline-offset: 6px;
}

.upload-status{
  margin: 0;
  font-size: 16px;
}

.footer-space{ height: 140px; }

/* =========================
   BURGER / MOBILE MENU
   ========================= */
.burger{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  background: transparent;
  z-index: 11000;
}

.burger span{
  display: block;
  height: 2px;
  background: var(--blue);
  margin: 7px 6px;
  transition: transform 220ms ease, opacity 180ms ease;
}

/* Burger -> X wenn Menü offen */
.burger.is-open span:nth-child(1){
  transform: translateY(9px) rotate(45deg);
}
.burger.is-open span:nth-child(2){
  opacity: 0;
}
.burger.is-open span:nth-child(3){
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu{
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: none;
  padding: 84px var(--pad) 30px;
  z-index: 10500;
}

.mobile-menu a{
  display: block;
  text-decoration: none;
  font-size: 26px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,255,0.18);
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 920px){
  .nav{ display: none; }
  .burger{ display: block; }

  .stack{ width: 100%; margin: 0; }
  .is-right{ margin-left: 0; }
  .block{ max-width: none; }
  .heading{ width: auto; }

  /* ARC mobil: 45° drehen + größer */
  .arc-wrap{
    height: 65svh;
    position: relative;
    overflow: visible;
    display: block;
  }

  .arc{
    position: absolute;
    top: 40%;
    left: 50%;

    height: 70svh;
    width: auto;

    max-width: 98vw;
    max-height: 75svh;

    overflow: visible;

    transform: translate(-60%, -50%) rotate(90deg) scale(1.2);
    transform-origin: center;
  }

  .arc-text{
    font-size: 230px;
    letter-spacing: -0.03em;
  }

  .hero-inner{
    position: relative;
    min-height: 100svh; /* wichtig für Mobile-Browser */
  }

  .hero-right{
    position: absolute;
    bottom: 100px;        /* Abstand vom unteren Rand */
    left: var(--pad);   /* gleiche Kante wie Content */
    right: var(--pad);

    align-self: auto;   /* Grid-Alignment neutralisieren */
    max-width: none;
  }
}

/* sehr kleine Geräte */
@media (max-width: 420px){
  .arc-wrap{ height: 70svh; }

  .arc{
    height: 78svh;
    max-height: 78svh;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.00);
  }

  .arc-text{
    font-size: 210px;
  }

  .mobile-menu a{ font-size: 22px; }
}
