/* Reset & Basics */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #111827;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: radial-gradient(circle at top left, #3b82f6, #1d4ed8 45%, #020617 100%);
  color: #e5e7eb;
  padding: 24px 0 30px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.35);
  background: rgba(15, 23, 42, 0.5);
}

.logo span {
  color: #38bdf8;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.main-nav a {
  color: #cbd5f5;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-nav a:hover {
  border-color: rgba(148, 163, 184, 0.7);
}

.main-nav a.active {
  border-color: rgba(248, 250, 252, 0.9);
  background: rgba(15, 23, 42, 0.6);
}

.header-text {
  flex: 1 1 250px;
}

.header-text h1 {
  font-size: 1.9rem;
  margin-bottom: 4px;
}

.header-text p {
  font-size: 0.95rem;
  color: #cbd5f5;
}

.search-wrapper {
  flex: 0 0 260px;
}

.search-wrapper input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-wrapper input::placeholder {
  color: #64748b;
}

.search-wrapper input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
  background: #020617;
}

/* Blogliste */
main {
  padding: 26px 0 40px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Blog Card */
.blog-card {
  background: radial-gradient(circle at top left, #1e293b, #020617 52%);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 1);
  border-color: rgba(56, 189, 248, 0.75);
}

/* Bildbereich */
.blog-image {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

/* Badges */
.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #0f172a;
  background: #e5e7eb;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.7);
}

.badge-blue { background: #38bdf8; }
.badge-green { background: #22c55e; }
.badge-orange { background: #fb923c; }
.badge-purple { background: #a855f7; }
.badge-teal { background: #14b8a6; }

/* Inhalt */
.blog-content {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #e5e7eb;
}

.blog-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.blog-content h2 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.blog-content p {
  font-size: 0.95rem;
  color: #cbd5f5;
}

/* Button / Link */
.btn-read {
  margin-top: 6px;
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #38bdf8, #1d4ed8);
  color: #0b1120;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.btn-read::after {
  content: "→";
  font-size: 0.95rem;
}

.btn-read:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.8);
  filter: brightness(1.08);
}

.btn-read:active {
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid #1e293b;
  padding: 18px 20px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  background: #020617;
}

.site-footer a {
  color: #cbd5f5;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-footer a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  text-decoration: underline;
}

.footer-graphic {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(248, 250, 252, 0.85), transparent 55%),
    conic-gradient(from 210deg, #38bdf8, #a855f7, #f97316, #38bdf8);
  padding: 2px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
}

.footer-graphic::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at top, #020617, #020617 65%, #020617 100%);
}

/* Search - hidden state */
.blog-card.hidden {
  display: none;
}

/* Einzelner Blog-Beitrag (Unterseite) */
.post-header {
  margin: 26px auto 12px;
  color: #e5e7eb;
}

.post-header h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.post-header .blog-meta {
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #9ca3af;
}

.breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  transition: background 0.15s ease, color 0.15s ease;
}

.breadcrumb a:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #cbd5f5;
  text-decoration: underline;
}

.post-hero {
  margin: 0 auto 18px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.post-hero img {
  width: 100%;
  display: block;
}

.post-body {
  margin: 0 auto 32px;
  color: #e5e7eb;
  max-width: 780px;
  position: relative;
}

.post-body p {
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: #d1d5db;
}

.post-body h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.post-body ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 0.96rem;
}

.post-body table th,
.post-body table td {
  padding: 8px 10px;
  border: 1px solid #1f2937;
}

.post-body table th {
  background: #111827;
  color: #e5e7eb;
  text-align: left;
}

.post-body a {
  color: #38bdf8;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.post-body a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  text-decoration: underline;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease;
}

.back-link::before {
  content: "←";
}

.back-link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #cbd5f5;
  text-decoration: underline;
}

/* Impressum */
.impressum {
  max-width: 780px;
  margin: 26px auto 32px;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.impressum h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.impressum h2 {
  font-size: 1.2rem;
  margin-top: 18px;
  margin-bottom: 6px;
}

.impressum p {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-image {
    max-height: 220px;
  }

  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-header {
    padding: 16px 0 24px;
  }

  .header-inner {
    gap: 12px;
  }

  .logo {
    font-size: 0.8rem;
    padding: 3px 8px;
  }

  .header-text h1 {
    font-size: 1.6rem;
    margin-bottom: 2px;
  }

  .header-text p {
    font-size: 0.9rem;
  }

  .main-nav {
    font-size: 0.8rem;
    gap: 8px;
  }

  .main-nav a {
    padding: 3px 8px;
  }

  .search-wrapper {
    flex: 0 0 100%;
    order: 4;
  }

  .search-wrapper input {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .blog-card {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
    border-radius: 16px;
  }

  .blog-image {
    min-height: 180px;
  }

  .blog-content {
    padding: 14px 12px 12px;
  }

  .blog-content h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .blog-content p {
    font-size: 0.9rem;
  }

  .blog-meta {
    font-size: 0.75rem;
  }

  .btn-read {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .post-header h1 {
    font-size: 1.6rem;
  }

  .post-hero {
    margin: 0 auto 14px;
    border-radius: 16px;
  }

  .post-body {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .post-body h2 {
    font-size: 1.15rem;
    margin-top: 14px;
    margin-bottom: 6px;
  }

  .post-body table {
    font-size: 0.9rem;
  }

  .post-body table th,
  .post-body table td {
    padding: 6px 8px;
  }

  .seo-links {
    margin-top: 24px;
    padding: 18px 14px 20px;
    border-radius: 16px;
  }

  .seo-links h2 {
    font-size: 1.25rem;
  }

  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .seo-card {
    border-radius: 12px;
    padding: 12px 12px 14px;
  }

  .seo-card h3 {
    font-size: 0.95rem;
  }

  .seo-card p {
    font-size: 0.85rem;
  }

  .impressum h1 {
    font-size: 1.6rem;
  }

  .impressum h2 {
    font-size: 1.1rem;
    margin-top: 14px;
  }

  .impressum {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .logo {
    font-size: 0.7rem;
    padding: 2px 5px;
  }

  .logo span {
    display: inline;
  }

  .main-nav {
    display: none;
  }

  .main-nav a {
    padding: 2px 5px;
    font-size: 0.7rem;
  }

  .header-text {
    display: none;
  }

  .search-wrapper {
    width: auto;
    flex: 0 0 auto;
  }

  .search-wrapper input {
    padding: 6px 8px;
    font-size: 0.7rem;
    width: 200px;
  }

  .search-wrapper input::placeholder {
    font-size: 0.7rem;
  }

  .blog-list {
    gap: 16px;
  }

  .blog-card {
    grid-template-columns: 1fr;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.7);
  }

  .blog-image {
    min-height: 140px;
    max-height: 160px;
  }

  .badge {
    left: 10px;
    top: 10px;
    padding: 3px 8px;
    font-size: 0.65rem;
  }

  .blog-content {
    padding: 12px 10px 10px;
    gap: 8px;
  }

  .blog-meta {
    font-size: 0.7rem;
  }

  .blog-content h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 3px;
  }

  .blog-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .btn-read {
    padding: 5px 12px;
    font-size: 0.75rem;
    margin-top: 4px;
  }

  main {
    padding: 16px 0 24px;
  }

  .back-link {
    font-size: 0.8rem;
    margin-bottom: 10px;
    margin-top: 0;
  }

  .post-header {
    margin: 16px auto 8px;
  }

  .post-header h1 {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }

  .post-hero {
    margin: 0 auto 12px;
    border-radius: 12px;
  }

  .post-body {
    max-width: 100%;
    margin: 0 auto 24px;
    font-size: 0.9rem;
  }

  .post-body p {
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .post-body h2 {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 1.05rem;
  }

  .post-body ul {
    margin-left: 16px;
    margin-bottom: 10px;
    font-size: 0.88rem;
  }

  .post-body table {
    width: 100%;
    font-size: 0.8rem;
    margin: 8px 0 12px;
  }

  .post-body table th,
  .post-body table td {
    padding: 5px 6px;
    border: 1px solid #1f2937;
  }

  .post-body a {
    word-break: break-word;
  }

  .seo-links {
    margin-top: 16px;
    padding: 14px 10px 16px;
    border-radius: 12px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .seo-links h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .seo-links .seo-intro {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .seo-grid,
  .seo-grid-partner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seo-card {
    border-radius: 10px;
    padding: 10px 10px 12px;
  }

  .seo-card h3 {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .seo-card p {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .seo-link {
    font-size: 0.8rem;
    margin-top: 4px;
  }

  .impressum {
    max-width: 100%;
    margin: 16px auto 24px;
    font-size: 0.88rem;
  }

  .impressum h1 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .impressum h2 {
    font-size: 1rem;
    margin-top: 12px;
    margin-bottom: 4px;
  }

  .impressum p {
    margin-bottom: 6px;
    line-height: 1.5;
  }

  .site-footer {
    padding: 12px 12px 16px;
    font-size: 0.75rem;
  }

  .footer-graphic {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .site-header {
    padding: 6px 0;
  }

  .header-text h1 {
    font-size: 1.1rem;
  }

  .header-text p {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .search-wrapper input {
    padding: 5px 7px;
    font-size: 0.65rem;
    width: 150px;
  }

  .blog-card {
    gap: 0;
  }

  .blog-image {
    min-height: 120px;
  }

  .blog-content {
    padding: 10px 8px;
  }

  .blog-content h2 {
    font-size: 0.95rem;
  }

  .blog-content p {
    font-size: 0.8rem;
  }

  .btn-read {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .post-header h1 {
    font-size: 1.2rem;
  }

  .post-body {
    font-size: 0.85rem;
  }

  .post-body p {
    font-size: 0.83rem;
  }

  .post-body h2 {
    font-size: 1rem;
  }

  .post-body table {
    font-size: 0.75rem;
  }

  .seo-links {
    padding-left: 20px;
    padding-right: 20px;
  }

  .seo-links h2 {
    font-size: 1rem;
  }

  .seo-card h3 {
    font-size: 0.85rem;
  }

  .seo-card p {
    font-size: 0.75rem;
  }

  .impressum h1 {
    font-size: 1.2rem;
  }

  .impressum h2 {
    font-size: 0.95rem;
  }
}

/* SEO Links / Standorte Grid */
.seo-links {
  margin-top: 32px;
  padding: 22px 18px 24px;
  background: #020617;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
  border: 1px solid #1f2937;
}

.seo-links h2 {
  color: #e5e7eb;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.seo-links .seo-subheading {
  margin-top: 22px;
  margin-bottom: 8px;
}

.seo-links .seo-intro {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 14px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-grid-partner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-card {
  background: radial-gradient(circle at top left, #020617, #020617 60%, #020617 100%);
  border-radius: 16px;
  padding: 14px 14px 16px;
  border: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-card h3 {
  font-size: 1rem;
  color: #e5e7eb;
}

.seo-card p {
  font-size: 0.9rem;
  color: #9ca3af;
}

.seo-link {
  margin-top: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  min-height: 40px;
  transition: background 0.15s ease, color 0.15s ease;
}

.seo-link::after {
  content: "↗";
  font-size: 0.8rem;
}

.seo-link:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .seo-links {
    padding: 18px 14px 20px;
  }
  .seo-grid,
  .seo-grid-partner {
    grid-template-columns: minmax(0, 1fr);
  }
}
