/* ================================
   Variables
   ================================ */
html {
  -webkit-text-size-adjust: 100%;   /* iOS Safari */
  -ms-text-size-adjust: 100%;       /* IE Mobile */
  text-size-adjust: 100%;           /* alle anderen */
}


:root {
  --color-primary: #4CAF50;
  --color-background: #F9F9F9;
  --color-surface: #FFFFFF;
  --color-text: #333333;
  --radius: 8px;
  --spacing: 1rem;
  --font-base: 'Helvetica Neue', Arial, sans-serif;
}

/* ================================
   Global
   ================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
}

/* ================================
   Header
   ================================ */
h1 {
  margin: 0;
  padding: var(--spacing);
  background-color: var(--color-primary);
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

/* ================================
   Sections
   ================================ */
section {
  margin: var(--spacing);
  padding: var(--spacing);
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--color-primary);
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
}

/* ================================
   Lists
   ================================ */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #EEE;
  display: flex;
  flex-direction: column;
}

li:last-child {
  border-bottom: none;
}

li > a {
  margin-top: 0.25rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

li > a:hover {
  text-decoration: underline;
}

/* ================================
   Links for freie Beiträge
   ================================ */
section p a {
  display: inline-block;
  margin-top: 0.5rem;
  color: white;
  background-color: var(--color-primary);
  padding: 0.5rem var(--spacing);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
}

section p a:hover {
  opacity: 0.9;
}

/* ================================
   Formulare
   ================================ */
form {
  margin: var(--spacing);
  padding: var(--spacing);
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

fieldset {
  border: none;
  margin: 0 0 var(--spacing);
  padding: 0;
}

legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #CCC;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  margin-top: var(--spacing);
}

button:hover {
  opacity: 0.9;
}

/* ================================
   Responsive (ab Tablet)
   ================================ */
@media (min-width: 600px) {

  body {
    padding: var(--spacing);
  }

  h1 {
    font-size: 2rem;
  }

  li {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="datetime-local"],
  button {
    width: auto;
    max-width: 300px;
  }

  form {
    max-width: 500px;
    margin: var(--spacing) auto;
  }
}
/* ================================
   Desktop: Inhalte zentrieren
   ================================ */
@media (min-width: 600px) {
  /* Alle Sections (und optional das Formular) zentralisieren */
  section,
  form {
    width: 1000px;    /* oder z.B. 900px, je nach Wunsch */
    margin-left: auto;
    margin-right: auto;
  }

  /* Optional: auch das gesamte body-Innere zentrieren */
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Buttons & Inputs etwas schmäler halten */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="datetime-local"],
  button {
    max-width: 300px;
  }
}
