/* Allgemeine (globale) Styles – ausgelagert aus index.html */

:root {
  --primary: #4CAF50;
  --primary-dark: #338037;
  --primary-light: #e8f5e9;
  --primary-soft: #F1F8F4;
  --accent: #FF9800;
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --text: #212121;
  --text-muted: #757575;
  --border: #E0E0E0;
  --shadow: rgba(0, 0, 0, 0.08);
  --danger: #F44336;

  /* Typografie (rem, zentral steuerbar) */
  --font-xs: 0.8125rem; /* 13px */
  --font-sm: 0.875rem; /* 14px */
  --font-md: 0.9375rem; /* 15px */
  --font-base: 1rem; /* 16px */
  --font-lg: 1.0625rem; /* 17px */
  --font-xl: 1.125rem; /* 18px */
  --font-2xl: 1.375rem; /* 22px */
  --font-3xl: 1.5rem; /* 24px */
  --font-4xl: 1.75rem; /* 28px */
  --font-5xl: 2rem; /* 30px */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-size: var(--font-base);
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 14px 48px;
  font-size: var(--font-base);
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: all 0.2s ease;
  outline: none;
  resize: vertical;
}

textarea {
  min-height: 56px;
  max-height: 160px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #BDBDBD;
}

button {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-base);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Button-Look auch für <a> */
a.btn-primary,
a.btn-secondary,
a.btn-text {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-lg);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none; /* kein Unterstreichen */
}

.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 10px 0 20px 0;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.footer-content {
  color: var(--text-muted);
  font-size: var(--font-sm);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 520px) {
  :root {
    --font-xs: 0.875rem; /* 14px */
    --font-sm: 0.9375rem; /* 15px */
    --font-md: 1rem; /* 16px */
    --font-base: 1.0625rem; /* 17px */
    --font-lg: 1.125rem; /* 18px */
    --font-xl: 1.1875rem; /* 19px */
    --font-2xl: 1.375rem; /* 22px */
    --font-3xl: 1.5rem; /* 24px */
    --font-4xl: 1.75rem; /* 28px */
    --font-5xl: 2rem; /* 30px */
  }
}
