/* =========================================
   CSS Variablen
========================================= */
:root {
  /* ===== Farben ===== */
  --color-bg-body: #e3e9eb;
  --color-bg-page: rgba(244, 121, 33, 0.02);
  --color-bg-header: #585858;
  --color-bg-footer: #585858;
  --color-btn-nav: #f47921; /* orange */

  --color-border-body: #585858;

  --color-text-bright: #e3e9eb;
  --color-text-dark: #302f2e;

  /* ===== Schatten ===== */
  --shadow-btn-dark: rgba(0, 0, 0, 0.25);
  --shadow-btn-bright: rgba(255, 255, 255, 0.7);

  /* ===== Typografie ===== */
  --font-family: Arial, Verdana, sans-serif;
  --font-size: clamp(12px, 1vw + 0.5rem, 16px);
}

/* =========================================
   Reset & Global Styles
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

/* =========================================
   Layout Container
========================================= */
.page {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: clamp(320px, 100%, 1024px);
  margin: auto;
  background-color: var(--color-bg-body);
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-text-dark);
  border: solid var(--color-border-body);
}

.page__wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg-page);
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* =========================================
   Header & Footer
========================================= */
.header,
.footer {
  position: sticky;
  z-index: 100;
}

.header {
  top: 0;
  background: var(--color-bg-header);
  padding-bottom: 0.2rem;
}

.header__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  width: clamp(140px, 20vw, 200px);
  padding: 1rem 1rem 0.5rem;
}

.header__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer {
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  font-size: 0.7rem;
  background-color: var(--color-bg-footer);
  color: var(--color-text-bright);
}

.footer__content {
  display: flex;
  gap: 0.5rem;
}

/* =========================================
   Navigation
========================================= */
.nav {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  flex: 1;
  gap: 0.1rem;
  width: 100%;
  padding: 0.2rem;
}

.nav--start .button--nav {
  font-size: 1.5rem;
}

.nav--start .button__icon {
  height: 2.4rem;
}

/* =========================================
   Buttons
========================================= */
.button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: 1rem;
  line-height: 1rem;
  text-transform: uppercase;
  background: var(--color-btn-nav);
  color: var(--color-text-dark);
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0.125rem 0.125rem 0.25rem var(--shadow-btn-dark), -0.125rem -0.125rem 0.25rem var(--shadow-btn-bright);

  transition: transform 0.1s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button:active {
  transform: translateY(0.0625rem);
  box-shadow: inset 0.0625rem 0.0625rem 0.125rem var(--shadow-btn-dark), inset -0.0625rem -0.0625rem 0.125rem var(--shadow-btn-bright);
}

.button:hover {
  opacity: 0.9;
  box-shadow: 0.1875rem 0.1875rem 0.375rem var(--shadow-btn-dark), -0.1875rem -0.1875rem 0.375rem var(--shadow-btn-bright);
}

.button__icon {
  height: 1.2rem;
  width: auto;
}

/* =========================================
   Media Queries
========================================= */

@media (max-width: 420px) {
  .nav--header {
    grid-template-columns: 1fr;
  }

  .footer {
    position: static;
  }
}
