/* frankschaefer.eu – Professionelles Design, angelehnt an AlltagQuest/hilfeplaene */

:root {
  --bg: #f1f5f9;
  --bg-alt: #e2e8f0;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,0.10);
  --dark: #020617;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --w: 960px;
  --pad: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px;
  background: var(--panel); outline: 2px solid var(--accent); z-index: 60;
}

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.header {
  background: var(--dark);
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-sep {
  margin: 0 0.6rem;
  opacity: 0.3;
  font-weight: 300;
}
.brand-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.header-nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  font-size: 0.88rem;
}
.header-nav a {
  opacity: 0.85;
  transition: opacity 0.2s;
}
.header-nav a:hover {
  opacity: 1;
  text-decoration: none;
}
.header-nav .cta {
  background: var(--accent);
  color: var(--dark) !important;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none !important;
  opacity: 1;
  transition: background 0.2s;
}
.header-nav .cta:hover {
  background: var(--accent-hover);
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at top left, #0e4a5a, var(--dark));
  color: #e5e7eb;
  padding: 3.5rem 0;
}
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1rem;
  max-width: 42rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
}
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.12);
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Sektionen */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.section-desc {
  color: var(--muted);
  max-width: 50rem;
  margin-bottom: 1.5rem;
}

/* Projekt-Karten */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
.project-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: rgba(6,182,212,0.35);
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
  text-decoration: none;
}
.project-card strong {
  font-size: 0.95rem;
}
.project-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.project-card .arrow {
  float: right;
  opacity: 0.5;
  font-size: 1rem;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.contact-info dt {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}
.contact-info dd a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Formular */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.hp { display: none !important; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover {
  background: rgba(15,23,42,0.04);
  border-color: var(--muted);
}

.form-help {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.form-help a { text-decoration: underline; text-underline-offset: 3px; }

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.alert-ok { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); }
.alert-err { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); }

/* Notice */
.notice {
  border: 1px solid rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.06);
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 1rem;
}
.notice strong { color: var(--text); }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer a {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer a:hover { color: #e5e7eb; }
.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Cookie-Modal */
.modal-open { overflow: hidden; }
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 720px) {
  .modal { align-items: center; }
}
.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.4);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  width: min(600px, 100%);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(2,6,23,0.25);
  padding: 1.5rem;
}
.modal-title h3 {
  margin: 0;
  font-size: 0.95rem;
}
.modal-title p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.modal-actions a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.82rem;
}

/* Back to Top */
.btt {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e5e7eb;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 50;
}
.btt.visible {
  opacity: 1;
  visibility: visible;
}
.btt:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .header-nav { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 2rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
