@font-face {
  font-family: "WorldClimbingBold";
  src: url("assets/fonts/WorldClimbing-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "AntarcticanMono";
  src: url("assets/fonts/AntarcticanMono-Book.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #03111f;
  --pink: #ec0c8c;
  --bg: #f4f4f6;
  --card: #ffffff;
  --border: #e2e2e7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  position: relative;
}

.lang-switch {
  position: absolute;
  top: 32px;
  right: 20px;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch__btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: var(--card);
  color: #999;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 480px) {
  .lang-switch {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
  }
}

.page__header h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.page__header p {
  margin: 0 0 32px;
  color: #555;
  max-width: 640px;
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 32px;
  align-items: start;
}

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

.editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1920;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.stage:active {
  cursor: grabbing;
}

.stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage__hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
}

.controls {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.control input[type="range"] {
  flex: 1;
}

.hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #777;
}

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field input {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.button {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.privacy-note {
  margin: 0;
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

.app-browser-note {
  margin: 0;
  font-size: 13px;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.4;
}

.page__footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: #999;
}

.page__footer a {
  color: #999;
  text-decoration: underline;
}

.page__footer a:hover {
  color: #666;
}

.page__footer span {
  margin: 0 8px;
}

/* Impressum / Datenschutz */
.legal {
  max-width: 720px;
}

.legal a {
  color: var(--ink);
}

.legal h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}

.legal h3 {
  font-size: 15px;
  margin: 20px 0 6px;
}

.legal p, .legal li {
  color: #444;
  line-height: 1.6;
  font-size: 14px;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: #666;
}
