fetchOne('SELECT id FROM page LIMIT 1')) { fwrite(STDERR, "Diese Datenbank enthält bereits Seiten. Abbruch, damit nichts überschrieben wird.\n"); exit(1); } $media = new MediaLibrary($db, $mediaDirectory); $settings = new SiteSettings($db, $media); $pages = new PageRepository($db, new DocumentValidator(), $settings); $partials = new PartialRepository($db, new DocumentValidator()); $theme = new Theme($db); $name = 'Kantarci Markt'; // Die Domain kantarci-markt.de hat Mailserver (23.09.2026). Ob es das Postfach info@ gibt, ist // nicht bestätigt – deshalb steht es nur im Impressum und dort als „NOCH ZU PRÜFEN“. $mail = 'info@kantarci-markt.de'; $strasse = 'Wilhelm-Drapp-Straße'; $plz = '76532'; $ort = 'Baden-Baden'; $SCHEMA = 24; // --------------------------------------------------------------------------------------------- // Bausteine // --------------------------------------------------------------------------------------------- $seiten = static fn (string $w): array => ['top' => $w, 'right' => $w, 'bottom' => $w, 'left' => $w]; $nurOben = static fn (string $w): array => ['top' => $w, 'right' => '0px', 'bottom' => '0px', 'left' => '0px']; $nurLinks = static fn (string $w): array => ['top' => '0px', 'right' => '0px', 'bottom' => '0px', 'left' => $w]; $nurUnten = static fn (string $w): array => ['top' => '0px', 'right' => '0px', 'bottom' => $w, 'left' => '0px']; $rund = static fn (string $w): array => ['topLeft' => $w, 'topRight' => $w, 'bottomRight' => $w, 'bottomLeft' => $w]; $section = static function (string $id, array $children, array $style = [], ?string $anchor = null, string $css = ''): array { $block = ['id' => $id, 'type' => 'section', 'children' => $children, 'style' => $style]; if (null !== $anchor) { $block['anchor'] = $anchor; } if ('' !== $css) { $block['css'] = $css; } return $block; }; $row = static function (string $id, array $children, array $design = [], array $style = []): array { $block = ['id' => $id, 'type' => 'row', 'children' => $children]; if ([] !== $design) { $block['layout'] = ['design' => $design]; } if ([] !== $style) { $block['style'] = $style; } return $block; }; /** Eine Zeile, die nebeneinander stellt statt zu rastern. */ $zeile = static function (string $id, array $children, string $gap, array $extra = [], array $mobil = [], array $tablet = []) use ($row): array { $style = ['desktop' => ['display' => 'flex', 'alignItems' => 'center', 'gap' => $gap, 'margin' => ['top' => '0px'], ...$extra]]; if ([] !== $tablet) { $style['tablet'] = $tablet; } if ([] !== $mobil) { $style['mobile'] = $mobil; } return $row($id, $children, [], $style); }; $column = static function (string $id, array $children, array $style = [], string $css = ''): array { $block = ['id' => $id, 'type' => 'column', 'children' => $children]; if ([] !== $style) { $block['style'] = $style; } if ('' !== $css) { $block['css'] = $css; } return $block; }; $heading = static function (string $id, string $text, int $level, array $style = [], string $css = ''): array { $block = ['id' => $id, 'type' => 'heading', 'props' => ['text' => $text, 'level' => $level]]; if ([] !== $style) { $block['style'] = $style; } if ('' !== $css) { $block['css'] = $css; } return $block; }; $text = static function (string $id, string $inhalt, array $style = [], string $css = ''): array { $block = ['id' => $id, 'type' => 'text', 'props' => ['text' => $inhalt]]; if ([] !== $style) { $block['style'] = $style; } if ('' !== $css) { $block['css'] = $css; } return $block; }; /** Eine reine Fläche: der kurze Goldstrich vor der Kleinzeile. */ $flaeche = static function (string $id, array $style, string $css = ''): array { $block = ['id' => $id, 'type' => 'spacer', 'props' => ['size' => 'small'], 'style' => $style]; if ('' !== $css) { $block['css'] = $css; } return $block; }; /** Ein Button ohne den Pfeil des Bausteins. */ $button = static function (string $id, string $text, string $href, array $style = []): array { return ['id' => $id, 'type' => 'button', 'props' => ['text' => $text, 'href' => $href], 'style' => $style, 'css' => '& span{display:none}']; }; $bild = static function (string $id, array $eintrag, string $alt, array $style = [], ?string $href = null, string $css = '', string $bildzeile = ''): array { $gross = end($eintrag['variants']); $props = [ 'src' => $gross['src'], 'alt' => $alt, 'decorative' => '' === $alt, 'width' => $gross['width'], 'height' => $gross['height'], 'mediaId' => $eintrag['id'], 'sources' => array_map(static fn (array $v): array => ['src' => $v['src'], 'width' => $v['width']], $eintrag['variants']), ]; if (null !== $href) { $props['href'] = $href; $props['click'] = 'link'; } if ('' !== $bildzeile) { $props['caption'] = $bildzeile; } $block = ['id' => $id, 'type' => 'image', 'props' => $props, 'style' => $style]; if ('' !== $css) { $block['css'] = $css; } return $block; }; $symbol = static function (string $id, string $name, int $groesse, array $style = []): array { return ['id' => $id, 'type' => 'icon', 'props' => ['icon' => $name, 'size' => $groesse, 'decorative' => true, 'label' => ''], 'style' => $style]; }; /** * Setzt die Einblendungen nach einer Liste, statt sie über das ganze Dokument zu streuen. * * @param array $plan Block-ID => [Art, Verzögerung] */ $einblenden = static function (array $dokument, array $plan): array { $gehen = function (array $bloecke) use (&$gehen, $plan): array { foreach ($bloecke as $i => $block) { if (isset($plan[$block['id'] ?? ''])) { [$art, $verzug] = [...$plan[$block['id']], 'none']; $bloecke[$i]['layout'] = [...($block['layout'] ?? []), 'effects' => ['entrance' => $art, 'delay' => $verzug]]; } if (isset($block['children'])) { $bloecke[$i]['children'] = $gehen($block['children']); } } return $bloecke; }; $dokument['blocks'] = $gehen($dokument['blocks']); return $dokument; }; // Wiederkehrende Gestaltungswerte der Vorlage. $kleinStil = ['fontSize' => '14px', 'fontWeight' => '700', 'letterSpacing' => '0.2em', 'lineHeight' => 1.2, 'textTransform' => 'uppercase']; $linkCss = "& a{color:#123b26;text-decoration:underline;text-underline-offset:3px}\n& a:hover{color:#806222}"; /** Die Kleinzeile in Versalien mit dem kurzen Goldstrich davor („— NEUERÖFFNUNG“). */ $kleinzeile = static function (string $id, string $inhalt, string $farbe, string $strichFarbe = '@gold') use ($text, $zeile, $flaeche, $kleinStil): array { return $zeile($id, [ $flaeche($id.'-strich', ['desktop' => ['width' => '38px', 'height' => '2px', 'backgroundColor' => $strichFarbe, 'flexShrink' => 0]], 'min-height:0'), $text($id.'-text', $inhalt, ['desktop' => [...$kleinStil, 'color' => $farbe, 'margin' => ['bottom' => '0px']]]), ], '12px', ['margin' => ['top' => '0px', 'bottom' => '24px']]); }; // --------------------------------------------------------------------------------------------- // Website, Gestaltung, Medien // --------------------------------------------------------------------------------------------- $db->insert('website', ['id' => 'default', 'name' => $name, 'default_locale' => 'de', 'theme' => '{}']); $theme->save( [ ['key' => 'forst', 'name' => 'Waldgrün', 'value' => '#123b26'], ['key' => 'tief', 'name' => 'Tiefgrün (Fuß)', 'value' => '#0b281a'], ['key' => 'gold', 'name' => 'Gold (Linien)', 'value' => '#ad893b'], ['key' => 'gold-hell', 'name' => 'Gold hell (Flächen, auf Grün)', 'value' => '#d2b978'], ['key' => 'gold-text', 'name' => 'Gold als Schrift auf Creme', 'value' => '#806222'], ['key' => 'gold-titel', 'name' => 'Gold in großen Überschriften', 'value' => '#8c6b27'], ['key' => 'creme', 'name' => 'Creme', 'value' => '#fcf9f2'], ['key' => 'sand', 'name' => 'Sand (Abschluss)', 'value' => '#f4efe3'], ['key' => 'text', 'name' => 'Fließtext', 'value' => '#58685e'], ['key' => 'text-gruen', 'name' => 'Fließtext auf Grün', 'value' => '#b7c8c1'], ['key' => 'klein-gruen', 'name' => 'Kleinzeile auf Grün', 'value' => '#a9bdb4'], ['key' => 'fuss-text', 'name' => 'Schrift im Fuß', 'value' => '#a9bab2'], ['key' => 'papier', 'name' => 'Weiß', 'value' => '#ffffff'], ], [ ['key' => 'body', 'name' => 'Fließtext', 'family' => 'DM Sans', 'source' => 'google', 'weights' => [400, 500, 700], 'fallback' => 'sans-serif'], ['key' => 'heading', 'name' => 'Überschriften', 'family' => 'Georgia', 'source' => 'system', 'weights' => [400], 'fallback' => 'serif'], ], ['fontFamily' => 'body', 'headingFontFamily' => 'heading', 'fontSize' => '16px', 'lineHeight' => 1.6, 'color' => '@forst', 'backgroundColor' => '@creme', 'linkColor' => '@forst', 'containerWidth' => '1280px', 'headingScale' => 1.25, 'linkUnderline' => false, 'imageRadius' => '0px'], ['shape' => 'square', 'appearance' => 'solid', 'size' => 'normal', 'fontFamily' => 'inherit', 'fontSize' => 15, 'fontWeight' => 700, 'letterSpacing' => 0, 'textTransform' => 'none', 'backgroundColor' => '@forst', 'color' => '@papier', 'hoverBackgroundColor' => '#1d5236', 'hoverColor' => '@papier'], ); echo "Farben, Schriften und Buttons gesetzt\n"; $medien = []; foreach ([ 'logo' => ['logo.png', 'Kantarci Markt – grünes K mit goldener Waage'], 'symbol' => ['symbol.png', 'Bildmarke von Kantarci Markt'], 'stempel' => ['stempel.png', ''], 'markt' => ['market.jpg', 'Frisches Blattgemüse an einem Marktstand – Beispielbild'], 'tomaten' => ['vegetables.jpg', 'Frische Strauchtomaten – Beispielbild'], ] as $schluessel => [$datei, $alt]) { $pfad = rtrim($assets, '/\\').'/'.$datei; if (!is_file($pfad)) { fwrite(STDERR, "Bild fehlt: $pfad\n"); exit(1); } $eintrag = $media->upload(new UploadedFile($pfad, basename($datei), null, null, true)); $media->update($eintrag['id'], ['title' => pathinfo($datei, PATHINFO_FILENAME), 'alt' => $alt, 'archived' => false, 'version' => $eintrag['version']]); $medien[$schluessel] = $media->find($eintrag['id']); echo "Bild übernommen: $datei\n"; } // --------------------------------------------------------------------------------------------- // Kopf- und Fußbereich // --------------------------------------------------------------------------------------------- $kopf = [ 'schemaVersion' => $SCHEMA, 'title' => 'Kopfbereich', 'description' => 'Erscheint auf jeder Seite über dem Inhalt.', 'blocks' => [ $section('kopf', [ $zeile('kopf-zeile', [ $bild('kopf-logo', $medien['logo'], 'Kantarci Markt – zur Startseite', [ // Volle Breite bis 300 px: sonst hängt die Breite in der zentrierten Zeile am // geladenen Bild, und der Kopf springt beim Laden (CLS). 'desktop' => ['width' => '100%', 'maxWidth' => '300px', 'margin' => $seiten('0px')], 'mobile' => ['maxWidth' => '230px'], ], '/', '& img{display:block;width:100%;height:auto}'), ], '0px', ['justifyContent' => 'center']), ], [ 'desktop' => ['backgroundColor' => '@creme', 'padding' => ['top' => '18px', 'bottom' => '18px'], 'borderWidth' => $nurUnten('1px'), 'borderStyle' => 'solid', 'borderColor' => '@gold'], 'mobile' => ['padding' => ['top' => '14px', 'bottom' => '14px']], ]), ], ]; $fussLink = "& a{color:#a9bab2}\n& a:hover{color:#fff;text-decoration:underline}"; $fuss = [ 'schemaVersion' => $SCHEMA, 'title' => 'Fußbereich', 'description' => 'Erscheint auf jeder Seite unter dem Inhalt.', 'blocks' => [ $section('fuss', [ $zeile('fuss-zeile', [ $text('fuss-copyright', '© 2026 '.$name, ['desktop' => ['fontSize' => '14px', 'letterSpacing' => '0.08em', 'margin' => ['bottom' => '0px']]]), $text('fuss-adresse', $strasse.' · '.$ort, ['desktop' => ['fontSize' => '14px', 'letterSpacing' => '0.08em', 'margin' => ['bottom' => '0px']]]), $zeile('fuss-links', [ // Impressum und Datenschutz kommen aus den Einstellungen, nicht aus einem Menü. ['id' => 'fuss-rechtliches', 'type' => 'legal', 'props' => ['label' => 'Rechtliches'], 'style' => ['desktop' => ['fontSize' => '14px', 'gap' => '4px', 'color' => '@fuss-text']], 'css' => $fussLink], $text('fuss-agentur', 'Website by Kant-IT Solutions', ['desktop' => ['fontSize' => '14px', 'margin' => ['bottom' => '0px']]], $fussLink), ], '22px', ['flexWrap' => 'wrap'], ['rowGap' => '10px', 'columnGap' => '18px']), ], '20px', ['justifyContent' => 'space-between', 'flexWrap' => 'wrap'], ['flexDirection' => 'column', 'alignItems' => 'flex-start', 'gap' => '12px']), ], [ 'desktop' => ['backgroundColor' => '@tief', 'color' => '@fuss-text', 'padding' => ['top' => '28px', 'bottom' => '28px']], ]), ], ]; $partials->create('header', 'default', 'Kopfbereich', $kopf); $partials->create('footer', 'default', 'Fußbereich', $fuss); echo "Kopf- und Fußbereich angelegt\n"; // --------------------------------------------------------------------------------------------- // Startseite // --------------------------------------------------------------------------------------------- /** Ein Versprechen: Nummer, Titel, Satz – auf dem Telefon rückt der Satz unter den Titel. */ $versprechen = static fn (string $n, string $titel, string $satz): array => $zeile('versprechen-'.$n, [ $text('versprechen-'.$n.'-nummer', $n, ['desktop' => ['fontSize' => '13px', 'fontWeight' => '700', 'color' => '@gold-hell', 'flexBasis' => '50px', 'flexShrink' => 0, 'margin' => ['bottom' => '0px']], 'mobile' => ['flexBasis' => '34px']]), $zeile('versprechen-'.$n.'-inhalt', [ $heading('versprechen-'.$n.'-titel', $titel, 3, [ 'desktop' => ['fontSize' => '34px', 'fontWeight' => '400', 'lineHeight' => 1.2, 'color' => '@papier', 'flexGrow' => 3, 'flexBasis' => '0', 'margin' => ['bottom' => '0px']], 'tablet' => ['fontSize' => '28px'], 'mobile' => ['fontSize' => '28px'], ]), $text('versprechen-'.$n.'-satz', $satz, ['desktop' => ['fontSize' => '16px', 'lineHeight' => 1.6, 'color' => '@text-gruen', 'maxWidth' => '390px', 'flexGrow' => 5, 'flexBasis' => '0', 'margin' => ['bottom' => '0px']]]), ], '20px', ['alignItems' => 'baseline', 'flexGrow' => 1, 'flexBasis' => '0', 'minWidth' => '0'], ['flexDirection' => 'column', 'alignItems' => 'flex-start', 'gap' => '8px']), ], '20px', ['alignItems' => 'baseline', 'padding' => ['top' => '31px', 'bottom' => '31px'], 'borderWidth' => $nurUnten('1px'), 'borderStyle' => 'solid', 'borderColor' => '#cfb57359']); $startseite = [ 'schemaVersion' => $SCHEMA, 'title' => 'Neueröffnung', 'description' => 'Kantarci Markt eröffnet bald: Frische, Qualität und faire Preise in der Wilhelm-Drapp-Straße in Baden-Baden.', 'blocks' => [ // 1 – Hero: Text links, rechts das Marktfoto mit Bildzeile, die gedrehte Tomatenkarte und // der Stempel. $section('hero', [ $row('hero-zeile', [ $column('hero-text', [ $kleinzeile('hero-label', 'Neueröffnung', '@gold-text'), $heading('hero-titel', 'Frische bekommt
eine neue Adresse.', 1, [ 'desktop' => ['fontSize' => '80px', 'fontWeight' => '400', 'lineHeight' => 1.04, 'letterSpacing' => '-0.045em', 'color' => '@forst', 'margin' => ['bottom' => '0px']], 'tablet' => ['fontSize' => '64px'], 'mobile' => ['fontSize' => '44px', 'lineHeight' => 1.07], ], '& em{font-style:italic;color:#8c6b27}'), $text('hero-intro', 'Freuen Sie sich auf sorgfältig ausgewählte Produkte, echte Vielfalt und einen Markt, der Nachbarschaft neu denkt.', [ 'desktop' => ['maxWidth' => '600px', 'fontSize' => '20px', 'lineHeight' => 1.65, 'color' => '@text', 'margin' => ['top' => '32px', 'bottom' => '38px']], 'mobile' => ['fontSize' => '17px', 'margin' => ['top' => '24px', 'bottom' => '30px']], ]), // Eine Spalte statt einer Zeile: Zeilen sind im Kern immer durchsichtig. $column('hero-termin', [ $column('hero-termin-symbol', [ $symbol('hero-termin-icon', 'shop', 24, ['desktop' => ['color' => '@forst']]), ], ['desktop' => ['display' => 'flex', 'alignItems' => 'center', 'justifyContent' => 'center', 'width' => '50px', 'height' => '50px', 'flexShrink' => 0, 'backgroundColor' => '@gold-hell', 'borderRadius' => $rund('50%')]]), $column('hero-termin-text', [ $text('hero-termin-klein', 'Wir öffnen bald', ['desktop' => ['fontSize' => '14px', 'letterSpacing' => '0.08em', 'textTransform' => 'uppercase', 'lineHeight' => 1.3, 'color' => '#bfd1c9', 'margin' => ['bottom' => '3px']]]), $text('hero-termin-satz', 'Eröffnungstermin folgt', ['desktop' => ['fontSize' => '16px', 'fontWeight' => '700', 'lineHeight' => 1.2, 'color' => '@papier', 'margin' => ['bottom' => '0px']]]), ]), ], [ 'desktop' => ['display' => 'flex', 'alignItems' => 'center', 'gap' => '17px', 'backgroundColor' => '@forst', 'borderWidth' => $seiten('1px'), 'borderStyle' => 'solid', 'borderColor' => '@gold', 'borderRadius' => $rund('3px'), 'padding' => ['top' => '15px', 'right' => '24px', 'bottom' => '15px', 'left' => '15px'], 'shadowY' => '18px', 'shadowBlur' => '50px', 'shadowColor' => '#062f2429'], 'mobile' => ['gap' => '12px', 'padding' => ['top' => '14px', 'right' => '16px', 'bottom' => '14px', 'left' => '14px']], ]), $text('hero-adresse', 'Hier finden Sie uns bald
'.$strasse.'
'.$ort, [ 'desktop' => ['fontSize' => '16px', 'lineHeight' => 1.55, 'color' => '@text', 'borderWidth' => $nurLinks('3px'), 'borderStyle' => 'solid', 'borderColor' => '@gold', 'padding' => ['left' => '18px'], 'margin' => ['top' => '28px', 'bottom' => '0px']], ], "& strong{color:#123b26;font-weight:700}"), ], [ 'desktop' => ['display' => 'flex', 'flexDirection' => 'column', 'alignItems' => 'flex-start', 'justifyContent' => 'center'], ]), $column('hero-visual', [ $bild('hero-markt', $medien['markt'], 'Frisches Blattgemüse an einem Marktstand – Beispielbild', [ 'desktop' => ['position' => 'absolute', 'top' => '0px', 'right' => '4%', 'bottom' => '8%', 'left' => '5%', 'margin' => $seiten('0px'), 'overflow' => 'hidden', 'backgroundColor' => '@forst', 'outlineWidth' => '1px', 'outlineStyle' => 'solid', 'outlineColor' => '@gold', 'outlineOffset' => '8px', 'shadowY' => '24px', 'shadowBlur' => '60px', 'shadowColor' => '#021d162e'], 'mobile' => ['right' => '0px', 'bottom' => '10%', 'left' => '0px'], ], null, "& img{display:block;width:100%;height:100%;object-fit:cover}\n" ."&::after{content:'';position:absolute;top:25%;right:0;bottom:0;left:0;background:linear-gradient(transparent,rgba(2,29,22,.85) 65%)}\n" ."& figcaption{position:absolute;z-index:1;bottom:150px;left:28px;right:28px;max-width:260px;margin:0;color:#fff;font-size:26px;font-weight:700;line-height:1.2;text-shadow:0 2px 14px rgba(2,29,22,.7)}", 'Vorfreude auf frische Vielfalt.'), $bild('hero-tomaten', $medien['tomaten'], 'Frische Strauchtomaten – Beispielbild', [ 'desktop' => ['position' => 'absolute', 'width' => '49%', 'height' => '33%', 'right' => '-3%', 'bottom' => '-1%', 'margin' => $seiten('0px'), 'overflow' => 'hidden', 'rotate' => 4, 'borderWidth' => $seiten('8px'), 'borderStyle' => 'solid', 'borderColor' => '@creme', 'shadowY' => '24px', 'shadowBlur' => '60px', 'shadowColor' => '#021d162e', 'zIndex' => 2], 'mobile' => ['width' => '63%', 'height' => '39%', 'right' => '0px', 'borderWidth' => $seiten('7px')], ], null, '& img{display:block;width:100%;height:100%;object-fit:cover}'), $bild('hero-stempel', $medien['stempel'], '', [ 'desktop' => ['position' => 'absolute', 'maxWidth' => '122px', 'width' => '122px', 'left' => '-1%', 'bottom' => '9%', 'margin' => $seiten('0px'), 'rotate' => -12, 'zIndex' => 3, 'borderRadius' => $rund('50%'), 'shadowY' => '8px', 'shadowBlur' => '24px', 'shadowColor' => '#123b2626'], 'mobile' => ['maxWidth' => '96px', 'width' => '96px', 'left' => '-2%', 'bottom' => '5%'], ], null, '& img{display:block;width:100%;height:auto}'), ], [ 'desktop' => ['position' => 'relative', 'minHeight' => '600px'], 'tablet' => ['minHeight' => '520px'], 'mobile' => ['minHeight' => '390px'], ]), ], ['desktop' => ['columns' => 'two'], 'tablet' => ['columns' => 'one'], 'mobile' => ['columns' => 'one']], [ 'desktop' => ['gap' => '80px', 'alignItems' => 'center', 'margin' => ['top' => '0px'], 'columnWidths' => '51 49'], 'tablet' => ['gap' => '56px'], 'mobile' => ['gap' => '40px'], ]), ], [ 'desktop' => ['backgroundColor' => '@creme', 'padding' => ['top' => '72px', 'bottom' => '84px'], 'overflow' => 'hidden'], 'tablet' => ['padding' => ['top' => '56px', 'bottom' => '72px']], 'mobile' => ['padding' => ['top' => '40px', 'bottom' => '64px']], ], 'start'), // 2 – Das Versprechen auf Waldgrün. $section('versprechen', [ $row('versprechen-zeile', [ $zeile('versprechen-intro', [ $text('versprechen-nummer', '01', ['desktop' => ['fontSize' => '13px', 'fontWeight' => '700', 'color' => '@gold-hell', 'flexBasis' => '52px', 'flexShrink' => 0, 'margin' => ['top' => '4px', 'bottom' => '0px']], 'mobile' => ['flexBasis' => '38px']]), $column('versprechen-titel', [ $text('versprechen-klein', 'Unser Versprechen', ['desktop' => [...$kleinStil, 'letterSpacing' => '0.18em', 'color' => '@klein-gruen', 'margin' => ['bottom' => '20px']]]), $heading('versprechen-h2', 'Mehr als
einkaufen.', 2, [ 'desktop' => ['fontSize' => '80px', 'fontWeight' => '400', 'lineHeight' => 1.04, 'letterSpacing' => '-0.035em', 'color' => '@papier', 'margin' => ['bottom' => '0px']], 'tablet' => ['fontSize' => '64px'], 'mobile' => ['fontSize' => '48px'], ]), ]), ], '0px', ['alignItems' => 'flex-start']), $column('versprechen-liste', [ $versprechen('01', 'Frisch', 'Ausgewählte Produkte, die jeden Einkauf ein bisschen besser machen.'), $versprechen('02', 'Qualität', 'Sorgfältig ausgewählt, mit Vertrauen gekauft. Gute Produkte zu fairen Preisen.'), $versprechen('03', 'Vielfältig', 'Ein Sortiment für den Alltag, besondere Momente und jeden Geschmack.'), ], ['desktop' => ['borderWidth' => $nurOben('1px'), 'borderStyle' => 'solid', 'borderColor' => '#cfb573a6']]), ], ['desktop' => ['columns' => 'two'], 'tablet' => ['columns' => 'one'], 'mobile' => ['columns' => 'one']], [ 'desktop' => ['gap' => '120px', 'alignItems' => 'flex-start', 'margin' => ['top' => '0px'], 'columnWidths' => '3 5'], 'tablet' => ['gap' => '56px'], 'mobile' => ['gap' => '48px'], ]), ], [ 'desktop' => ['backgroundColor' => '@forst', 'color' => '@papier', 'padding' => ['top' => '140px', 'bottom' => '140px'], 'borderWidth' => $nurOben('4px'), 'borderStyle' => 'solid', 'borderColor' => '@gold'], 'tablet' => ['padding' => ['top' => '100px', 'bottom' => '100px']], 'mobile' => ['padding' => ['top' => '80px', 'bottom' => '80px']], ], 'unser-versprechen'), // 3 – Abschluss: Handschrift links, Gruß rechts, das große K als Wasserzeichen. $section('abschluss', [ $row('abschluss-zeile', [ $text('abschluss-spruch', 'Frische. Qualität.
Faire Preise.', [ 'desktop' => ['fontFamily' => 'heading', 'fontStyle' => 'italic', 'fontSize' => '84px', 'lineHeight' => 1.12, 'letterSpacing' => '-0.05em', 'color' => '@forst', 'margin' => ['bottom' => '0px']], 'tablet' => ['fontSize' => '64px'], 'mobile' => ['fontSize' => '48px'], ]), $column('abschluss-gruss', [ $text('abschluss-gruss-text', 'Wir bereiten gerade alles für Sie vor.', ['desktop' => ['fontSize' => '17px', 'color' => '@text', 'margin' => ['bottom' => '10px']]]), $text('abschluss-gruss-satz', 'Bis ganz bald im Kantarci Markt.', ['desktop' => ['fontFamily' => 'heading', 'fontSize' => '34px', 'lineHeight' => 1.25, 'color' => '@forst', 'margin' => ['bottom' => '0px']], 'mobile' => ['fontSize' => '26px']]), ], ['desktop' => ['maxWidth' => '390px', 'alignSelf' => 'center']]), ], ['desktop' => ['columns' => 'two'], 'tablet' => ['columns' => 'one'], 'mobile' => ['columns' => 'one']], [ 'desktop' => ['gap' => '40px', 'alignItems' => 'center', 'margin' => ['top' => '0px'], 'position' => 'relative', 'zIndex' => 2], 'tablet' => ['gap' => '56px'], ]), ], [ 'desktop' => ['backgroundColor' => '@sand', 'position' => 'relative', 'overflow' => 'hidden', 'minHeight' => '450px', 'padding' => ['top' => '130px', 'bottom' => '130px'], 'borderWidth' => $nurUnten('1px'), 'borderStyle' => 'solid', 'borderColor' => '@gold'], 'tablet' => ['padding' => ['top' => '100px', 'bottom' => '110px']], 'mobile' => ['padding' => ['top' => '80px', 'bottom' => '96px']], ], 'bis-bald', "&::before{content:'K';position:absolute;right:3%;top:4%;font-family:Georgia,serif;font-size:min(30vw,480px);line-height:1;color:rgba(6,47,36,.045);pointer-events:none}\n" ."&::after{content:'';position:absolute;right:7%;bottom:58px;width:180px;height:2px;background:#ad893b}"), ], ]; // --------------------------------------------------------------------------------------------- // Seiten anlegen und veröffentlichen // --------------------------------------------------------------------------------------------- $anlegen = static function (string $slug, array $dokument, string $seoTitel = '', string $teilbild = '') use ($pages, $db): string { $id = $pages->createPage($slug, null, 'page', $dokument); if ('' !== $seoTitel) { $db->executeStatement('UPDATE page SET seo_title = ? WHERE id = ?', [$seoTitel, $id]); } if ('' !== $teilbild) { $db->executeStatement('UPDATE page SET og_media_id = ? WHERE id = ?', [$teilbild, $id]); } $seite = $db->fetchAssociative('SELECT draft_revision_id, version FROM page WHERE id = ?', [$id]); $pages->publish($id, $seite['draft_revision_id'], (int) $seite['version']); echo 'Seite angelegt: /'.$db->fetchOne('SELECT path FROM page WHERE id = ?', [$id])."\n"; return $id; }; // Der Text des Hero spielt beim Laden; die Fotos bleiben ohne Einblendung (LCP). $startseite = $einblenden($startseite, [ 'hero-label' => ['fade'], 'hero-titel' => ['rise', 'short'], 'hero-intro' => ['rise', 'medium'], 'hero-termin' => ['rise', 'long'], 'hero-adresse' => ['fade', 'long'], 'versprechen-intro' => ['rise'], 'versprechen-liste' => ['rise', 'short'], 'abschluss-spruch' => ['rise'], 'abschluss-gruss' => ['rise', 'short'], ]); $anlegen('home', $startseite, 'Kantarci Markt – Neueröffnung in Baden-Baden', $medien['markt']['id']); // --------------------------------------------------------------------------------------------- // Eröffnungsseite (Demo, 24.09.2026) // --------------------------------------------------------------------------------------------- // // So sieht die Startseite aus, wenn der Markt geöffnet hat. Sie liegt vorerst unter // /eroeffnung, ist nicht verlinkt und steht auf noindex: Umut soll sie ansehen können, ohne dass // die Vorab-Seite verschwindet. Zur Eröffnung wandert ihr Inhalt als Entwurf auf die Startseite // (geplante Veröffentlichung), /eroeffnung wird danach gelöscht. // // Die Angebote kommen aus der Web-Ansicht der eigenen App (app.kantarci-markt.de). Die erlaubt // das Einbetten selbst (frame-ancestors) und meldet ihre Höhe per postMessage. Das Skript am // Baustein ist Umuts Gegenstück dazu (24.09.2026). Eine Einwilligung braucht es nicht, solange die // Website keine Einwilligungsleiste hat: Consent::granted() lässt dann jede Gruppe durch. // // Platzhalter, bis Umut die echten Werte schickt: Öffnungszeiten, Telefon, Store-Adressen (die // führen vorerst auf die Suche im jeweiligen Store) und die Store-Badges (eigene Knöpfe statt der // offiziellen Grafiken von Apple und Google). // Ohne eigene Überschrift und ohne Knopf zur App: Die Seite hat ihre Überschrift, und Umut will keine Links nach // außen (24.09.2026). Ein Klick auf ein Angebot öffnet ein Popup in der Ansicht. Heller Ton, weil der Abschnitt Sand ist. $angeboteUrl = 'https://app.kantarci-markt.de/embed/angebote.php?titel=0&app=0'; $appStoreUrl = 'https://apps.apple.com/de/search?term=Kantarci%20Markt'; $playStoreUrl = 'https://play.google.com/store/search?q=Kantarci%20Markt&c=apps'; $oeffnungszeiten = [['Montag bis Freitag', '8:00 – 20:00 Uhr'], ['Samstag', '8:00 – 20:00 Uhr'], ['Sonntag und Feiertage', 'geschlossen']]; $routeUrl = 'https://www.google.com/maps/dir/?api=1&destination='.rawurlencode($strasse.', '.$plz.' '.$ort); // Umuts Gegenstück aus der App, um zwei Dinge ergänzt. Erstens läuft es als eigene Datei (defer) // und damit oft erst, nachdem die App ihre Höhe schon einmal gemeldet hat - danach meldet sie nur // noch Änderungen. Deshalb fragt es nach dem Start nach ('km-angebote-height-request'); antwortet // die App nicht, lädt es den Rahmen als Rückfall einmal neu. Zweitens meldet die App beim Öffnen // eines Angebots, wo ihr Popup steht ('km-angebote-focus'); liegt das außerhalb des Sichtbaren, // scrollt die Seite dorthin. $hoehenSkript = <<<'JS' (function () { var gemeldet = false; function passend(f) { try { var src = new URL(f.src, location.href); return src.pathname.indexOf('/embed/angebote') !== -1 ? src : null; } catch (e) { return null; } } window.addEventListener('message', function (ev) { if (!ev.data || (ev.data.type !== 'km-angebote-height' && ev.data.type !== 'km-angebote-focus')) return; var frames = document.querySelectorAll('iframe'); for (var i = 0; i < frames.length; i++) { var f = frames[i]; if (f.contentWindow !== ev.source) continue; var src = passend(f); if (!src || src.origin !== ev.origin) return; if (ev.data.type === 'km-angebote-focus') { var oben = f.getBoundingClientRect().top + Math.max(0, Math.min(20000, Number(ev.data.top) || 0)); var hoehe = Math.max(0, Math.min(20000, Number(ev.data.height) || 0)); if (oben < 16 || oben + Math.min(hoehe, window.innerHeight - 32) > window.innerHeight - 16) { var still = window.matchMedia('(prefers-reduced-motion: reduce)').matches; window.scrollTo({ top: window.scrollY + oben - 24, behavior: still ? 'auto' : 'smooth' }); } return; } var h = Math.max(150, Math.min(20000, Number(ev.data.height) || 0)); f.style.height = (h + 2) + 'px'; f.style.minHeight = '0'; f.style.background = 'transparent'; f.setAttribute('scrolling', 'no'); gemeldet = true; return; } }); var frames = document.querySelectorAll('iframe'); for (var i = 0; i < frames.length; i++) { (function (f) { var src = passend(f); if (!src) return; f.contentWindow.postMessage({ type: 'km-angebote-height-request' }, src.origin); setTimeout(function () { if (!gemeldet) f.src = f.src; }, 600); })(frames[i]); } })(); JS; /** Ändert Bausteine eines Baums nach ID, ohne ihn neu zu schreiben. */ $aendern = static function (array $block, array $plan) use (&$aendern): array { if (isset($plan[$block['id'] ?? ''])) { $block = $plan[$block['id']]($block); } foreach ($block['children'] ?? [] as $i => $kind) { $block['children'][$i] = $aendern($kind, $plan); } return $block; }; $setzeText = static fn (string $inhalt): Closure => static function (array $b) use ($inhalt): array { $b['props']['text'] = $inhalt; return $b; }; /** Ein Store-Knopf: schwarz, zweizeilig, wie die Badges der Stores, aber ohne deren Logos. */ $storeKnopf = static fn (string $id, string $oben, string $unten, string $href): array => $text($id, ''.$oben.'
'.$unten.'
', ['desktop' => ['margin' => ['bottom' => '0px']]], "& a{display:inline-block;min-width:176px;padding:9px 20px 10px;border-radius:9px;background:#000;border:1px solid #a6a6a6;color:#fff;font-size:12px;line-height:1.25;text-decoration:none}\n" ."& a:hover{background:#123b26;border-color:#d2b978}\n" ."& a:focus-visible{outline:3px solid #ad893b;outline-offset:3px}\n" .'& strong{display:block;font-size:21px;font-weight:500;letter-spacing:-0.01em}'); $abschnittTitel = static fn (string $id, string $klein, string $titel, string $farbeKlein, string $farbeTitel, string $strich = '@gold', string $farbeBetont = '#8c6b27') => [ $kleinzeile($id.'-label', $klein, $farbeKlein, $strich), $heading($id.'-h2', $titel, 2, [ 'desktop' => ['fontSize' => '64px', 'fontWeight' => '400', 'lineHeight' => 1.06, 'letterSpacing' => '-0.035em', 'color' => $farbeTitel, 'margin' => ['bottom' => '22px']], 'tablet' => ['fontSize' => '52px'], 'mobile' => ['fontSize' => '40px'], ], '& em{font-style:italic;color:'.$farbeBetont.'}'), ]; $eroeffnung = [ 'schemaVersion' => $SCHEMA, 'title' => 'Jetzt geöffnet', 'description' => 'Kantarci Markt in der Wilhelm-Drapp-Straße in Baden-Baden: frische Produkte, echte Vielfalt, faire Preise und jede Woche neue Angebote.', 'blocks' => [ // 1 – Hero: wie die Vorab-Seite, aber mit Öffnungszeiten und zwei Wegen weiter. $aendern($startseite['blocks'][0], [ 'hero-label-text' => $setzeText('Jetzt geöffnet'), 'hero-titel' => $setzeText('Frische hat jetzt
eine Adresse.'), 'hero-intro' => $setzeText('Sorgfältig ausgewählte Produkte, echte Vielfalt und faire Preise – ab sofort in der Wilhelm-Drapp-Straße in Baden-Baden.'), 'hero-termin-icon' => static function (array $b): array { $b['props']['icon'] = 'clock'; return $b; }, 'hero-termin-klein' => $setzeText('Heute geöffnet'), 'hero-termin-satz' => $setzeText($oeffnungszeiten[0][1]), 'hero-adresse' => $setzeText('So finden Sie uns
'.$strasse.'
'.$plz.' '.$ort), 'hero-markt' => static function (array $b): array { $b['props']['caption'] = 'Frische Vielfalt, jeden Tag.'; return $b; }, 'hero-text' => static function (array $b) use ($zeile, $button): array { // Die beiden Wege stehen zwischen Einleitung und Öffnungszeiten. array_splice($b['children'], 3, 0, [$zeile('hero-wege', [ $button('hero-angebote', 'Aktuelle Angebote', '#angebote'), ['id' => 'hero-besuch', 'type' => 'button', 'props' => ['text' => 'Anfahrt & Öffnungszeiten', 'href' => '#besuch'], 'css' => "background:transparent;color:#123b26;box-shadow:inset 0 0 0 1px #123b26\n& span{display:none}\n&:hover{background:#123b26;color:#fff}"], ], '14px', ['flexWrap' => 'wrap', 'margin' => ['top' => '0px', 'bottom' => '30px']])]); return $b; }, ]), // 2 – Angebote aus der App, auf Sand: Die Web-Ansicht ist für hellen Grund gestaltet // (dunkle Überschrift, weiße Karten); `ton` ändert daran derzeit nichts (24.09.2026). $section('angebote-bereich', [ $row('angebote-kopf', [ $column('angebote-kopf-titel', $abschnittTitel('angebote', 'Diese Woche', 'Aktuelle
Angebote.', '@gold-text', '@forst')), $column('angebote-kopf-text', [ $text('angebote-intro', 'Direkt aus unserer App – jede Woche neu. Die Angebote gelten im Markt, solange der Vorrat reicht.', [ 'desktop' => ['maxWidth' => '420px', 'fontSize' => '17px', 'lineHeight' => 1.65, 'color' => '@text', 'margin' => ['bottom' => '0px']], ]), ], ['desktop' => ['alignSelf' => 'flex-end']]), ], ['desktop' => ['columns' => 'two'], 'tablet' => ['columns' => 'one'], 'mobile' => ['columns' => 'one']], [ 'desktop' => ['gap' => '40px', 'alignItems' => 'flex-end', 'margin' => ['top' => '0px', 'bottom' => '44px']], 'mobile' => ['gap' => '8px', 'margin' => ['bottom' => '32px']], ]), ['id' => 'angebote-app', 'type' => 'embed', 'props' => ['group' => 'external', 'title' => 'Aktuelle Angebote von Kantarci Markt', 'provider' => 'Kantarci-Markt-App', 'url' => $angeboteUrl, 'hint' => '', 'height' => 900], // Die Höhe setzt das Skript, sobald die App sie meldet; bis dahin gelten die 900 px. 'css' => '& iframe{border-radius:0;background:transparent}', 'script' => $hoehenSkript], ], [ 'desktop' => ['backgroundColor' => '@sand', 'padding' => ['top' => '110px', 'bottom' => '110px'], 'borderWidth' => ['top' => '1px', 'right' => '0px', 'bottom' => '1px', 'left' => '0px'], 'borderStyle' => 'solid', 'borderColor' => '@gold'], 'tablet' => ['padding' => ['top' => '84px', 'bottom' => '84px']], 'mobile' => ['padding' => ['top' => '64px', 'bottom' => '64px']], ], 'angebote'), // 3 – Die App: Text und Store-Knöpfe links, die Bildmarke als App-Symbol rechts. $section('app-bereich', [ $row('app-zeile', [ $column('app-text', [ ...$abschnittTitel('app', 'Die Kantarci-Markt-App', 'Angebote immer
in der Tasche.', '@gold-text', '@forst'), $text('app-intro', 'Mit unserer App haben Sie die aktuellen Angebote jederzeit dabei – auch unterwegs und vor dem Einkauf.', [ 'desktop' => ['maxWidth' => '520px', 'fontSize' => '18px', 'lineHeight' => 1.65, 'color' => '@text', 'margin' => ['bottom' => '30px']], 'mobile' => ['fontSize' => '17px'], ]), $zeile('app-stores', [ $storeKnopf('app-ios', 'Laden im', 'App Store', $appStoreUrl), $storeKnopf('app-android', 'Jetzt bei', 'Google Play', $playStoreUrl), ], '14px', ['flexWrap' => 'wrap']), ]), $column('app-symbol', [ $bild('app-symbol-bild', $medien['symbol'], 'App-Symbol von Kantarci Markt', [ 'desktop' => ['maxWidth' => '200px', 'width' => '200px', 'margin' => $seiten('0px'), 'rotate' => -6, 'shadowY' => '24px', 'shadowBlur' => '50px', 'shadowColor' => '#062f2440', 'borderRadius' => $rund('44px'), 'overflow' => 'hidden'], 'mobile' => ['maxWidth' => '140px', 'width' => '140px', 'borderRadius' => $rund('31px')], ], null, '& img{display:block;width:100%;height:auto}'), ], ['desktop' => ['display' => 'flex', 'justifyContent' => 'center', 'alignItems' => 'center']]), ], ['desktop' => ['columns' => 'two'], 'tablet' => ['columns' => 'one'], 'mobile' => ['columns' => 'one']], [ 'desktop' => ['gap' => '60px', 'alignItems' => 'center', 'margin' => ['top' => '0px'], 'columnWidths' => '3 2'], 'mobile' => ['gap' => '44px'], ]), ], [ 'desktop' => ['backgroundColor' => '@creme', 'padding' => ['top' => '110px', 'bottom' => '110px']], 'tablet' => ['padding' => ['top' => '84px', 'bottom' => '84px']], 'mobile' => ['padding' => ['top' => '64px', 'bottom' => '72px']], ], 'app'), // 4 – Das Versprechen, wie auf der Vorab-Seite. $startseite['blocks'][1], // 5 – Besuch: Adresse mit Route, Öffnungszeiten, Kontakt. $section('besuch-bereich', [ $row('besuch-kopf', [ $column('besuch-titel', $abschnittTitel('besuch', 'Besuchen Sie uns', 'Wir freuen uns
auf Sie.', '@gold-text', '@forst')), ], [], ['desktop' => ['margin' => ['top' => '0px', 'bottom' => '40px']]]), $row('besuch-spalten', [ $column('besuch-adresse', [ $heading('besuch-adresse-h3', 'Adresse', 3, ['desktop' => ['fontFamily' => 'body', 'fontSize' => '14px', 'fontWeight' => '700', 'letterSpacing' => '0.18em', 'textTransform' => 'uppercase', 'color' => '@gold-text', 'margin' => ['bottom' => '14px']]]), $text('besuch-adresse-text', $name.'
'.$strasse.'
'.$plz.' '.$ort, ['desktop' => ['fontSize' => '18px', 'lineHeight' => 1.6, 'color' => '@forst', 'margin' => ['bottom' => '22px']]]), ['id' => 'besuch-route', 'type' => 'button', 'props' => ['text' => 'Route planen', 'href' => $routeUrl, 'newTab' => true], 'css' => '& span{display:none}'], ]), $column('besuch-zeiten', [ $heading('besuch-zeiten-h3', 'Öffnungszeiten', 3, ['desktop' => ['fontFamily' => 'body', 'fontSize' => '14px', 'fontWeight' => '700', 'letterSpacing' => '0.18em', 'textTransform' => 'uppercase', 'color' => '@gold-text', 'margin' => ['bottom' => '14px']]]), $text('besuch-zeiten-text', implode('
', array_map(static fn (array $z): string => ''.$z[0].''.$z[1], $oeffnungszeiten)), [ 'desktop' => ['fontSize' => '17px', 'lineHeight' => 1.6, 'color' => '@text', 'margin' => ['bottom' => '0px']], ], "& strong{display:block;margin-top:12px;color:#123b26;font-weight:700}\n& strong:first-child{margin-top:0}"), ]), $column('besuch-kontakt', [ $heading('besuch-kontakt-h3', 'Kontakt', 3, ['desktop' => ['fontFamily' => 'body', 'fontSize' => '14px', 'fontWeight' => '700', 'letterSpacing' => '0.18em', 'textTransform' => 'uppercase', 'color' => '@gold-text', 'margin' => ['bottom' => '14px']]]), $text('besuch-kontakt-text', 'Telefon folgt
E-Mail: '.$mail.'', [ 'desktop' => ['fontSize' => '17px', 'lineHeight' => 1.9, 'color' => '@text', 'margin' => ['bottom' => '0px']], ], $linkCss), ]), ], ['desktop' => ['columns' => 'three'], 'tablet' => ['columns' => 'one'], 'mobile' => ['columns' => 'one']], [ 'desktop' => ['gap' => '48px', 'alignItems' => 'flex-start', 'margin' => ['top' => '0px'], 'borderWidth' => $nurOben('1px'), 'borderStyle' => 'solid', 'borderColor' => '#e4dcc8', 'padding' => ['top' => '36px']], 'mobile' => ['gap' => '36px'], ]), ], [ 'desktop' => ['backgroundColor' => '@creme', 'padding' => ['top' => '110px', 'bottom' => '110px']], 'tablet' => ['padding' => ['top' => '84px', 'bottom' => '84px']], 'mobile' => ['padding' => ['top' => '64px', 'bottom' => '72px']], ], 'besuch'), // 6 – Abschluss wie auf der Vorab-Seite, mit neuem Gruß. $aendern($startseite['blocks'][2], [ 'abschluss-gruss-text' => $setzeText('Danke, dass Sie da sind.'), 'abschluss-gruss-satz' => $setzeText('Bis gleich im Kantarci Markt.'), ]), ], ]; $eroeffnung = $einblenden($eroeffnung, [ 'hero-label' => ['fade'], 'hero-titel' => ['rise', 'short'], 'hero-intro' => ['rise', 'medium'], 'hero-wege' => ['rise', 'long'], 'hero-termin' => ['rise', 'long'], 'hero-adresse' => ['fade', 'long'], 'app-text' => ['rise'], 'app-symbol' => ['rise', 'short'], 'versprechen-intro' => ['rise'], 'versprechen-liste' => ['rise', 'short'], 'abschluss-spruch' => ['rise'], 'abschluss-gruss' => ['rise', 'short'], ]); $eroeffnungId = $anlegen('eroeffnung', $eroeffnung, 'Kantarci Markt – frisch, vielfältig, fair in Baden-Baden', $medien['markt']['id']); // Nur zum Ansehen: nicht in Suchmaschinen, nicht in der Sitemap, nirgends verlinkt. $db->executeStatement('UPDATE page SET robots = ? WHERE id = ?', ['noindex', $eroeffnungId]); /** Eine Rechtsseite: Kleinzeile, Titel und Vorspann auf Waldgrün, dann Absätze mit Zwischenüberschriften. */ $rechtsseite = static function (string $praefix, string $label, string $titel, string $vorspann, array $absaetze) use ($section, $row, $column, $kleinzeile, $heading, $text, $nurOben, $linkCss): array { $kopf = $section($praefix.'-kopf', [ $kleinzeile($praefix.'-label', $label, '@gold-hell', '@gold-hell'), $heading($praefix.'-h1', $titel, 1, [ 'desktop' => ['fontSize' => '56px', 'fontWeight' => '400', 'lineHeight' => 1.1, 'letterSpacing' => '-0.03em', 'color' => '@papier', 'margin' => ['bottom' => '20px']], 'mobile' => ['fontSize' => '40px'], ]), $text($praefix.'-vorspann', $vorspann, [ 'desktop' => ['maxWidth' => '640px', 'fontSize' => '18px', 'lineHeight' => 1.7, 'color' => '@text-gruen', 'margin' => ['bottom' => '0px']], 'mobile' => ['fontSize' => '16px'], ]), ], [ 'desktop' => ['backgroundColor' => '@forst', 'color' => '@papier', 'padding' => ['top' => '76px', 'bottom' => '68px'], 'borderWidth' => $nurOben('4px'), 'borderStyle' => 'solid', 'borderColor' => '@gold'], 'mobile' => ['padding' => ['top' => '48px', 'bottom' => '44px']], ]); $punkte = []; foreach ($absaetze as $i => [$zwischentitel, $inhalt]) { $punkte[] = $row($praefix.'-punkt-'.$i, [ $column($praefix.'-punkt-'.$i.'-titel', '' === $zwischentitel ? [] : [ $heading($praefix.'-h2-'.$i, $zwischentitel, 2, [ 'desktop' => ['fontFamily' => 'body', 'fontSize' => '16px', 'fontWeight' => '700', 'lineHeight' => 1.5, 'letterSpacing' => '0', 'color' => '@forst', 'margin' => ['bottom' => '0px']], ]), ], [ 'desktop' => ['flexBasis' => '260px', 'flexShrink' => 0], 'tablet' => ['flexBasis' => '200px'], 'mobile' => ['flexBasis' => 'auto'], ]), $column($praefix.'-punkt-'.$i.'-text', [ $text($praefix.'-p-'.$i, $inhalt, ['desktop' => ['fontSize' => '16px', 'lineHeight' => 1.75, 'color' => '@text', 'margin' => ['bottom' => '0px']]], $linkCss), ], ['desktop' => ['flexGrow' => 1, 'flexBasis' => '0', 'minWidth' => '0'], 'mobile' => ['flexBasis' => 'auto']]), ], [], [ 'desktop' => ['display' => 'flex', 'alignItems' => 'flex-start', 'gap' => '44px', 'margin' => ['top' => '0px'], 'borderWidth' => $nurOben('1px'), 'borderStyle' => 'solid', 'borderColor' => '#e4dcc8', 'padding' => ['top' => '26px', 'bottom' => '26px']], 'tablet' => ['gap' => '28px'], 'mobile' => ['flexDirection' => 'column', 'gap' => '8px', 'padding' => ['top' => '20px', 'bottom' => '20px']], ]); } $inhalt = $section($praefix, [ $column($praefix.'-inhalt', $punkte, ['desktop' => ['maxWidth' => '920px']]), ], ['desktop' => ['padding' => ['top' => '48px', 'bottom' => '90px']], 'mobile' => ['padding' => ['top' => '24px', 'bottom' => '56px']]]); return [$kopf, $inhalt]; }; $pruefen = static fn (string $was): string => 'NOCH ZU PRÜFEN: '.$was; $anlegen('impressum', [ 'schemaVersion' => $SCHEMA, 'title' => 'Impressum', 'description' => 'Anbieterangaben von Kantarci Markt, Baden-Baden.', 'blocks' => [ ...$rechtsseite('impressum', 'Rechtliche Angaben', 'Impressum', 'Angaben gemäß § 5 DDG und § 18 Abs. 2 MStV.', [ ['Anbieter', $name.'
'.$pruefen('Inhaber bzw. Firma mit Rechtsform (etwa „… GmbH“ oder „Inhaber …, e. K.“).').'
'.$strasse.' '.$pruefen('Hausnummer').'
'.$plz.' '.$ort], ['Vertreten durch', $pruefen('Geschäftsführer bzw. Inhaber.')], ['Registereintrag', $pruefen('Handelsregisternummer und Registergericht, falls eingetragen.')], ['Kontakt', "E-Mail: $mail
".$pruefen('Ob das Postfach existiert, und eine Telefonnummer als zweiten schnellen Kontaktweg ergänzen.')], ['Umsatzsteuer', $pruefen('Umsatzsteuer-Identifikationsnummer nach § 27a UStG, falls vorhanden.')], ['Verantwortlich für den Inhalt', $pruefen('Name der verantwortlichen Person, Anschrift wie oben.')], ['Verbraucherstreitbeilegung', 'Wir sind nicht bereit und nicht verpflichtet, an einem Streitbeilegungsverfahren vor einer Verbraucherschlichtungsstelle teilzunehmen.'], ['Haftung für Inhalte', 'Als Diensteanbieter sind wir für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich. Wir sind jedoch nicht verpflichtet, übermittelte oder gespeicherte fremde Informationen zu überwachen oder nach Umständen zu forschen, die auf eine rechtswidrige Tätigkeit hinweisen. Bei Bekanntwerden von Rechtsverletzungen entfernen wir diese Inhalte umgehend.'], ['Urheberrecht', 'Die von uns erstellten Inhalte und Werke auf diesen Seiten unterliegen dem deutschen Urheberrecht. Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung außerhalb der Grenzen des Urheberrechts bedürfen der schriftlichen Zustimmung.'], ['Bildnachweis', 'Logo: '.$name.'. Die Fotos von Marktstand und Tomaten sind Beispielbilder. '.$pruefen('Quelle und Lizenz der beiden Fotos eintragen.')], ]), ], ], 'Impressum | '.$name); $anlegen('datenschutz', [ 'schemaVersion' => $SCHEMA, 'title' => 'Datenschutz', 'description' => 'Welche Daten beim Besuch der Website von Kantarci Markt verarbeitet werden.', 'blocks' => [ ...$rechtsseite('datenschutz', 'Ihre Daten', 'Datenschutzhinweise', 'Hier erfahren Sie, welche Daten beim Besuch dieser Website verarbeitet werden – und welche Rechte Sie haben.', [ ['1. Verantwortlicher', $name.', '.$strasse.', '.$plz.' '.$ort.". E-Mail $mail.

".$pruefen('Inhaber bzw. Firma wie im Impressum.')], ['2. Besuch dieser Website', 'Beim Aufruf verarbeitet der Hostingdienst technisch erforderliche Verbindungsdaten: IP-Adresse, Zeitpunkt, angeforderte Adresse, Browserangaben und HTTP-Status. Das dient der sicheren Bereitstellung und der Fehlersuche. Rechtsgrundlage ist unser berechtigtes Interesse an einem störungsfreien Betrieb, Art. 6 Abs. 1 lit. f DSGVO.

'.$pruefen('Hostinganbieter benennen, Auftragsverarbeitungsvertrag abschließen und die Speicherdauer der Serverprotokolle eintragen.')], ['3. Cookies und externe Dienste', 'Diese Website setzt keine Analyse- oder Werbecookies. Bilder, Schriften und Gestaltung kommen vom eigenen Server; es werden keine Karten, Videos oder Schriften von Dritten nachgeladen. Deshalb gibt es auch keinen Einwilligungsdialog.'], ['4. Kontakt per E-Mail', 'Wenn Sie uns schreiben, verarbeiten wir Ihre Adresse und Ihre Nachricht, um Ihr Anliegen zu beantworten (Art. 6 Abs. 1 lit. b oder f DSGVO). Wir löschen die Nachricht, wenn sie erledigt ist und keine gesetzliche Aufbewahrungspflicht besteht.'], ['5. Ihre Rechte', 'Sie haben unter den gesetzlichen Voraussetzungen das Recht auf Auskunft, Berichtigung, Löschung, Einschränkung der Verarbeitung und Datenübertragbarkeit. Einer Verarbeitung auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO können Sie widersprechen.'], ['6. Beschwerderecht', 'Sie können sich bei einer Datenschutz-Aufsichtsbehörde beschweren, für uns beim Landesbeauftragten für den Datenschutz und die Informationsfreiheit Baden-Württemberg.'], ['', "Fragen zum Datenschutz beantworten wir gern unter $mail."], ]), ], ], 'Datenschutz | '.$name); $fehlerId = $anlegen('404', [ 'schemaVersion' => $SCHEMA, 'title' => 'Seite nicht gefunden', 'description' => 'Die gesuchte Seite gibt es nicht oder sie wurde verschoben.', 'blocks' => [ $section('fehler', [ $kleinzeile('fehler-label', 'Fehler 404', '@gold-text'), $heading('fehler-titel', 'Diese Seite
gibt es nicht.', 1, [ 'desktop' => ['fontSize' => '64px', 'fontWeight' => '400', 'lineHeight' => 1.05, 'letterSpacing' => '-0.04em', 'color' => '@forst', 'margin' => ['bottom' => '22px']], 'mobile' => ['fontSize' => '42px'], ], '& em{font-style:italic;color:#8c6b27}'), $text('fehler-text', 'Vielleicht hat sich ein Tippfehler in die Adresse geschlichen. Über die Startseite finden Sie zurück.', [ 'desktop' => ['maxWidth' => '460px', 'fontSize' => '18px', 'lineHeight' => 1.7, 'color' => '@text', 'margin' => ['bottom' => '28px']], ]), $button('fehler-knopf', 'Zur Startseite', '/', ['desktop' => ['margin' => ['top' => '0px']]]), ], [ 'desktop' => ['backgroundColor' => '@creme', 'padding' => ['top' => '110px', 'bottom' => '130px']], 'mobile' => ['padding' => ['top' => '64px', 'bottom' => '80px']], ]), ], ]); $db->executeStatement('UPDATE page SET robots = ? WHERE id = ?', ['noindex', $fehlerId]); // --------------------------------------------------------------------------------------------- // Einstellungen, Konto // --------------------------------------------------------------------------------------------- $settings->assignNotFoundPage($fehlerId, ''); $settings->save([ 'legalName' => $name, 'description' => 'Kantarci Markt eröffnet bald in der Wilhelm-Drapp-Straße in Baden-Baden: frische Produkte, echte Vielfalt und faire Preise.', 'email' => '', 'street' => $strasse, 'postalCode' => $plz, 'city' => $ort, 'country' => 'DE', // Noch kein Geschäft mit Öffnungszeiten: keine LocalBusiness-Angaben, bis der Markt öffnet. 'localBusiness' => false, 'llmsTxt' => true, 'faviconMediaId' => $medien['symbol']['id'], 'stickyHeader' => false, 'headerOverlay' => false, 'motion' => 'always', 'homePath' => 'home', 'imprintPath' => 'impressum', 'privacyPath' => 'datenschutz', // Die Seite lädt nichts von Dritten; deshalb keine Einwilligungsleiste. 'consentBanner' => false, 'scrollTop' => false, 'postMetaHeader' => false, ]); echo "Einstellungen gespeichert\n"; $passwort = bin2hex(random_bytes(12)); $db->insert('cms_user', ['id' => bin2hex(random_bytes(16)), 'username' => 'umut', 'password_hash' => password_hash($passwort, PASSWORD_BCRYPT), 'roles' => '["ROLE_ADMIN"]']); echo "\nFertig.\nVerwaltung: Benutzer „umut“, Passwort: $passwort\n";