/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: "titlefont";
  src: url("./assets/fonts/titlefont.ttf") format("truetype");
}
@font-face {
  font-family: "mainfont";
  src: url("./assets/fonts/mainfont.ttf") format("truetype");
}

/* =========================
   Theme Variables
   ========================= */
:root {
  --bg: #2c5e6d;
  --card: #1e3e48;
  --accent: #f47a60;
  --accentHover: #c9654f;
  --accentSoft: rgba(244, 122, 96, 0.14);

  --text: #ffffff;
  --textMuted: #c0c0c0;
  --textBody: #d7d7d7;
  --textSoft: #9fb3ba;

  --radius: 14px;
}

/* =========================
   Base / Reset
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  font-family: "mainfont", Arial, Helvetica, sans-serif;

  /* Wichtig: vertikaler Flow, kein flex-row Layout */
  display: block;
  color: var(--text);
  line-height: 1.65;
}

/* =========================
   Layout Wrapper
   - Keeps all pages consistent
   ========================= */
.page-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 14px 48px;
}

/* =========================
   Google Translate
   ========================= */
#google_translate_element {
  padding: 10px 16px;
  text-align: right;
  background-color: rgba(30, 62, 72, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Prevent translation of brand name */
.notranslate {
  unicode-bidi: bidi-override;
}

/* =========================
   Container (Default)
   - Works for policies + forms
   ========================= */
.container {
  width: min(92vw, 780px);
  margin: 40px auto;
  padding: 28px 26px;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);

  /* zwingt untereinander, auch wenn irgendwo flex reingemischt wird */
  display: block;
}

/* =========================
   Headings
   ========================= */
h1 {
  font-family: "titlefont", sans-serif;
  font-size: 54px;
  line-height: 1.05;
  text-align: center;
  margin: 12px 0 10px 0;
  color: var(--text);
}

h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 22px 0;
  color: var(--textMuted);
}

h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  margin: 16px auto 0;
}

.page-header {
  text-align: center;
  margin-bottom: 18px;
}

.page-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--textMuted);
  margin-top: 6px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 34px 0 10px 0;
  color: var(--text);
}

h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px 0;
  color: var(--textMuted);
}

/* =========================
   Text / Content
   ========================= */
p {
  margin: 14px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--textBody);
  text-align: left;
}

strong {
  font-weight: 600;
  color: var(--text);
}

.muted {
  opacity: 0.88;
  color: var(--textBody);
}

.meta {
  font-size: 14px;
  color: var(--textSoft);
}

/* =========================
   Lists
   ========================= */
ul,
ol {
  margin: 10px 0 18px 22px;
  padding: 0;
}

li {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--textBody);
}

/* =========================
   Links
   ========================= */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Home Page
   ========================= */
.hero {
  text-align: center;
  padding: 10px 12px 22px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero .page-subtitle {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--textBody);
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  background: rgba(18, 40, 48, 0.6);
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card h4 {
  margin-top: 0;
}

.download-card {
  margin-top: 26px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 40, 48, 0.6);
}

.home-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  margin-top: 12px;
}

.home-hero-text h1 {
  margin-bottom: 8px;
}

.home-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--textSoft);
  margin-bottom: 18px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accentHover);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.home-hero-panel {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero-panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--textSoft);
}

.feature-list li {
  position: relative;
  padding-left: 22px;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent);
}

.home-section {
  margin-top: 32px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--accentSoft);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.store-link:hover {
  text-decoration: none;
  border-color: rgba(244, 122, 96, 0.6);
  background: rgba(244, 122, 96, 0.22);
  transform: translateY(-2px);
}

.store-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--textSoft);
}

/* =========================
   Forms (Password Reset / Verify Email)
   ========================= */
#passwordResetForm,
#emailConfirmationForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
  align-items: center;
}

.form-control {
  width: min(520px, 100%);
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 12px;
  font-size: 16px;
  border-radius: var(--radius);
  border: none;
  outline: none;
  background-color: #ffffff;
  color: #000000;
}

button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: min(520px, 100%);
  height: 56px;
  margin-top: 8px;

  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;

  background-color: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

button:hover,
button[type="submit"]:hover {
  background-color: var(--accentHover);
}

.small {
  font-size: 13px;
  color: rgb(53, 159, 0);
  display: none;
  margin-top: 6px;
}

/* =========================
   Snackbar (optional)
   ========================= */
#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  border-radius: var(--radius);
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 16px;

  animation-name: fadein;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;

  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

.snackIcon {
  width: 30px;
  height: 30px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 600px) {
  .container {
    margin: 14px auto;
    padding: 20px 16px;
    width: 92vw;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 20px;
  }

  p,
  li {
    font-size: 14px;
  }

  #passwordResetForm,
  #emailConfirmationForm {
    padding: 16px 10px;
  }
}
