/* dabazi.de – Gestaltung nach dem Vorbild der früheren WordPress-Seite (YOOtheme) */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-72f3b0b7.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-c25c5cc1.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlowcondensed-e08f262f.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlowcondensed-a075a9d3.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #464646;
  --dark: #262626;
  --muted: #9c9c9c;
  --accent: #ffd49b;
  --zigzag: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpolygon%20fill%3D%22%23FFD49B%22%20points%3D%220%209%205.03%204.35%2010%208.98%2010%205.62%205.03%201%200%205.63%200%209%22%2F%3E%3C%2Fsvg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background: #fff;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-y: scroll;
  scroll-behavior: smooth;
}
body { margin: 0; }

a { color: inherit; text-decoration: none; transition: color .1s ease-in-out, background-color .1s ease-in-out; }
a:hover { color: var(--dark); }

h1, h5 { margin: 0 0 20px; color: var(--dark); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
h1 { font-size: 40.8px; letter-spacing: .75px; }
h5 { font-size: 16px; letter-spacing: 0; }
@media (min-width: 960px) { h1 { font-size: 48px; } }
p { margin: 0 0 20px; }
* + p { margin-top: 20px; }
* + h5 { margin-top: 40px; }
.panel > :last-child { margin-bottom: 0; }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 10px; top: 10px; padding: 10px 15px; background: #fff; z-index: 10; }

/* Seitenbreite */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; box-sizing: content-box; }
@media (min-width: 640px) { .container { padding: 0 30px; } }
@media (min-width: 960px) { .container { padding: 0 40px; } }

/* Kopfzeile */
.navbar { display: flex; justify-content: flex-end; }
.nav { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative; z-index: 1;
  display: flex; align-items: center; min-height: 100px; padding: 0 10px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase;
  color: var(--text);
}
.nav a::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 25px; height: 10px;
  background: transparent; transition: background-color .1s ease-in-out;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--dark); }
.nav a:hover::before, .nav a[aria-current="page"]::before { background-image: var(--zigzag); }
@media (min-width: 960px) { .nav { gap: 50px; } .nav a { padding: 0 15px; } }

/* Abschnitte */
.section { padding: 40px 0; }
@media (min-width: 960px) { .section { padding: 70px 0; } }

.grid { display: grid; gap: 30px; }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* Foto mit weicher Maske wie im Original */
.mask {
  display: inline-block;
  -webkit-mask-image: url(../img/mask.svg); mask-image: url(../img/mask.svg);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: round; mask-repeat: round;
}

/* Social-Icons und „To Top“ */
.footer-row { display: flex; flex-direction: column; gap: 15px; }
@media (min-width: 960px) { .footer-row { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 30px; } }
.social { display: flex; align-items: center; min-height: 26px; gap: 15px; margin: 0; padding: 0; list-style: none; }
.social a { display: block; line-height: 0; }
.social a:hover { color: var(--muted); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.totop-wrap { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.meta { font-size: 15px; line-height: 1.4; color: var(--muted); text-transform: uppercase; }
.totop { display: block; padding: 15px; line-height: 0; color: var(--accent); background: var(--dark); }
.totop:hover { color: var(--text); background: var(--accent); }
