/* ===========================================================
   kreutzweb.de – Stylesheet (v1.0)
   Minimalistisch, responsive, dark-accent
   =========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f9;
  --color-text: #1a1d24;
  --color-text-muted: #5a6472;
  --color-border: #e3e6eb;
  --color-accent: #1e3a5f;      /* dunkles Blau */
  --color-accent-hover: #2a4d7a;
  --color-accent-soft: #eaf1f9;
  --color-success: #2e7d4f;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);

  --container: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--color-text);
}
h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.7rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.logo span { color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.97rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
  }
  .main-nav a {
    display: block;
    padding: .7rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, #fff 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.hero-portrait {
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
@media (max-width: 780px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero .container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-portrait { margin: 0 auto; max-width: 260px; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}
.btn-group { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Video-Links (externe YouTube-Links) ---------- */
.video-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.video-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all .15s ease;
  box-shadow: var(--shadow-sm);
}
.video-link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-text);
  text-decoration: none;
  transform: translateY(-1px);
}
.video-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.video-link span::after {
  content: " ↗";
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
section.alt { background: var(--color-bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 { margin-bottom: .4rem; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Card-Grid (Tools) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.card-linked {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-linked:hover { text-decoration: none; color: inherit; }
.card-thumb {
  width: calc(100% + 2.8rem);
  margin: -1.4rem -1.4rem 1rem;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--color-bg-alt);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-bottom: 1px solid var(--color-border);
}
.card h3 {
  margin-bottom: .3rem;
  font-size: 1.15rem;
}
.card .badge {
  display: inline-block;
  font-size: .75rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: .15rem .55rem;
  border-radius: 999px;
  margin-bottom: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.card p {
  color: var(--color-text-muted);
  font-size: .95rem;
  flex-grow: 1;
}
.card a.card-link {
  font-weight: 600;
  margin-top: .5rem;
  align-self: flex-start;
}
.card a.card-link::after { content: " →"; }

/* ---------- About-Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Badges / Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.2rem; }
.chip {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ---------- Prose / Rechtstexte ---------- */
.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose code {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: .12em .45em;
  border-radius: 4px;
  font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--color-accent);
}
.prose pre {
  background: #0f1722;
  color: #e2e8f0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .92rem;
  line-height: 1.55;
  margin: 1.2rem 0;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose .table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  background: #fff;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.prose th {
  background: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.prose tr:last-child td { border-bottom: 0; }
.prose figure { margin: 1rem 0; }
.prose figure img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ---------- Forms ---------- */
.form-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}
label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
input[type=text], input[type=email], textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--color-text);
}
input:focus, textarea:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
textarea { min-height: 140px; resize: vertical; }

/* ---------- App-Badges ---------- */
.store-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.store-badge:hover { background: #000; color: #fff; text-decoration: none; }
.store-badge small { display: block; font-size: .7rem; opacity: .75; font-weight: 500; }

/* ---------- Donation / PayPal-Hinweis ---------- */
.donate-note {
  margin-top: 1rem;
  font-size: .92rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.donate-note a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
.donate-note a:hover { text-decoration: underline; }
.donate-note svg {
  width: 1.05em;
  height: 1.05em;
  color: #d7305a;
  flex-shrink: 0;
}

/* ---------- Download-Zähler ---------- */
.download-counter {
  display: inline-block;
  margin-left: .85rem;
  color: var(--color-text-muted);
  font-size: .9rem;
  vertical-align: middle;
  min-height: 1em;
}
.download-counter:empty { display: none; }

/* Badge auf der Übersichtsseite downloads.html */
.download-badge {
  position: absolute;
  top: .8rem;
  right: .8rem;
  background: rgba(30, 58, 95, .9);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .55rem;
  border-radius: 999px;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  pointer-events: none;
  z-index: 2;
}
.card { position: relative; }

/* ---------- Notice-Boxen ---------- */
.notice {
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-soft);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1722;
  color: #c7ccd3;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: .95rem;
}
.site-footer a { color: #c7ccd3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid #26303d;
  padding-top: 1.25rem;
  font-size: .85rem;
  color: #8d96a3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---------- Tool-Detail-Seiten ---------- */
.tool-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
}
.tool-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.tool-hero h1 {
  font-size: 2.2rem;
  margin: .3rem 0 .8rem;
}
.tool-hero .lead {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.tool-screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: #fff;
}
.tool-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 780px) {
  .tool-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tool-hero h1 { font-size: 1.7rem; }
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.back-link:hover { color: var(--color-accent); text-decoration: none; }

.download-box {
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.download-box h3 { margin-top: 0; }
.download-box .meta {
  font-size: .9rem;
  color: var(--color-text-muted);
  margin-top: .5rem;
  margin-bottom: 1rem;
}
.download-box .meta strong { color: var(--color-text); }

/* ---------- Logo-Image ---------- */
.logo img { height: 28px; width: auto; display: block; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
