/* TenantPlus – Basis-Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #0078d4;
  color: white;
  padding: 24px 0;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

header .subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* Navigation */
nav {
  background: #005a9e;
  padding: 0;
}

nav .container {
  display: flex;
  gap: 0;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

/* Main */
main {
  padding: 32px 0;
}

/* Dashboard-Karten */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #0078d4;
}

.card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 20px;
  background: #0078d4;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #005a9e;
}

/* Footer */
footer {
  border-top: 1px solid #ddd;
  padding: 16px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 40px;
}

/* Formulare */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
}

td {
  font-size: 0.9rem;
}

/* Benachrichtigungen */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
