/* Andreas Jurca - Static PHP Site */

/* Self-hosted fonts (DSGVO) — files live in /assets/fonts/ */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/roboto-v51-latin_latin-ext-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/roboto-v51-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/roboto-v51-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/roboto-v51-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/roboto-v51-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/roboto-slab-v36-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/roboto-slab-v36-latin_latin-ext-600.woff2') format('woff2');
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

a { color: #009ee2; text-decoration: none; }
a:hover { text-decoration: underline; color: #0077b6; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  margin-top: 0;
}

p { margin: 0 0 1rem; }

ul { padding-left: 1.5rem; }
ul li { margin-bottom: 0.4rem; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* Navigation */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: #009ee2;
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero / Page banner */
.hero-banner {
  background: url('/uploads/2023/08/Zeichenflaeche-1.png') center center / cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner--plain {
  background: linear-gradient(135deg, #f5f7fa, #e8ecf0);
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 2rem 1.5rem;
}

.hero-banner h1 {
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-align: center;
  margin: 0;
}

.page-title {
  font-size: 1.8rem;
  color: #222;
  margin: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main content area */
.site-main {
  min-height: 60vh;
  padding: 3rem 0;
}

/* Home page */
.home-intro {
  background: linear-gradient(160deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  text-align: center;
}

.home-intro h2 {
  font-size: 2rem;
  color: #009ee2;
  margin-bottom: 1rem;
}

.home-intro p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.home-features {
  padding: 4rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.feature-card h3 { color: #009ee2; }

/* Profile section */
.profile-section {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.profile-info h2 {
  color: #009ee2;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* News / Blog */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.post-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.post-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-card__image--placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #009ee2, #0077b6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.post-card__body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
  display: block;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: #666;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #009ee2;
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  align-self: flex-start;
  text-decoration: none;
}

.post-card__link:hover {
  background: #0077b6;
  color: #fff;
  text-decoration: none;
}

/* Single post */
.post-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.post-single__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #009ee2;
}

.post-single__date {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.post-single__title {
  font-size: 1.8rem;
  color: #222;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.post-single__image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.post-single__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.post-single__content p { margin-bottom: 1.25rem; }
.post-single__content a { color: #009ee2; }
.post-single__content ul { margin-bottom: 1rem; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #009ee2;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination a {
  border: 1px solid #009ee2;
  color: #009ee2;
  text-decoration: none;
}

.pagination a:hover { background: #009ee2; color: #fff; }

.pagination .current {
  background: #009ee2;
  color: #fff;
  border: 1px solid #009ee2;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: #009ee2;
  margin-bottom: 1rem;
}

.contact-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #009ee2;
  box-shadow: 0 0 0 2px rgba(0,158,226,0.15);
}

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

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: #009ee2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
}

.btn:hover { background: #0077b6; color: #fff; text-decoration: none; }

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #009ee2;
  display: inline-block;
}

.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: #aaa;
}

.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}

.social-link:hover {
  background: #009ee2;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #777;
}

.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: #fff; }

/* Impressum / Privacy / Static pages */
.static-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.static-page h2 { color: #009ee2; }
.static-page h3 { color: #333; }

/* Alert/notice boxes */
.notice {
  background: #e8f4fd;
  border-left: 4px solid #009ee2;
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 200;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-toggle { display: block; }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner { min-height: 140px; }

  .home-intro h2 { font-size: 1.5rem; }

  .post-single__title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .site-logo img { height: 50px; }
  .site-main { padding: 2rem 0; }
}

/* Cookie/Consent banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: #222;
  border: 1px solid #d9dde2;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  z-index: 9999;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: #009ee2;
}
.cookie-banner__text { margin: 0 0 0.9rem; }
.cookie-banner__text a { color: #009ee2; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner__btn {
  appearance: none;
  border: 1px solid #009ee2;
  background: #009ee2;
  color: #fff;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-banner__btn:hover { background: #007fb4; border-color: #007fb4; }
.cookie-banner__btn--ghost { background: transparent; color: #009ee2; }
.cookie-banner__btn--ghost:hover { background: #f0faff; color: #007fb4; }
@media (max-width: 480px) {
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.9rem 1rem; }
}
