/* === Globale Grundeinstellungen === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #fff;
  color: #222;
  overflow-y: auto;
}

/* === Layoutbereiche: header, nav, footer === */
header,
footer,
nav {
  max-width: 1024px;
  margin: auto;
  padding: 1rem;
  text-align: center;
}

nav {
  background: #f3f3f3;
  margin-bottom: 1rem;
}

nav img {
  vertical-align: middle;
  margin-right: 6px;
}

/* === Flex-Layout Hauptcontainer === */
.container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  height: 100%;
}

.box {
  flex: 0 0 5%;
  background-color: #fff;
}

.content-box {
  flex: 1;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow-y: auto;
}

/* === Textausrichtung === */
.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

/* === Links === */
a {
  color: #049434;
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}
#links a {
  color: #337ab7;
  font-style: italic;
}

/* === Buttons (global) === */
button,
.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:focus,
a:focus {
  outline: 2px solid #005f99;
  outline-offset: 2px;
}
button:hover {
  background-color: #005f99;
}

/* === Spezielle Buttonfarben === */
.accept { background-color: #28a745; color: white; }
.reject { background-color: #dc3545; color: white; }
.save    { background-color: #007bff; color: white; }
.settings { background-color: #ffc107; color: black; }

/* === Cookie-Hinweis === */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #222;
  color: white;
  padding: 20px;
  z-index: 9999;
  display: none;
  font-size: 14px;
}

.cookie-modal h3 {
  margin-top: 0;
}

.cookie-categories {
  margin: 15px 0;
}
.cookie-categories label {
  display: block;
  margin-bottom: 5px;
}
.cookie-buttons {
  margin-top: 15px;
}

/* === Kontaktformular === */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* === Responsive Verhalten === */
@media (max-width: 800px) {
  .container {
    flex-direction: column;
    height: auto;
  }
}
