/**
 * PaceLog Basis-Styling
 * Enthält Reset, App-Layout und grundlegende Typografie.
 */

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

html {
  min-height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-base);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-base);
}

h2 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-base);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.app-header {
  width: 100%;
  max-width: var(--content-max-width);
  margin-right: auto;
  margin-left: auto;
  padding: calc(env(safe-area-inset-top) + var(--space-lg)) var(--space-md) var(--space-md);
}

#app-content {
  width: 100%;
  max-width: var(--content-max-width);
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  margin-right: auto;
  margin-left: auto;
  padding: 0 var(--space-md) calc(var(--nav-height) + env(safe-area-inset-bottom) + var(--space-lg));
}

[hidden] {
  display: none !important;
}
