/* schmitzmartin.de – Design Version 3.2
   Komplettdatei: Layout, Mobile Navigation, Karten, Panels, PHP-Fotogalerie
*/

:root {
  --bg: #071017;
  --bg-deep: #03070a;
  --text: #f5f7fa;
  --muted: #b7c0c9;
  --muted-2: #87919d;
  --line: rgba(255,255,255,0.14);
  --line-strong: rgba(246,182,64,0.42);
  --accent: #f6b640;
  --accent-2: #ffd36d;
  --accent-soft: rgba(246,182,64,0.14);
  --card: rgba(255,255,255,0.075);
  --card-strong: rgba(10,22,32,0.84);
  --shadow: 0 24px 80px rgba(0,0,0,0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(246,182,64,0.13), transparent 28%),
    radial-gradient(circle at 8% 82%, rgba(255,255,255,0.06), transparent 26%),
    linear-gradient(135deg, #071017 0%, #0b1823 48%, #03070a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.42), transparent 78%);
  z-index: -1;
}

body.home {
  background:
    linear-gradient(90deg, rgba(3,8,12,0.99) 0%, rgba(3,8,12,0.86) 39%, rgba(3,8,12,0.46) 100%),
    url("/assets/hero-bg.jpg") center top / cover no-repeat fixed,
    var(--bg);
}

body.photo {
  background:
    radial-gradient(circle at 16% 12%, rgba(246,182,64,0.20), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(135deg, #090909 0%, #171b1f 50%, #03070a 100%);
}

body.devops {
  background:
    radial-gradient(circle at 82% 14%, rgba(246,182,64,0.14), transparent 28%),
    linear-gradient(135deg, rgba(3,8,12,0.97), rgba(5,18,31,0.98)),
    repeating-linear-gradient(90deg, rgba(246,182,64,0.06) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 82px);
}

body.secure {
  background:
    radial-gradient(circle at 80% 18%, rgba(246,182,64,0.16), transparent 28%),
    radial-gradient(circle at 22% 76%, rgba(71,117,255,0.08), transparent 28%),
    linear-gradient(135deg, #06131d 0%, #071017 54%, #020405 100%);
}

a { color: inherit; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px clamp(20px, 5vw, 72px);
}

header, main, footer {
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.08em;
  background:
    linear-gradient(135deg, rgba(246,182,64,0.18), rgba(255,255,255,0.045)),
    rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}

.logo span:first-child { color: #fff; }
.logo span:last-child { color: var(--accent); }

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: 0.18s ease;
}

nav a:hover,
nav a.active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

main {
  flex: 1;
  padding: clamp(56px, 8vw, 104px) 0 56px;
}

.home main {
  display: grid;
  align-content: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.45rem, 6vw, 6.15rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

h2 { letter-spacing: -0.025em; }

.intro {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  margin: 28px 0 0;
}

strong { color: var(--text); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
  max-width: 1120px;
}

.card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045)),
    var(--card);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: block;
  min-height: 100%;
  transition: 0.18s ease;
}

.card:hover {
  border-color: rgba(246,182,64,0.52);
  transform: translateY(-3px);
  background:
    linear-gradient(145deg, rgba(246,182,64,0.13), rgba(255,255,255,0.05)),
    var(--card);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.card h2 {
  font-size: 1.06rem;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.panel {
  max-width: 940px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)),
    var(--card-strong);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.42rem;
}

.panel h3 { margin-bottom: 8px; }

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.68;
}

.panel ul { padding-left: 1.2rem; }

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 24px;
}

.note {
  margin-top: 28px;
  max-width: 760px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(246,182,64,0.10), rgba(255,255,255,0.045));
  border-radius: 22px;
  padding: 20px 22px;
  color: var(--muted);
  line-height: 1.55;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}

.button {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(246,182,64,0.16);
}

/* Fotografie Themenkacheln */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.gallery-tile {
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background:
    radial-gradient(circle at 25% 20%, rgba(246,182,64,0.38), transparent 30%),
    linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.68));
  z-index: 0;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 9px);
  opacity: 0.26;
  z-index: 0;
}

.gallery-tile span,
.gallery-tile small {
  position: relative;
  z-index: 1;
}

.gallery-tile span {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.gallery-tile small {
  color: var(--muted);
  margin-top: 7px;
}

.gallery-tile:hover {
  border-color: rgba(246,182,64,0.58);
  transform: translateY(-3px);
}

.gallery-tile.street {
  background: linear-gradient(135deg, rgba(20,20,20,0.2), rgba(0,0,0,0.7)), linear-gradient(45deg, #2a2a2a, #090909);
}
.gallery-tile.landscape {
  background: linear-gradient(135deg, rgba(246,182,64,0.12), rgba(0,0,0,0.6)), linear-gradient(45deg, #193325, #0b1410);
}
.gallery-tile.portrait {
  background: linear-gradient(135deg, rgba(246,182,64,0.18), rgba(0,0,0,0.65)), linear-gradient(45deg, #2d221b, #090807);
}
.gallery-tile.animals {
  background: linear-gradient(135deg, rgba(246,182,64,0.12), rgba(0,0,0,0.64)), linear-gradient(45deg, #26230f, #090909);
}
.gallery-tile.tech {
  background: linear-gradient(135deg, rgba(246,182,64,0.14), rgba(0,0,0,0.72)), repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 22px), linear-gradient(45deg, #0c1823, #03070a);
}
.gallery-tile.monochrome {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(0,0,0,0.74)), linear-gradient(45deg, #464646, #050505);
}

/* Automatische PHP-Fotogalerie */

.gallery-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gallery-category-nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  padding: 8px 11px;
  border-radius: 12px;
  transition: 0.18s ease;
}

.gallery-category-nav a:hover {
  border-color: var(--line-strong);
  background: rgba(246,182,64,0.10);
}

.empty-gallery { color: var(--muted-2); }

.gallery-list {
  display: grid;
  gap: 28px;
}

.gallery-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.gallery-block:first-child {
  border-top: none;
  padding-top: 0;
}

.gallery-block-header h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.gallery-block-header p {
  margin: 0 0 16px;
  color: var(--muted-2);
}

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

.photo-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 14px 35px rgba(0,0,0,0.20);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.photo-thumb:hover img { transform: scale(1.045); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 28px 110px rgba(0,0,0,0.55);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.10);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

footer .links {
  display: flex;
  gap: 18px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body.home {
    background:
      linear-gradient(180deg, rgba(3,8,12,0.96), rgba(3,8,12,0.82)),
      url("/assets/hero-bg.jpg") center top / cover no-repeat fixed,
      var(--bg);
  }

  .page { padding: 24px 18px; }

  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }

  nav a {
    font-size: 0.86rem;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.045);
  }

  h1 { font-size: clamp(2.3rem, 13vw, 4rem); }

  .cards,
  .gallery-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .gallery-tile { min-height: 148px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  footer { flex-direction: column; }
  footer .links { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .brand { gap: 12px; }
  .logo { width: 48px; height: 48px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: 0.82rem; }
  .panel { padding: 20px; }
  .photo-grid { grid-template-columns: 1fr; }
}
